~/talk

How Node.js Bootstraps Itself: 2019 Edition

Talkat Node+JS Interactive 2019 · 2019-12-11..12-12· [nodejs, web-performance]
slides:none on file

Explains how Node now embeds a V8 startup snapshot — a serialized context blob compiled into the binary so the engine deserializes primordials instead of re-running JS at startup — and how internal JS modules are compiled at build time, yielding about a 40–60% speedup in bootstrap. Covers concrete changes: resource constraints, isolate/context lifecycle, event loop handles, inspector watchdog threads, worker vs child-process setup, and ongoing work to snapshot runtime-independent environment pieces.

AI-written summary · about

  1. 0:00Start
  2. 0:15About me
  3. 0:44Overview of a Node.js process
  4. 1:37Creating a Worker
  5. 1:59Creating a child process
  6. 2:10Overview of the bootstrap
  7. 3:15Setting up the V8 isolate
  8. 5:11Creating a vm Context
  9. 5:24Setting up the V8 context
  10. 7:27Setting up the Environment
  11. 8:32Environment: internal loaders
  12. 9:47Environment: globals
  13. 10:44Environment: initialize hooks
  14. 11:33Environment: initialize the event loop
  15. 12:42Environment: inspector
  16. 13:40Pre-execution
  17. 15:22Start execution: from CLI
  18. 15:40Start execution: Worker
  19. 16:15Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.