top | item 41990561

(no title)

ledgerdev | 1 year ago

> having V8 as a backend also means supporting WebAssembly Exceptions and Garbage Collection under the hood. Stay tuned for more news on this front soon

Looking forward to this and languages that can make use of wasm-gc.

Does wasm-gc allow sharing of host data/strings across different modules in the same runtime, or is it contained to only single module with repeated calls/invocations? The scenario I am considering would invoke several different modules in a pipeline, pass data between each step in an efficient manner.

discuss

order

throw4950sh06|1 year ago

That's what reference types (the Wasm proposal) are for, GC builds on top of that.

azakai|1 year ago

Sharing GC data between wasm modules is supported, yes. You just need to define the types identically on both sides, and things work.