Started work on ES6 -> asm.js conversion

Posted on:

View on GitHub

I know this sounds crazy, but I always wondered why do we always give out such a speedup technique as asm.js (it speeds up code in all the modern browsers!) to developers from other languages if we can use it for own code in JavaScript as well?

The answer is that handwriting asm.js is tricky due to limited set of operations and complex rules for satisfying asm.js. So I decided to start this side project. It's goal is to compile statically typed ES6 (Flow-flavoured) module into asm.js while preserving ES6 module interface. So it's still a subset of JavaScript, but much more suitable for hand-writing.

You don't need to use C/C++ -> Emscripten -> asm.js for heavy calculation anymore - just create module, drop Babel with this plugin and you're ready to go!

Currently supported:

TODO:


More posts: