3 ms·
A one size fits all GC is never going to be a great solution though, is it? Different languages have different GCs that are designed to work with their semanti
by LAC-Tech 4y ago
A one size fits all GC is never going to be a great solution though, is it?
Different languages have different GCs that are designed to work with their semantics. Some languages use a flag bit to tell the runtime if a value is stack or heap (Go, Ocaml), some languages allocate almost everything and assume a lot of short lived objects (Java)...
How well will a generic WASM GC really work here?
- ilyt 4y agoProbably better than no GC whatsoever. And not having to bring whole GC code with you is benefit enough
- wtetzner 4y agoBut the competition is compile-to-javascript, which has exactly the same problem. With WASM, you get to choose between using a generic, potentially sub-optimal GC, or having a larger payload and including a GC bundled with the application.