Skip to main content

New site for Dart news and articles

For the latest Dart news, visit our new blog at .

How dart2js generates efficient JavaScript code

Learn how dart2js generates efficient JavaScript code with the video and slides from "Dart for the Modern Web Developer" talk from Chrome Dev Summit. This presentation, from Dart engineers Kasper Lund and Seth Ladd, takes a look into dart2js, a Dart to JavaScript compiler, and showed how it generates efficient JavaScript code.

Performance charts show dart2js generates JavaScript code that is sometimes faster than hand-written JavaScript code. The compiler is able to analyze the entire Dart program for both local and global optimizations. The presentation shows some of the techniques, with plenty of code examples.

Check out all the great content from Chrome Dev Summit, including content on mobile web development, performance, DevTools, and more. Enjoy!