News for hackers. Stuff that matters.
Re:WebAssembly: Mozilla Won by vanderZwan on Thursday June 01, 2017 @08:18AM (#14459623)
A lot.

There's a talk by Alex Danilo from Google IO 17 explaining it in detail.

Here, I'll link you directly to the part where he starts explaining the differences on a technical level:

https://www.youtube.com/watch?v=6v4E6oksar0&t=11m24s

Another part is that I suspect it makes maintaining a good JS compiler easier, because all of that asm.js code can be removed. I'm sure the browser vendors are happy about that.

Re:WebAssembly: Mozilla Won by TekMol on Thursday June 01, 2017 @08:28AM (#14459666)
I don't mean the technical differences. I mean the benefit. What will be the gain for the user of a web app?
Re:WebAssembly: Mozilla Won by Arcaten on Thursday June 01, 2017 @10:19AM (#14460420)
I'm not 100% sure about any of this (I've only listened to most of the video above), but I think the gist is that WebAssembly provides a compile target for applications, meaning you can pre-compile an application so that your source is downloaded essentially as machine code. Furthermore, that means your compilation can perform as many optimizations that you care for, because it's happening ahead of time (not on the user's machine).

Without WebAssembly, browser vendors have to strike a balance between optimizing the JS as much as possible (for increased performance), and running the script as soon as possible (so the user isn't waiting too long for execution to begin).

edit: Demo of this in-browser video editor charts a FPS difference between the JS and WebAssembly implementations. https://github.com/shamadee/web-dsp

Re:WebAssembly: Mozilla Won by flohofwoe on Thursday June 01, 2017 @08:37AM (#14459713)
Compressed download size is indeed only slightly smaller (mostly around 10%), but the parsing is much faster, even noticeable for fairly small demos.

(edit: replied to the wrong comment, apologies)

Re:WebAssembly: Mozilla Won by TekMol on Thursday June 01, 2017 @09:23AM (#14460008)
Is the "parsing" what is displayed as "compile script" in Chromes profiler? That seems to take almost zero time. For example jquery.min.js compiles in 0.1ms here.
Re:WebAssembly: Mozilla Won by livingparadox on Thursday June 01, 2017 @12:44PM (#14461908)
Libraries like jquery are not the target use case for WASM. Its intent is to make large applications viable on the web, like something you'd normally install on your computer.