InfoQ

News

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

Posted by Werner Schuster on Jan 31, 2008 12:00 PM

Community
Ruby
Topics
Runtimes,
Performance & Scalability,
JRuby,
Programming
Tags
Virtual Machines,
Rubinius,
Ruby1.9,
Threading
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.

1 comment

Reply

one more resource by Pat Eyler Posted Jan 31, 2008 3:19 PM
  1. Back to top

    one more resource

    Jan 31, 2008 3:19 PM 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.

Exclusive Content

Rationalizing the Presentation Tier

Thin client paradigm characterized by web applications is a kludge that needs to be repudiated. Old compromises are no longer needed and it's time to move the presentation tier to where it belongs.

Agile Project Management: Lessons Learned at Google

In this presentation filmed during QCon 2007, Jeff Sutherland, the creator of Scrum, talks about his visit at Google to do an analysis of Google's first implementation of Scrum.

AtomServer – The Power of Publishing for Data Distribution

In this article, Bryon Jacob and Chris Berry introduce AtomServer, their implementation of a full-fledged Atom Store based on Apache Abdera, which is now available as open source.

An Introduction to Virtualization

It is easy to think that virtualization applies only to servers. In reality the recent resurgence of the concept is also being applied to networking, storage, and application infrastructure.

REST Anti-Patterns

In this article, Stefan Tilkov explains some of the most common anti-patterns found in applications that claim to follow a "RESTful" design and suggests ways to avoid them.

Choosing between Routing and Orchestration in an ESB

In this article, Adrien Louis and Marc Dutoo discuss the differences and relative merits of using orchestration vs. routing in a typical ESB setup, and discuss various implementation options.

Enterprise Batch Processing with Spring

Wayne Lund discusses batch processing, Spring Batch objectives and features, scenarios for usage, Spring Batch architecture, scaling, example code, failures and retrying, and the future roadmap.

User Story Estimation Techniques

Developer Jay Fields draws on his experiences as a ThoughtWorks consultant to describe effective user story estimation techniques.