3 ms·
Like, a no-op GC is a valid implementation as long as your code doesn't allocate too much in the first place. If you ran into that would you consider their imp
by monocasa 7y ago
Like, a no-op GC is a valid implementation as long as your code doesn't allocate too much in the first place. If you ran into that would you consider their implementation buggy and just give them time? Similarly reference counting based GCs _can't_ do anything other than leaking object graphs with circular references, fundamentally. It's not a buggy implementation, it's a fundamental limitation of the technique.
Also, I looked into it. PNaCl couldn't run OCaml, only NaCl. PNaCl (and wasm) doesn't really let you scan stacks, but NaCl does, so they had to drop a real GC with the semantics you'd expect on the transition to PNaCl.
"They did know it was impossible, so they didn't bother" ~ monocasa
And once again, explaining why your examples aren't valid and refuting them isn't "moving goalposts".
- pjmlp 7y agoSure it is, because you keep focusing on the few buggy implementations, instead of those that actually work. There are plenty of leaking object graphs with circular references implementations in native CPUs, and yet people do use them, starting with C++ standard library collection types or Objective-C ARC. So your point on refuting whatever I present instead of appreciating the work of the implementations that actually work is kind of moving goalposts. Because apparently people bother with native CPU implementations, even with those bugs, so why should WebAssembly be any different?!? You don't want to bother, fine go watch tv, play football, whatever is your fancy. Me, I will be supporting anyone that with the WebAssembly we get to play with, decides to implement their favourite language. https://docs.assemblyscript.org/details/runtime#collecting-garbage https://docs.assemblyscript.org/details/runtime#collecting-g... https://docs.microsoft.com/en-us/aspnet/core/blazor/hosting-models?view=aspnetcore-3.0#blazor-webassembly https://docs.microsoft.com/en-us/aspnet/core/blazor/hosting-... https://fsbolero.io/ https://fsbolero.io/ https://swiftwasm.org/ https://swiftwasm.org/ https://tinygo.org/lang-support/ https://tinygo.org/lang-support/ Like they say back home "Those that don't have dogs hunt with cats".