~/talk

Bun, Deno, Node.js? Recreating a JavaScript runtime from Scratch

Talkat NDC Oslo 2023 · 2023-05-22..05-26· [javascript, nodejs]
slides:none on file

Recreates a JavaScript runtime called capybara runtime using V8 + libuv and C++: compiles V8 (multi‑GB source, hours) into an ~8GB monolithic binary, wires C++ bindings to expose a print function, implements working setTimeout/setInterval via libuv timers, shows promises are just abstractions, and demonstrates Node’s worker‑pool threads for blocking tasks. The runtime runs end‑to‑end after weeks of work and debugging, matching how Node, Deno and Bun map JS to OS services.

AI-written summary · about

  1. 0:00Recreating JS runtimes
  2. 4:19Project background
  3. 16:26Node.js execution model
  4. 22:27Node.js internals
  5. 26:04Runtime dependencies
  6. 33:03JS APIs in C++
  7. 35:15setTimeout/setInterval
  8. 40:11Many JS runtimes
  9. 45:52JS runtimes future
  10. 47:38Resources & closing
~/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.