Hacker News new | ask | show | jobs
by posix86 796 days ago
How does GC help with that?
2 comments

GC feature in wasm extends to having opaque references outside linear memory (which may reference objects controlled by host system's gc) avoiding need for js caller to handle resource being freed by wasm code with a pool or something keyed by handles (integers) passed to wasm
I think it would enable WASM code to hold references to DOM objects that have been designed around garbage collection.