Writing node modules with v8
summary
Explains building Node native modules with the V8 C++ API, node-gyp and libuv thread pool, and shares a GitHub repo (github.com/kkfor/node-cppmodules). Shows a microbenchmark where native C++ hits 80M calls/sec while a V8 extension runs ~13M calls/sec and a callback-based async drop to 1.7M, demonstrating the JS/C++ boundary cost. Covers baton/persistent-handle patterns, safe use of worker threads (no V8 handles off-thread), and real modules like node-sqlite3 and nodeblend.
AI-written summary · about
chapters (4)
related talks
29mHow NodeJS Works (V8, libuv, async, bindings)
25mIntroduction to native extensions
41mDissecting NodeJS - How it works under the hood
28mNode.js: The Road to Workers
23mDig Deep V8 profiling
30mNode.js Feature Livecoding
49mA Journey into Node.js Internals
31mBuilding Modern Native Add-ons for Node.js in 2021
