~/talk

The Node.js Eventloop Fairytale

Talkat Conf42 JavaScript 2023 · on Thursday, 2023-11-16· [nodejs, concurrency]
slides:none on file

Clear, introductory walkthrough of the Node.js event loop that names the six phases (timers, pending callbacks, idle/prepare, poll, check, close), explains how libuv threadpool offloads blocking work so the main thread stays responsive, and distinguishes microtasks (process.nextTick/promises), setImmediate, setTimeout(0) ordering and that console.log is synchronous; setTimeout(0) doesn't run immediately. Emphasizes reasoning about which phase runs when and why blocking CPU work must be moved out of the loop.

AI-written summary · about

  1. 0:00intro
  2. 0:22preamble
  3. 0:53about lorenzo
  4. 2:32about birdie
  5. 3:08it was history
  6. 3:41enter the knights of the thread
  7. 5:17the lands of promise
  8. 6:31the inhabitants
  9. 7:18sir call-a-stack
  10. 8:25the heart of the village, the loop
  11. 9:33the desert of asynchrony
  12. 9:59the forest of the threadpools
  13. 10:44the libuv elves
  14. 11:28the path back to the city
  15. 11:44join the queue once more
  16. 12:35the menacing dragon blocks
  17. 13:46the event loop phases
  18. 15:18knowledge is everything
  19. 16:32inside the loop
  20. 18:08which magic scroll would first be read by the mages?
  21. 19:19strenght is found in the mind, but is accrued with time
  22. 19:54lorenzo, the bard that sang this story
  23. 20:15want to get into open-source?
  24. 20:28thank you
~/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.