small medium large xlarge

Photo_14_pragsmall
09 Dec 2009, 21:03
David J. (6 posts)

Ruby isn’t a direct Erlang competitor, and obviously, for intense low-level distributed concurrent work, Erlang is perfect. But if you have a project written entirely in Ruby, and you want to add Actor Model functionality to a small part of it, DRb/Rinda may be the best way to go. Even if they aren’t the best solution, there has got to be some way to implement solid concurrency in Ruby to optimize app modules.

Anyway, I think DRb and concurrent functionality will become more important to Ruby in the near future, and a Pragmatic take on this side of Ruby would be nice. Alternatively, a book could take a broader focus and describe “how to emulate Erlang-style concurrency in parts of your Ruby app”.

Or you could write an in-depth discussion about the actor model and how Ruby can use it to gain speed.

Just a couple of ideas.

Generic-user-small
10 Dec 2009, 00:31
Brad Hutchins (142 posts)

Well for currency in Ruby. You have 2 immediate choices:

JRuby, which Pragmatic is coming out with a book about it. And MacRuby which is compiled instead of interpreted, and uses OS X’s “Grand Central Dispatch” (GCD) to automate threads to multi core processors. Some of the other variants of Ruby also support concurrency, but these are the two I have heard of the most.

Brad

Generic-user-small
10 Dec 2009, 21:10
Brad Hutchins (142 posts)

PS… Especially nice as MacRuby evolves it becomes more integrated into XCode (specifically with “Instruments”, and using an integrated RSpec/Cucumber BDD if possible too).

You must be logged in to comment