~/talk

Recreating a #javascript runtime f/ Scratch Understand the magic behind #nodejs core

Talkat CityJS London 2023 · 2023-04-21..04-23· [javascript, nodejs]
slides:none on file

Recreates a minimal Node.js runtime by compiling V8 and libuv, wiring a V8 + libuv C++ bridge to expose functions like print and process.env, and implements timers by scheduling callbacks with setTimeout via libuv timers. Demonstrates that console.log and setTimeout are environment features not language features, shows promises as thin wrappers over callbacks, compiles a working binary with make, and compares approaches: Deno (Rust) and Bun uses JavaScriptCore + Zig, explaining performance differences hinge on C/C++/Rust implementation details.

AI-written summary · about

  1. 0:00Introduction to speaker
  2. 0:36Motivation and research
  3. 3:21Node.js origins and history
  4. 6:41Core components overview
  5. 9:28Implementing custom runtime
  6. 12:11Environment APIs in C++
  7. 14:15V8 and JavaScript syntax
  8. 15:52Recreating settimeout
  9. 18:48Runtime comparisons
  10. 21:50Conclusion and resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.