~/talk

Concurrency, Parallelism and Scheduling in JavaScript

Talkat HackConf 2018 · 2018-09-15..09-16· [javascript, concurrency]
slides:none on file

JavaScript remains single‑threaded but the runtime enables concurrency via the event loop and microtasks (promises, process.nextTick), plus parallelism through web workers (browser) and experimental worker threads in Node 10. Demo code shows a ping‑pong message loop between main thread and a worker, CSP‑style channels implemented with message/putter/taker queues and promises, a Select/peek race avoiding lost messages, and a note that setTimeout callbacks have a ~4.7ms minimum.

AI-written summary · about

  1. 0:00Introduction
  2. 0:46About the speaker
  3. 1:50Short history of JavaScript
  4. 3:59Scheduling models
  5. 5:46Parallelism types
  6. 6:27Concurrency models
  7. 8:37JavaScript basics
  8. 9:42Event loop explained
  9. 11:52Node.js event loop
  10. 13:19Blocking the event loop
  11. 14:44Callbacks and issues
  12. 16:07Promises introduction
  13. 17:52Generators in JavaScript
  14. 19:14Async/await explained
  15. 20:20Observables overview
  16. 21:44Naive threading approach
  17. 22:48Actors model
  18. 25:38Web Workers basics
  19. 27:47Web Workers limitations
  20. 29:14Go model CSP
  21. 30:18Implementing channels
  22. 31:42CSP ping-pong demo
  23. 34:59Select operator in JavaScript
  24. 37:29Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.