Re:Asm-Dom – WebAssembly Virtual DOM
by untog on Saturday May 20, 2017 @03:52PM
(#14384048)
Babel does not require ASM or WASM. It is (usually) simply an ES6 to ES5 transpiler.
[ Parent
| on HN ]
And even if Babel compiled to asm.js, the clever thing about asm.js was that it was valid JavaScript supported by almost all browsers, it just might not be a fast path.
That being said, asm.js in general goes out of it's way not to allocate and invoke the garbage collector, so it's not the best target for other JavaScript anyway.
My point is that you do not need Babel if you plan to target modern browsers anyway.
Many ES6 features are slower than their ES5 counterparts currently. let, const are slower than var, for example.
> let, const are slower than var, for example.
They aren't slower anymore in V8. Most ES6 features are now about as fast as their ES5 counterparts.
Re:Asm-Dom – WebAssembly Virtual DOM
by pizlonator on Sunday May 21, 2017 @10:46AM
(#14387527)
That hasn't been true in WebKit for a while.
Re:Asm-Dom – WebAssembly Virtual DOM
by PrimHelios on Saturday May 20, 2017 @09:12PM
(#14385243)
Huh. What's the reason for that?