[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Concurrent GEM for Ruby ?

jamesl

4/25/2009 11:41:00 PM

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
7 Answers

Tony Arcieri

4/26/2009 12:53:00 AM

0

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

On Sat, Apr 25, 2009 at 5:45 PM, jamesl <ladd.james@gmail.com> 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

--
Tony Arcieri
medioh.com

jamesl

4/26/2009 1:06:00 AM

0

On Apr 26, 10:52 am, Tony Arcieri <t...@medioh.com> wrote:
> [Note:  parts of this message were removed to make it a legal post.]
>
> On Sat, Apr 25, 2009 at 5:45 PM, jamesl <ladd.ja...@gmail.com> 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
>
> --
> Tony Arcieri
> medioh.com

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

jamesl

4/26/2009 3:40:00 AM

0


> 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-t...

Suresh Kk

4/26/2009 4:44:00 AM

0

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 <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...
--
Posted via http://www.ruby-....

Robert Klemme

4/26/2009 9:54:00 AM

0

2009/4/26 jamesl <ladd.james@gmail.com>:
> 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

--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestprac...

Tony Arcieri

4/26/2009 5:04:00 PM

0

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

On Sat, Apr 25, 2009 at 7:10 PM, jamesl <ladd.james@gmail.com> 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)

--
Tony Arcieri
medioh.com

Louis-Philippe

4/27/2009 2:59:00 PM

0

[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.ruby...
it forks an n amount of concurrent process workers then seed/harvest them by
unix sockets communication,


2009/4/26 Tony Arcieri <tony@medioh.com>

> On Sat, Apr 25, 2009 at 7:10 PM, jamesl <ladd.james@gmail.com> 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)
>
> --
> Tony Arcieri
> medioh.com
>