Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Is Webassembly supporting arrays? #79

Closed
AchalaSB opened this issue Mar 11, 2020 · 2 comments
Closed

Is Webassembly supporting arrays? #79

AchalaSB opened this issue Mar 11, 2020 · 2 comments

Comments

@AchalaSB
Copy link

Hi,

If I write code in Rust which uses Array can I compile it to wasm? (without wasm-bindgen crate).
Then can I use this wasm binary further?

Thanks

@AchalaSB AchalaSB changed the title Is Webaaembly supporting arrays? Is Webassembly supporting arrays? Mar 11, 2020
@binji
Copy link
Member

binji commented May 27, 2020

This question is probably better to ask in a Rust support forum. But yes, Rust supports Arrays via linear memory. AFAIK they are unlikely to use the gc proposal for this. Closing.

@binji binji closed this as completed May 27, 2020
@tschneidereit
Copy link
Member

Indeed, this was discussed quite extensively, with the conclusion that directly operating on GC-managed Arays (or other types of values) in Rust would require significant changes to the compiler, including LLVM, and the language.

rossberg pushed a commit that referenced this issue Feb 24, 2021
* [js-api] Remove spurious argument to ToWebAssemblyValue().

Fixes #51.

* [js-api] Extend the WebAssembly.Table API.

Fixes #22.
Fixes #67.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants