|
|
|
|
|
by richardjordan
4875 days ago
|
|
I must be the only person who thought this was about the gem using Actor pattern. Great write-up. I really appreciated it as concurrency was something I've been looking into and was about to start toying with the Celluloid gem. This was a really good, clear example with useful code. Thanks! Of course, adding the word "gem" to the title might indeed help. Now, an article on creating the material celluloid would indeed be awesome... volunteers? |
|
If you liked this article, you may also enjoy "A gentle introduction to actor-based concurrency"(*), which shows how to solve the dining philosopher's problem using Ruby threading primitives, celluloid, and a made-from-scratch actor model similar to what is shown in this article:
https://practicingruby.com/articles/shared/plgjjonrkggl
Disclaimer: I am the editor for practicingruby.com, and this is one of our contributed articles (from Alberto Fernandez-Capel).