Concurrent GEM for Ruby ?

J

jamesl

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 <underscore> ladd <at> hotmail <dot> com ?

Rgs, James.
www.jamesladdcode.com
 
T

Tony Arcieri

[Note: parts of this message were removed to make it a legal post.]

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
 
J

jamesl

[Note:  parts of this message were removed to make it a legal post.]

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

Like ? Do you have a few URL's to share?
 
S

Suresh Kk

jamesl said:
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 <underscore> ladd <at> hotmail <dot> 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
 
R

Robert Klemme

2009/4/26 jamesl said:
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 <underscore> ladd <at> hotmail <dot> com ?

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

Kind regards

robert
 
T

Tony Arcieri

[Note: parts of this message were removed to make it a legal post.]

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)
 
L

Louis-Philippe

[Note: parts of this message were removed to make it a legal post.]

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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,111
Latest member
KetoBurn
Top