Actor, Thread and me
summary
Argues that the actor model is a model not a panacea and often isn’t inherently safer than threads; builds a select-based event loop ("bartender") in Ruby with nonblocking wrappers, a small RPC‑style server and a DB protocol client that run, and experiments with both per-actor queues (method_missing dispatch) and a central Linda tuple space. Shows it works but reveals hidden blocking and context‑saving complexity (fibers yield to scheduler, long unknown blocking calls still require spawning threads), so actors trade shared‑memory races for hard coordination costs.
AI-written summary · about
chapters (6)
- 0:00Introduction and sponsors
- 3:20What is the Actor model
- 10:53Problems with Actor model
- 14:23Building a messaging system
- 20:53Actor implementations in Ruby
- 22:41Conclusion and Q&A
related talks
38mScaling Ruby with Actors, or How I Learned to Stop Worrying and Love Threads
34mActors in Ruby! Why let Elixir have all the fun?
54mIntroduction to the Actor Model
26mAn Exceptional Actor System (Functional Pearl)
32mAn Actor Model in Go
28mCome Discuss Ractors and Concurrency with 'The Dude'!
38mModeling concurrency in Ruby and beyond
41mDIY Actors using Project Loom
