Hacker News new | ask | show | jobs
by davexunit 499 days ago
Use the GC instructions and you can freely share heap references amongst other modules and the host.
1 comments

How do you access the contents of a heap reference from JavaScript in order to “send it to a <canvas> or similar”?
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.