Node.js Feature Livecoding
summary
A live rebuild of Node.js’s timer shows a runnable C++/JavaScript implementation that hooks into libuv and v8, wires C++ handle objects to JS callbacks with async tracking, and compiles into Node’s internal binding. Benchmarks show the naive version is about 10x slower than the optimized core implementation; the demo compiles and fires the timeout callback. Source, slides and code pointers are provided and the implementation trades fewer boundary crossings for much better performance.
AI-written summary · about
chapters (6)
- 0:00Start
- 5:06Data stored for a timer
- 5:52Node.js internal helpers in fake JS
- 9:33What we want to write in C++ (in JS)
- 10:24Node.js layers
- 23:16A note on performance
related talks
35mNode.js Feature Livecoding
56mNode.js feature livecoding
33mNode.js feature Livecoding
22mBun, Deno, Node.js? Recreating a JavaScript runtime from Scratch
24mYou Did What? Understanding Node.js Optimizations
49mBun, Deno, Node.js? Recreating a JavaScript runtime from Scratch
29mHow NodeJS Works (V8, libuv, async, bindings)
46mHow much performance can you get out of JavaScript?
