News for hackers. Stuff that matters.
Re:Securing Firefox with WebAssembly by bigato on Tuesday February 25, 2020 @11:40AM (#22414602)
if parts of the web browser start being shipped as wasm code, we will eventually reach the point where the web browser shipped to the user is only a wasm vm, and all the rest will be shipped as optional libraries or even downloaded on the fly. Even stuff like the html engine, the css, and the javascript. In that world, using the messy web standards evolved over time would be optional. The web browser would then become the universal virtual machine that the world seems to want it to be, instead of a browser. The web would be the app distribution system. One could for example, decide to write their site using tcl/tk.

Implementing the wasm vm and its basic apis would be simpler in a new operating system. Because the way it is now, the web browser itself is more complex that writing a simple operating system. That hinders innovation in the Operating System space.

Re:Securing Firefox with WebAssembly by greggman3 on Tuesday February 25, 2020 @01:47PM (#22415942)
There's a HUGE way to go to get there and I don't believe we really ever will. OSes support every language, 100s of Input Method Editors, all the issues of left to right and more complex text rendering than English. Asking every webpage to provide all of that and to keep all of that up-to-date would be a huge loss for the web and app dev in general.
Re:Securing Firefox with WebAssembly by swsieber on Tuesday February 25, 2020 @06:56PM (#22418860)
> Consequently, there are now around 40 high-level programming languages that support WebAssembly, including C and C++, Python, Go, Rust, Java, and PHP. Wasm is not a new language, but a portable, pre-compiled, cross-platform binary instruction set for a virtual machine that runs in the browser.

https://blog.stackpath.com/webassembly/

It doesn't seem terribly unlikely. I don't think it's the goal, but it seems like a fairly likely outcome.

Re:Securing Firefox with WebAssembly by Yizahi on Tuesday February 25, 2020 @02:30PM (#22416439)
You should check this talk about JS and ASM :) https://www.destroyallsoftware.com/talks/the-birth-and-death...
Re:Securing Firefox with WebAssembly by allendoerfer on Tuesday February 25, 2020 @11:52AM (#22414731)
All I can see is people wanting to use web-technologies to develop applications. So I would place my bet on the DOM/CSS evolving further and swallowing everything. JavaScript might get some contenders.
Re:Securing Firefox with WebAssembly by pjmlp on Tuesday February 25, 2020 @12:23PM (#22415057)
50 years later the mainframes have won.

Language environments and containers.

Re:Securing Firefox with WebAssembly by marcosdumay on Tuesday February 25, 2020 @10:31PM (#22420036)
They have been "winning" since they started losing. Our PCs are much more similar to 80's mainframes than to 80's PCs.
Re:Securing Firefox with WebAssembly by foobiekr on Tuesday February 25, 2020 @04:43PM (#22417812)
But ... in a lot of ways worse.
Re:Securing Firefox with WebAssembly by bigato on Tuesday February 25, 2020 @12:37PM (#22415203)
Good point. That should probably be the case for the majority of generation who entered the programming world in the last 20 years, which is quite a lot of people. But yet, old farts like me may disagree.
Re:Securing Firefox with WebAssembly by mwcampbell on Tuesday February 25, 2020 @11:57PM (#22420398)
> One could for example, decide to write their site using tcl/tk.

Please, please don't do that. Tk is completely inaccessible to blind people via screen readers, and probably people with some other disabilities as well, on all platforms. Most toolkits written by people who decide to throw out those messy web standards would probably have the same problem.

Re:Securing Firefox with WebAssembly by edwintorok on Tuesday February 25, 2020 @04:11PM (#22417502)
Exactly my thoughts when I first read of WASI: conceptually you could now have a WASI runtime ("OS") and an HTML.wasm potentially independently developed and swappable. And since WASI is a lot smaller surface, it is easier to audit, test, reimplement, etc.