What's the current status of WASM/WASI support?
Adam D Ruppe
destructionator at gmail.com
Fri Nov 3 23:43:59 UTC 2023
On Friday, 3 November 2023 at 23:36:45 UTC, Sebastiaan Koppe
wrote:
> The trouble is that the GC is unable to scan the wasm stack
> (let alone the registers) so you have to spill pointers to the
> shadow stack. I know its possible, but never managed to find
> time to do it.
An even better way is to defer the scan until you return to the
javascript event loop, since then you guarantee the wasm stack is
empty.
I've long suspected that would work but never implemented it, and
read a thing just earlier today confirming it would work (but now
webasm has a new gc thing that works differently google is trying
to push: https://v8.dev/blog/wasm-gc-porting )
More information about the Digitalmars-d
mailing list