Building a High Performance JavaScript Compiler
summary
Claims a production compiler that emits readable, debuggable JavaScript, with 99% no magic numbers in generated code and pattern-match constructors commented for humans. Build owns an end-to-end pipeline and uses module-to-module compilation (not single-file bundling). Generated output removes redundant temp variables, compiles local modules to named objects, and keeps performance improving — benchmarks show the first large, 1000-file project improved and iteration-to-iteration speed gains, targeting parity or better than faster than handwritten JS.
AI-written summary · about
chapters (11)
- 0:00Einleitung
- 0:40What's BuckleScript
- 2:54Philosophy
- 8:41Build system diagram (simplified)
- 11:15Different from native build system
- 13:44Compiler diagram
- 15:34Current release: 5.2.0
- 17:39Current release: unlock the module system
- 19:58Current release: continue iterating on the quality
- 21:56Build performance improvement
- 23:31Planned work
related talks
31mJavaScript Compilers For Fun and Profit
27mCompile Like It's 2017
32mCompilers: The Next Frontier in Web Performance
07mCompiling JavaScript ahead-of-time
34mTowards a simpler JavaScript ecosystem
29mJavaScript Engines: How Do They Even?
31mJavaScript Compilation Techniques or "Wasn't JavaScript supposed to be slow?"
28mHow to Build a Compiler
