Comment by amelius
Shouldn't it be possible to implement your own GC in WASM? Why does WASM try to be everything?
Shouldn't it be possible to implement your own GC in WASM? Why does WASM try to be everything?
Not really. As I understand it, WASM offers no facility to unwind the stack which is needed for tracing garbage collectors. The only solution here is to manually write your own implementation of the stack on the heap and force all data to live there instead of in registers. This is a huge performance penalty.
Slower, single threaded, greatly increases binary size, separate heap from JS so bad interop with extern refs. Wasm GC is a great thing.