~/talk

A Crash Course on Worker Threads

Talkat JSConf Hawaiʻi 2020 · 2020-02-05..02-07· [nodejs]
slides:none on file

Node.js adds worker_threads (introduced in 10.5, stable in 12.11, use 12.15.0 for security fixes) and demonstrates concrete code: a one-file hello world, passing workerData, using parentPort.postMessage, and terminating with terminate() that returns a promise. The talk shows sharing/transferring ArrayBuffers and pooling, and measures performance: single-thread BFS ~14s, bi-directional ~3s, and two parallel workers under 700ms, with links to slides and repo.

AI-written summary · about

  1. 0:00Start
  2. 1:18UCSF Library
  3. 4:25Web Workers
  4. 4:50JavaScript is single-threaded
  5. 26:06PALACE FAMILY STEAK HOUSE
~/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.