Node.js feature livecoding
summary
Live-coded a from-scratch Node.js timer that actually reimplements setTimeout, showing C++ bindings into V8 and libuv, the timer_wrap C++/JS hybrid, and the glue that wires a UV timer to a JavaScript callback. Demonstrates async tracking exposed to Chrome DevTools, runs unit tests, and measures that a naive UV-per-timer approach is orders of magnitude slower while Node’s real implementation groups timers for efficiency — reimplement setTimeout, libuv and V8.
AI-written summary · about
chapters (8)
- 0:00Start
- 2:37How did I get into Node.js core?
- 5:09Node.js feature: setTimeout()
- 9:34Data stored for a timer
- 11:02Node.js internal helpers in fake JS
- 17:59What we want to write in C++ (in JS)
- 19:56Node.js layers
- 37:34A note on performance
related talks
35mNode.js Feature Livecoding
30mNode.js Feature Livecoding
33mNode.js feature Livecoding
49mBun, Deno, Node.js? Recreating a JavaScript runtime from Scratch
22mBun, Deno, Node.js? Recreating a JavaScript runtime from Scratch
29mHow NodeJS Works (V8, libuv, async, bindings)
36mGetting Started with Node.js
36mGetting Started with Node.js
