3 ms·
Has anyone found in the sources if/how they treat garbage collection?
by tom_mellior 8y ago
Has anyone found in the sources if/how they treat garbage collection?
- vilu 8y agoNo, I would be interested in that too. I don't know anything about Web Assembly but maybe GC is handled by Web Assembly?
- masklinn 8y agoThere are plans to eventually integrate GC into wasm, but at the moment the GC has to be implemented and bundled in the wasm file. That is in fact one of Rust's advantages there. And of course wasm supporting a GC does not mean languages targeting wasm will want to use it (and lose the flexibility of providing their own).
- pitb0ss 8y agoYes. They currently use reference counting since WASM doesn't allow stack inspection.
- tom_mellior 8y agoDo you have a link to the source?