~/talk

Don’t Try This at Home: Synchronous I/O in Node.js

Talkat Node Congress 2021 · 2021-02-18..02-19· [nodejs]

Explores concrete options for doing synchronous I/O in Node.js and what actually works: plain fs.readFileSync exists but only covers files; compiling C/Rust to WASI WebAssembly is synchronous but awkward; native add‑ons work but require reimplementing networking; workers + Atomics lets main thread block while a worker does async network I/O and is production‑ready but blocks the event loop and limits object access; embedding a separate Node instance (synchronous worker) is powerful but experimental and crash‑prone; mongosh currently uses Babel to transpile async to sync as a pragmatic workaround.

AI-written summary · about

  1. 0:00Start
  2. 5:04So what do I actually work on
  3. 6:12Migrating from Spider Monkey to Node.js
  4. 17:40Sync I/O in Node.js: The chaotic neutral way
~/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.