BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Article: Ruby Concurrency, Actors, and Rubinius - Interview with MenTaLguY

| by Werner Schuster Follow 2 Followers on Jan 31, 2008. Estimated reading time: 1 minute |
With the recent interest in Erlang and generally everything that promises to help with making concurrent programming easier, a lot of unfamiliar terms have popped up. As always in Computer Science, none of these technologies are new.

The idea behind Actors has been around for decades, but has recently been pushed into the public eye by Erlang which makes Actor-style programming easy.  Erlang does so with lightweight processes, terse syntax for sending messages to processes,  and the use of pattern matching to process incoming messages.  A new library for Ruby 1.9 called Revactor adds very Erlang-style Actors to Ruby.

Coroutines have also been around for a very long time, and in many languages in various shapes. Starting out as concurrency primitives in the 60's, they disappeared from the public eye when preemptively scheduled threads became popular. Some languages, however, have retained them. Python has had the Generator feature, a special kind of Coroutine for some time. Lua has had full Coroutines as well. Languages like C also had libraries for Coroutines such as libtask or ProtothreadsRuby 1.9 has added a feature called Fibers, both usable as full or Generator-like Coroutines.

We talked to MenTaLguY, a longtime Ruby community member working on various areas of Concurrency. The interview tries to put Actors, Coroutines in perspective and also see how these related to the work going on in Rubinius, which also brings its own set of concurrency primitives such as Channels to communicate between threads.

Read: Ruby Concurrency, Actors, and Rubinius - Interview with MenTaLguY.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

one more resource by Pat Eyler

Thanks for the link to my interview with Tony. Another resource that's worth noting is probably my article on Actors in Ruby, which includes some input from Tony and MenTaLguY, along with Joe Armstrong and others.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

1 Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT