C++
A compiled programming language used to write fast, low-level software, including V8 and much of Node.js itself.
In more detail
C++ code manages memory by hand instead of using a garbage collector. Memory that Node.js allocates in C++, such as the bytes inside Buffers, lives outside the V8 heap.
Related terms
- native binding — Code written in C or C++ that JavaScript can call, used by Node.js to reach system libraries such as OpenSSL and zlib.
- external memory — Memory that belongs to JavaScript objects but lives outside the V8 heap, such as the bytes inside Buffers and ArrayBuffers.
- V8 — Google's open-source JavaScript engine, used by Chrome and Node.js to parse, compile and run JavaScript.
Taught in
- V8 Engine & JIT Pipeline: Bytecode & Turbofan — Node.js Internals & Backend Services
- Node.js Process Architecture: Memory & Heap Spaces — Node.js Internals & Backend Services
- Close Phase & Signal Dispatch: Sockets & Teardown — Node.js Internals & Backend Services
- Buffer Fundamentals: Slab Allocator & V8 Memory — Node.js Internals & Backend Services