~/talk

Modeling concurrency in Ruby and beyond

Talkat MountainWest RubyConf 2011 · 2011-03-17..03-18· [concurrency, ruby]
slides:none on file

Argues that Ruby needs actor/CSP-style concurrency and shows a working Ruby prototype: the agent gem implements Go-like channels and a go keyword, with channels typed and configurable buffer size. Demonstrates a producer/consumer and a worker-pool example with two workers, channel buffer 2, each worker sleeping 1s and returning incremented results — both workers run concurrently without explicit locks. Notes MRI’s GIL limits multi-core gains, recommends experimenting on JRuby/Rubinius/MacRuby, and claims this model is simpler and safer than raw threads.

AI-written summary · about

  1. 0:00Start
  2. 0:09Lead Media Partners
  3. 2:13Hardware Parallelism
  4. 6:25The "concurrency API"
  5. 11:32The history: actor model
  6. 15:30The history: CSP model
  7. 19:38Producer/Consumer
~/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.