~/talk

Ractor Demonstration

Talkat RubyConf 2020 · 2020-11-17..11-19· [ruby, concurrency]
slides:none on file

Ruby 3 introduces Ractor, an actor-like parallel abstraction that isolates most objects and permits true multi-CPU execution; 20 ractors use 20 CPUs demonstrates parallelism on 40 logical cores. Messages are copied between ractors so object ids change — object-copy on send — and ports support send/receive, outgoing pipelines and immediate nonblocking sends. Examples show two ractors halving a prime-check from 26s to 13s, but object allocation is slower (1,000,000 strings: 0.2s single vs several seconds on Ractor). Limitations include no global/class/instance vars in non-main ractors and experimental warnings and RemoteError exception propagation for failures.

AI-written summary · about

  1. 0:00Start
  2. 5:52Ractor Concepts
  3. 10:50Limited object sharing
  4. 11:50Shareable objects
  5. 12:16Ractor's concept Building ractors network with push/pull types communication
  6. 12:51Ractor's idea Push type communication
  7. 15:18Ractor's idea Pull type communication
  8. 18:11Load balancing with a bridge ractor
  9. 20:02Exception propagation
  10. 21:03Ractor's idea Error recovery on the ractor network
~/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.