Building a JavaScript runtime
summary
A CDN prototype evolves into a real JavaScript runtime: starts as a fast Go proxy, adds embedded JS via isolated VM in node to run v8 isolates, then reimplements control and event loop in Rust v8 runtime inspired by Deno. Traffic and feature requests force a rewrite; event loop lag spikes around 2 ms in node, while the Rust runtime handles DNS and user code in under 1 ms. The runtime works and users fork and extend it.
AI-written summary · about
chapters (6)
- 0:00Start
- 3:52Go Based Javascript Runtimes
- 4:13Javascript Is Really Slow
- 5:28V8 and Go
- 5:55Isolated Vm
- 9:27Event Loop Lag
related talks
22mBun, Deno, Node.js? Recreating a JavaScript runtime from Scratch
56mDeno, a new way to JavaScript
59mDeno, a new way to JavaScript
49mBun, Deno, Node.js? Recreating a JavaScript runtime from Scratch
53mDeno – a better Node.js?
47mDeno, and The Future of JavaScript Runtimes
30mDeno is a New Way to JavaScript
31mA First Look at Deno
