What is Node.js made of?
Show answer
"Node is a C++ runtime that embeds V8 to run JavaScript and uses libuv for the event loop and asynchronous I/O. V8 only knows JavaScript; libuv talks to the operating system — epoll, kqueue or IOCP for sockets, and a small thread pool for things like file I/O and some crypto. Node's C++ bindings connect the two and also wrap OpenSSL, zlib and the HTTP parser, and the fs, http and events modules are JavaScript on top of those bindings. Your code runs on one main thread; every callback is the loop calling back into V8."