News for hackers. Stuff that matters.
Re:Is WebAssembly the Return of Java Applets and Flash? by Yoric on Thursday July 26, 2018 @08:46AM (#17616980)
> On a side note, I'm seeing more articles pointing out that WASM runs in the JS VM. Doesn't negate the whole advantage of speed for WASM?

It basically means that WASM has the same safety/security model as the JS VM. Just like JS, it is compiled to native code (I'm simplifying a bit, of course) before being executed. However, where JS is one of the languages with the most complicated semantics around, which makes it really, really hard to compile efficiently, WASM has extremely simple semantics and is designed to be really, really easy to compile efficiently.

Re:Is WebAssembly the Return of Java Applets and Flash? by vturner on Thursday July 26, 2018 @09:12AM (#17617130)
Thanks for the differentiation. I guess when I've read "WASM" will be native code I expect it to be as in "C" or "C++" native. Not native to a VM
Re:Is WebAssembly the Return of Java Applets and Flash? by Sean1708 on Thursday July 26, 2018 @09:41AM (#17617391)
WASM and JS are both JIT compiled in all major browsers which means that they compile to the same kind of native code that C and C++ do, they just do so as the program is running rather than in advance.
Re:Is WebAssembly the Return of Java Applets and Flash? by Andrex on Thursday July 26, 2018 @11:58AM (#17618460)
What's even better about WASM than JS in this case is that it can be compiled as it is being loaded. With JS, the entire file needs to be downloaded before being executed, but that's not the case for WASM, resulting in even more performance improvements.

https://hacks.mozilla.org/2018/01/making-webassembly-even-fa...