~/talk

Concurrency for Rubyists

TalkinSpanishat RubyConf Argentina 2014 · 2014-10-24..10-25· [ruby, concurrency]
slides:none on file

Demonstrates that MRI’s Global Interpreter Lock prevents true parallelism (a 4-thread counter uses only one CPU core) while JRuby and Rubinius can utilize multiple cores (JRuby shows ~400% CPU) and JRuby provides realtime profiling. Compares thread-scaling limits on macOS (~2k) vs Linux (~20k–30k), recommends using concurrent-ruby v0.7 primitives, Celluloid for supervised worker restarts (includes a tiny Celluloid-based web server that auto-restarts crashed handlers), and promotes Hamster immutable collections for efficient copy-on-write data structures.

AI-written summary · about

  1. 0:00Introduction
  2. 1:57End of linear speed model
  3. 5:28Ruby default implementation
  4. 8:26Ruby GIL problem
  5. 14:34Concurrency model limits
  6. 17:23Concurrent Ruby primitives
  7. 21:31Communication vs memory sharing
  8. 24:16Celuloid and object concurrency
  9. 26:28Mutability problem
~/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.