~/talk

Electron: The Event Loop Tightrope

Talkat JSHeroes 2019 · on Friday, 2019-04-12· [nodejs, web-platform]
slides:none on file

Electron reconciles Node.js’s libuv event loop with Chromium’s message loop by abandoning hacks and polling timers and instead running Chromium’s loop as primary while a second thread inspects libuv (via uv_backend_fd) and posts tasks into Chromium so libuv’s pending callbacks run synchronously inside the message loop. The team prototypes that failed (FD-extraction hacks, rapid loop pumping) are enumerated, the final message loop integration is implemented and succeeds in practice.

AI-written summary · about

  1. 0:00Intro
  2. 0:30Shelleys Introduction
  3. 0:59Electron Recap
  4. 2:35Overview
  5. 3:48Event Loop Diagram
  6. 5:53Node
  7. 8:08Phases
  8. 9:18libuv
  9. 10:06kq
  10. 10:32file descriptors
  11. 12:01Electrons purpose
  12. 12:59Multiprocess architecture
  13. 14:52Render process
  14. 15:30Remote
  15. 17:19Chromiums Event Loop
  16. 18:58Reconciliation Attempt 1
  17. 19:46GUI Message Loops
  18. 21:07Electron Main Thread
  19. 23:28References
  20. 23:47Questions
~/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.