3 ms·
Can't you just let the browser handle the GC? I don't think this is a port of Mono to JS - i.e. it's not a new runtime. EDIT: A: No, you can't.
by JosephRedfern 11y ago
Can't you just let the browser handle the GC? I don't think this is a port of Mono to JS - i.e. it's not a new runtime.
EDIT: A: No, you can't.
- aardvark179 11y agoWASM models memory as a big array which is your heap, all memory management within that is up to you. There is no GC, there is no new / delete or anything else. For the use case of porting C programs to your web browser this is fine, for higher level languages you're a bit stuffed. I hope WASM gains some sort of GC eventually, because writing a GC in WASM will make me cry. :-(
- JosephRedfern 11y agoAh-ha! I see - apologies, I'd misunderstood.
- zamalek 11y agoWASM, however, is a new runtime that doesn't yet support GC: https://news.ycombinator.com/item?id=9741503 https://news.ycombinator.com/item?id=9741503