~/talk

Plastic Shovels in a Multithreaded Sandbox

TalkinRussianat HolyJS 2024 Autumn · 2024-11-07..11-15· [javascript]
links:none on file
slides:none on file

Explains how multithreading is implemented in JavaScript by covering Atomics and Transferable Objects and demonstrating synchronization patterns like Semaphore and Mutex. Shows practical examples and custom implementations (referred to as small projects or ‘cosmolets and bicycles’) to illustrate those patterns.

AI-written summary · about

  1. 0:00Introduction
  2. 3:12Browser and JS main thread
  3. 4:16Long tasks and page hangs
  4. 5:40Web Workers for optimization
  5. 7:05Web Worker vs Shared Worker
  6. 9:34When to use Shared Workers
  7. 10:39Creating Shared Workers
  8. 12:29GitHub Shared Worker case
  9. 13:54Transferring object ownership
  10. 16:24Thread-safe state issues
  11. 17:52SharedArrayBuffer libraries
  12. 18:36Object Buffer in practice
  13. 20:01Simplifying Workers with Comlink
  14. 20:45Cross-Origin Isolation limits
  15. 21:27Race condition and Atomics fix
  16. 24:21Mutexes with Atomics
  17. 26:11SharedArrayBuffer vs ArrayBuffer
  18. 27:13Workers recap and takeaways
  19. 31:30Q&A
  20. 34:07Shared Memory in JS
  21. 36:35Atomics in real scenarios
  22. 37:41TypeScript with Workers
  23. 38:23SharedArrayBuffer standards
  24. 39:26WebAssembly and Workers
  25. 41:17Worker creation limits
  26. 42:50Q&A
~/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.