~/talk

Fearless Concurrency with JavaScript and Beyond

Talkat WebCamp Zagreb 2018 · 2018-10-05..10-06· [javascript, frontend-architecture]
name:Evadne Wu
links:none on file
slides:none on file

Compares single-threaded async (XHR, setTimeout, requestAnimationFrame) to multi-context web workers, shows a blob-spawn pattern and using postMessage transfers for big ArrayBuffers, and reports a 3.5× overhead when splitting a Fibonacci job across 100 workers versus a loop. Demonstrates sleep sort and a 1,000,000-iteration Fibonacci, shows iframe isolation is weak (renderer shared), web workers isolate runaway loops and can be terminated, notes a 512-worker Firefox limit and recommends cancelable tasks and testing offscreen canvas support.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:27Concurrency vs parallelism
  3. 3:37Benefits of concurrency
  4. 5:24Messaging between threads
  5. 7:29Concurrent architecture design
  6. 8:13Adopting concurrency in apps
  7. 9:28Demo sleep sort with workers
  8. 13:20Limitations of web workers
  9. 14:25Parallelization overhead demo
  10. 15:50Isolating malicious code
  11. 17:59Off-screen canvas isolation
  12. 19:28Pressure testing browsers
  13. 21:35Key takeaways and conclusion
~/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.