Node.js feature Livecoding
summary
Live coding shows setTimeout implemented in C++ by wiring V8 to libuv with handle‑wrap classes, UV_timer_init/start callbacks and a JS-facing constructor; code runs under --expose-internals, exercises libuv handles and requests, and requires calling close to avoid leaks. Async hooks appear via async tracking visible events (init, before, after, destroy). Inspector heap snapshots confirm native timer instances and report 64-byte native objects, the implementation compiles and the demos execute successfully.
AI-written summary · about
chapters (8)
- 0:00Start
- 2:57Async Tracking
- 3:34Memory Retainer Class
- 8:25Public Modules
- 19:28Make Callback
- 29:17Set Timeout
- 32:17Chrome Inspector
- 32:30Heap Snapshot
related talks
35mNode.js Feature Livecoding
30mNode.js Feature Livecoding
56mNode.js feature livecoding
29mHow NodeJS Works (V8, libuv, async, bindings)
22mBun, Deno, Node.js? Recreating a JavaScript runtime from Scratch
49mBun, Deno, Node.js? Recreating a JavaScript runtime from Scratch
36mGetting Started with Node.js
41mDissecting NodeJS - How it works under the hood
