How NodeJS Works (V8, libuv, async, bindings)
summary
Explains Node.js internals: why V8 was chosen, how C++ and JavaScript interoperate using function and object templates, and how native modules are registered in C++ structures and loaded as bundles. Describes embedding JS sources into the binary and calling them via wrappers, and shows how asynchrony is handled by the external event loop libuv with nonblocking syscalls and sockets.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 1:17Node.js importance
- 3:45V8 engine
- 5:57C++ bindings
- 9:10JS execution context
- 11:23C++ modules
- 14:51Loading native modules
- 18:24JS modules
- 21:59Native modules in JS
- 23:46JS module wrappers
- 25:57Runtime globals
- 27:21Running main script
- 28:05Async and event loop








