ECMAScript 6 offers tail call optimization, where you can make some function calls without growing the call stack. This blog post explains how that works and what benefits it brings.
[2015-07-02] New material in these sections:
[2015-06-24] I added an FAQ with three new questions:
- Does the web finally have a universal bytecode?
- Isn’t WebAssembly like Flash?
I’m glad to announce that the first version of my book “Exploring ES6” is finally finished! It was much more work than I anticipated – the PDF has over 460 pages! I’m really happy with how it turned out.
Exploring ES6 is a living book: you can buy it now and will receive free updates until it is completely done. That may take a while, possibly until 2016. Once the book is done, there will also be a print version. New material will often be published on 2ality, before it is added to the book.
For all further information on ”Exploring ES6”, please consult its website.
Consult the blog post “Using ECMAScript 6 today” for an overview of ES6 features.
This blog post explains how to use ES6 on Node.js by transpiling it to ES5 via Babel.
A previous blog post showed how to dynamically transpile ES6 at runtime (also via Babel). That is more convenient and should work for most projects, but occasionally you may want a simpler and faster setup for your runtime environment.