~/talk

Node.js feature livecoding

Talkat JS Fest 2019 Autumn · 2019-11-08..11-09· [nodejs]
slides:none on file

Live-coded a from-scratch Node.js timer that actually reimplements setTimeout, showing C++ bindings into V8 and libuv, the timer_wrap C++/JS hybrid, and the glue that wires a UV timer to a JavaScript callback. Demonstrates async tracking exposed to Chrome DevTools, runs unit tests, and measures that a naive UV-per-timer approach is orders of magnitude slower while Node’s real implementation groups timers for efficiency — reimplement setTimeout, libuv and V8.

AI-written summary · about

  1. 0:00Start
  2. 2:37How did I get into Node.js core?
  3. 5:09Node.js feature: setTimeout()
  4. 9:34Data stored for a timer
  5. 11:02Node.js internal helpers in fake JS
  6. 17:59What we want to write in C++ (in JS)
  7. 19:56Node.js layers
  8. 37:34A note on performance
~/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.