Why can't they just let devs embed their own garbage collector? Isn't he role of an assembly language to let the developer do stuff at a low level?
Why can't they just let devs embed their own garbage collector? Isn't he role of an assembly language to let the developer do stuff at a low level?
I also think its better for everyone if you don't need to load/download, decode, compile and run a full language runtime on every page load. Imagine a JVM running on web assembly: Every page load first has to decode and compile a full many-MB JVM, then the JVM can start booting - without any platform/architecture specific optimizations.
The more stuff that's common for webasm-targeting-languages that we can move into the browser, the less effort wasted overall.
Almost makes me wish VBScript IE had won. We might be writing browser apps in .NET now...
I still have to do .stream() and .toList() (or .collect(Collectors.toList())) back and forth in Java all the time just to get reliable access to map/filter lambdas while still having a valid return value.
Better stop using Chrome now.
Chrome seem to have a bunch of 2018 vulnerabilities that aren't listed here though...
At least not unless you can load it from the same public CDN.
Edit: Actully, I'm not sure you could do that even with the public CDN.
I believe the big obstacle is that the stack is managed by the VM and isn't accessible directly (at least, in the form of one continuous memory region per thread). A likely constraint that led to this was to allow interoperability with the JavaScript stack.