Of JavaScript Ahead-Of-Time Compilation Performance
summary
AOT compiler Hopc compiles JavaScript to Scheme then C, uses optimistic/speculative rules with guards instead of heavy static analyses, and produces specialized fast paths for common shapes and proxies. Benchmarks show competitive results on realistic npm workloads, worse on floating point heavy Octane tests, and overall memory wins because no JIT is embedded. Typical runtime is around 2–2.5× slower than top JITs on many suites but beats them on some patterns; the system is implemented and evaluated end to end so viewers see how it is built and where it fails.
AI-written summary · about
chapters (13)
- 0:00JavaScript compilation challenges
- 6:25JavaScript compiler difficulties
- 8:55Compiler implementation strategies
- 11:42Hop AOT compiler
- 13:47Static JavaScript compilation
- 14:29Opportunistic compilation
- 19:47Type inference and specialization
- 20:50JavaScript to Scheme compilation
- 23:21Optimizing arrow functions
- 25:27Hop vs JIT benchmarks
- 28:18New performance test suite
- 31:49Performance and memory results
- 33:12Future research directions
related talks
31mJavaScript Compilation Techniques or "Wasn't JavaScript supposed to be slow?"
07mCompiling JavaScript ahead-of-time
46mHow much performance can you get out of JavaScript?
29mExtreme JavaScript Performance
27mJavaScript as a compilation target - Making it fast
19mKeynote: Making JavaScript on WebAssembly Fast
24mYou Did What? Understanding Node.js Optimizations
32mBuilding a High Performance JavaScript Compiler
