flatbuffers icon indicating copy to clipboard operation
flatbuffers copied to clipboard

Add support for fixed-size array in Javascript

Open stephanemagnenat opened this issue 5 years ago • 8 comments

Using git master on April 20, 2020 (cb4d0f72e38dfe2a15e39d8d449f7e6385300ca1) it seems fixed-size array is not supported in Javascript or Typescript. As the binary representation of the fixed-size array is equivalent of the unrolled version, I do not see any theoretical reason why there is no Javascript support, in the worst case with something like var0...varN naming. Indeed, in the use case where Flatbuffers is used to exchange data between Javascript and Rust/C++, it would be nice to be able to enjoy the fixed-size array on the Rust/C++ side.

stephanemagnenat avatar Apr 20 '20 11:04 stephanemagnenat

Yup, there is no reason it can't be supported, other than that no-one has taken the time to do it. PRs welcome!

aardappel avatar Apr 20 '20 19:04 aardappel

This issue is stale because it has been open 6 months with no activity. Please comment or this will be closed in 14 days.

github-actions[bot] avatar Oct 19 '20 20:10 github-actions[bot]

Please do not close, it is still a useful feature to consider...

stephanemagnenat avatar Oct 19 '20 20:10 stephanemagnenat

@stephanemagnenat @evanw @evolutional @krojew @bjornharrtell Is this something any of you are considering tackling any time soon?

anassinator avatar Nov 04 '20 02:11 anassinator

Yes, but no idea when.

krojew avatar Nov 04 '20 05:11 krojew

This issue is stale because it has been open 6 months with no activity. Please comment or this will be closed in 14 days.

github-actions[bot] avatar May 05 '21 20:05 github-actions[bot]

I believe this should be reopened

TheButlah avatar Mar 24 '22 17:03 TheButlah

There is a new PR for this feature: #7581

mehmetb avatar Oct 12 '22 22:10 mehmetb

This issue is stale because it has been open 6 months with no activity. Please comment or label not-stale, or this will be closed in 14 days.

github-actions[bot] avatar Apr 13 '23 20:04 github-actions[bot]

This seems to be fixed by the linked PR, that is merged. Closing.

stephanemagnenat avatar Apr 15 '23 09:04 stephanemagnenat