logoalt Hacker News

phickeyyesterday at 7:19 PM1 replyview on HN

Aside from code size the primary benefit on the Web is that the GC provided to wasm is the same one for the outer JavaScript engine, so an object from wasm can stay alive get collected based on whether JS keeps references to it. So it’s not really about providing a GC for a single wasm module (program), its about participating in one cooperatively with other programs.


Replies

em-beeyesterday at 7:39 PM

now that would make a lot of sense, thanks