News for hackers. Stuff that matters.
Re:W3C recommends WebAssembly by krapp on Friday December 06, 2019 @05:04PM (#21726450)
> Nobody wants another fat runtime that is as entangled with the browser engine as the JS engine is.

Why would it need to be? There's no reason to assume the architectural decisions for javascript have to be repeated for WASM.

The runtimes themselves could be WASM binaries cached like any other resource, or managed like packages. Javascript could be disentangled from the browser by doing the same - just treating it as a resource that ships by default with the browser.

I don't know if that's feasible - maybe not - but I bet there are possibilities other than "ship the entire runtime with each script" that can be considered.

Re:W3C recommends WebAssembly by bhaak on Saturday December 07, 2019 @07:11PM (#21733538)
I thought you meant adding other scripting languages to the browser. Not a WASM runtime.

That's likely still not a good idea. A specific runtime is likely to be outdated fast. That's like asking why the JQuery library wasn't shipped with the browsers themselves.

For runtime with a significant size, it's probably going the same way as JQuery. Have a CDN host it so different websites can use it and leverage the browser's cache.