Node.js Feature Livecoding
summary
Rebuilds setTimeout reimplemented in C++ for Node core, wiring V8 bindings to libuv by creating a TimerWrap subclass of libuv handles and requests, exposing start/stop methods, and using async_wrap hooks for lifecycle and diagnostics. Compiles Node (V8 build takes time), iterates through boilerplate and typos until timers fire correctly, and demonstrates via the inspector that a native C++ object retains the JS callback so leaks show up in heap snapshots — implementation works after fixes.
AI-written summary · about
chapters (5)
- 0:00Start
- 2:04Node.js feature: setTimeouto
- 4:45Data stored for a timer
- 6:41Node.js internal helpers in fake JS
- 10:15Node.js layers
related talks
30mNode.js Feature Livecoding
56mNode.js feature livecoding
33mNode.js feature Livecoding
22mBun, Deno, Node.js? Recreating a JavaScript runtime from Scratch
29mHow NodeJS Works (V8, libuv, async, bindings)
49mBun, Deno, Node.js? Recreating a JavaScript runtime from Scratch
16mTuning Node
41mDissecting NodeJS - How it works under the hood
