Snapshotmain · 04a0c27
How Node boots a V8 environment, loads a main module, and carries TCP bytes through JavaScript, C++, and libuv.
Click a building or route
System map8 components · 9 connections
130%
Connections
BuildingsEntryServiceComputeStorageRuntimeToolingExternal
Terms, in plain English
V8 isolateAn independent V8 JavaScript heap and execution instance with its own garbage-collected state.
How to study this repo
- 1Separate boot layers
Read node_main.cc, node.cc, and bootstrap/node.js in order and write down what becomes possible at each boundary.
- 2Load the same module two ways
Compare the CJS and ESM loaders for resolution, caching, linking, and when user code is evaluated.
- 3Trace one TCP callback
Start at net.Socket.connect, identify the TCPWrap request and uv_tcp_t operation, then follow the completion back to JavaScript.