3 ms·
I do not get why use Babel when both ASM.js and WASM are only supported in first class browsers. Without native interface to DOM this project is will be limite
by Chyzwar 9y ago
I do not get why use Babel when both ASM.js and WASM are only supported in first class browsers.
Without native interface to DOM this project is will be limited but It is interesting anyway.
- untog 9y agoBabel does not require ASM or WASM. It is (usually) simply an ES6 to ES5 transpiler.
- monocasa 9y agoAnd 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.
- Chyzwar 9y agoMy point is that you do not need Babel if you plan to target modern browsers anyway.
- Touche 9y agoMany ES6 features are slower than their ES5 counterparts currently. let, const are slower than var, for example.
- PrimHelios 9y agoHuh. What's the reason for that?
- tomatsu 9y ago> 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.
- pizlonator 9y agoThat hasn't been true in WebKit for a while.