~/talk

How to Wait

Talkat JSConf Hawaiʻi 2020 · 2020-02-05..02-07· [web-platform, javascript]
slides:none on file

Starts with await fetch and traces the actual plumbing: Node queues work in libuv, libuv uses Linux epoll (or IOCP on Windows) and the kernel raises interrupts that drivers and the scheduler handle, DMA and HPET fire background callbacks, CPUs enter halt states to save power, and JavaScript runtimes implement cooperative multitasking so long-running JS blocks the event loop. Demonstrates that async/await is a mapping onto OS/kernel/hardware mechanisms and why an event loop scales better than many blocking processes.

AI-written summary · about

  1. 0:00Start
  2. 1:58What is waiting?
  3. 17:00Scheduling
  4. 19:04Process/thread overhead
  5. 19:46Weaving together events
  6. 21:25React fibers
~/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.