Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

Has anyone found in the sources if/how they treat garbage collection?


No, I would be interested in that too. I don't know anything about Web Assembly but maybe GC is handled by Web Assembly?


There 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).


Yes. They currently use reference counting since WASM doesn't allow stack inspection.


Do you have a link to the source?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: