News for hackers. Stuff that matters.
Re:I Wrote a WebAssembly VM in C by panic on Monday February 03, 2025 @11:33AM (#42919969)
How do you access the contents of a heap reference from JavaScript in order to “send it to a <canvas> or similar”?
Re:I Wrote a WebAssembly VM in C by davexunit on Monday February 03, 2025 @11:40AM (#42920038)
Assuming you're talking about reading binary data like (array i8), the GC MVP doesn't have a great answer right now. Have to call back into wasm to read the bytes. Something for the group to address in future proposals. Sharing between wasm modules is better right now.