[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

[ANN] Futures and JRuby: The Omnibus Concurrency Library 0.2.1

MenTaLguY

5/29/2007 12:53:00 AM

Just a quick note that I've released version 0.2.1 of the 'concurrent'
gem, which provides Actors, data-parallel programming, and transparent
futures (plus lazy evaluation) for Ruby. This one adds:

* Actor timeouts
* Cleaned up support for Futures
* Support for JRuby

Downloadables are here:

http://rubyforge.org/frs/?group_id=3690&releas...

I'll be working on documentation for the next release, but until then,
here's a brief example of futures in action:

require 'concurrent/futures'
include Concurrent::Futures

f = Future.async { 3 * 3 } # the block runs in a new thread
f.inspect # => #<Thunk #<Thread:0xdeadcafe run>>
f + 1 # waits for thread to complete, then => 10
f.inspect # => 9

-mental
3 Answers

Michael Fellinger

5/29/2007 1:36:00 AM

0

On 5/29/07, MenTaLguY <mental@rydia.net> wrote:
> Just a quick note that I've released version 0.2.1 of the 'concurrent'
> gem, which provides Actors, data-parallel programming, and transparent
> futures (plus lazy evaluation) for Ruby. This one adds:
>
> * Actor timeouts
> * Cleaned up support for Futures
> * Support for JRuby
>
> Downloadables are here:
>
> http://rubyforge.org/frs/?group_id=3690&releas...

Do you plan on releasing the scheduler dependency soon? :)

>
> I'll be working on documentation for the next release, but until then,
> here's a brief example of futures in action:
>
> require 'concurrent/futures'
> include Concurrent::Futures
>
> f = Future.async { 3 * 3 } # the block runs in a new thread
> f.inspect # => #<Thunk #<Thread:0xdeadcafe run>>
> f + 1 # waits for thread to complete, then => 10
> f.inspect # => 9
>
> -mental
>
>

MenTaLguY

5/29/2007 2:25:00 AM

0

On Tue, 2007-05-29 at 10:35 +0900, Michael Fellinger wrote:
> Do you plan on releasing the scheduler dependency soon? :)

Wow, I thought I'd already released it. Guess not though...

Here you go:

http://rubyforge.org/frs/?gro...

-mental

MenTaLguY

5/29/2007 2:32:00 AM

0

Incidentally, I'd like to hear from anyone using the library -- what
they like and what they don't. It'll help me a lot to decide where to
take things.

Also, sorry again about the scheduler mix-up. It should be uploaded
now.

-mental