Concurrent GEM for Ruby?

Hi,

I’m wondering if anyone would like to see a Concurrent Library for
Ruby, like the Java javax.concurrent library ?

I know you can just use this library from jruby, but Im thinking more
of a idiomatic Ruby library, which could also be used ontop of jruby.

If you are interested having such a library please can you let me know
via an email to james ladd hotmail com ?

Rgs, James.

On Sat, Apr 25, 2009 at 5:45 PM, jamesl [email protected] wrote:

I’m wondering if anyone would like to see a Concurrent Library for
Ruby, like the Java javax.concurrent library ?

There are quite a few libraries that provide concurrency strategies
already

On Apr 26, 10:52 am, Tony A. [email protected] wrote:

medioh.com
Like ? Do you have a few URL’s to share?

Like ? Do you have a few URL’s to share?

Not sure why I didnt find this the other day
http://moonbase.rydia.net/mental/blog/programming/the-future-of-the-omnibus

2009/4/26 jamesl [email protected]:

I’m wondering if anyone would like to see a Concurrent Library for
Ruby, like the Java javax.concurrent library ?

Some building blocks are part of the standard library already: Mutex,
Monitor, MonitorMixin, Queue.

If you are interested having such a library please can you let me know
via an email to james ladd hotmail com ?

This is a public forum. Why should only you benefit from answers?

Kind regards

robert

jamesl wrote:

Hi,

I’m wondering if anyone would like to see a Concurrent Library for
Ruby, like the Java javax.concurrent library ?

I know you can just use this library from jruby, but Im thinking more
of a idiomatic Ruby library, which could also be used ontop of jruby.

If you are interested having such a library please can you let me know
via an email to james ladd hotmail com ?

Rgs, James.
www.jamesladdcode.com

I’m wondering if anyone would like to see a Concurrent Library for
Ruby, like the Java javax.concurrent library ?

Please have a look at revactor
http://rubyforge.org/frs/download.php/31492/revactor-0.1.4.gem

If you are looking for a process pool or similar,
http://abundance.rubyforge.org/
it forks an n amount of concurrent process workers then seed/harvest
them by
unix sockets communication,

2009/4/26 Tony A. [email protected]

On Sat, Apr 25, 2009 at 7:10 PM, jamesl [email protected] wrote:

Like ? Do you have a few URL’s to share?

Well, I’m not sure what you’re after. Two libraries for actor-based
concurrency (one of them mine) have been linked, but those aren’t really
anything like java.util.concurrent.

Are you wanting a small framework for backgrounding work into “thread”
pools? (which would more likely be implemented as process pools)

Ruby’s threads provide only sequential execution, since Ruby’s memory
model
is inherently sequential. For concurrent processing it’s best to farm
things off to additional processes so that the OS’s scheduler can make
them
concurrent. There are packages to do this as well (e.g. BackgroundDRb)