Hacker News new | ask | show | jobs
by robmccoll 275 days ago
Non-GCed languages will continue to manage memory themselves. Previously, GCed languages that wanted to run on WASM had to have an implementation of their runtime including GC compiled to WASM. The idea or hope here is that those languages can use the built-in GC instead and slim down the amount of WASM that needs to be delivered to run the application to only include a minimal runtime. The current scenario is closer to if a web app or node app built with JavaScript had to ship a significant portion of V8 with it to function.
1 comments

This will probably benefit Java applets targeting Wasm the most considering the huge size of their JVM.
Would not be surprised to see the typeinfo needing shipped taking up more space than the internal GC implementation it replaced :)
Hopefully Go as well.