[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Linda primer?

Brian Candler

2/21/2007 9:19:00 PM

I've been trying to find out some info on Ruby's "Rinda". I'm familar with
DRb, but not Rinda/Linda.

All the materials I can find on the web seem to say something along the
lines of: "Rinda is just like Java's Linda, but for Ruby". But not being a
Java-head, I don't know anything about Linda. Or they say: "it's a
blackboard where you store and retrieve tuples", without any details about
the semantics of these store and retrieve operations.

What I'm looking for is an overview including:
- what the data model looks like
- what basic operations the client can request
- what the semantics are of these operations

Does anyone know of any documentation at this level?

The rdoc at http://www.ruby-doc.org/stdlib/libdoc/rinda/rdoc/...
doesn't really help me. To take one example, Rinda::TupleSpace#move says:

"move(port, tuple, sec=nil) {|template| ...}

Moves tuple to port"

I have a vague inkling of what a "tuple" is, but I certainly don't know what
a "port" is in this context.

As a secondary question: does anyone know of any cross-platform tuplespace
systems which could be shared between, say, Ruby and Perl? (I realise I
could stick a SOAP facade onto a Rinda TupleSpace, but perhaps there's a
better way)

Many thanks,

Brian.

4 Answers

Olivier

2/21/2007 10:33:00 PM

0

Le mercredi 21 février 2007 22:19, Brian Candler a écrit :
> I've been trying to find out some info on Ruby's "Rinda". I'm familar with
> DRb, but not Rinda/Linda.

There are some simple examples in the great book "Ruby Cookbook", by Lucas
Carlson and Leonard Richardson (the part about drb and rinda is actually
written by James Edward Gray II).
At the end of the articles, there are pointers to online documentation that
may interest you :

http://rubyforge.org/docman/view.php/251/216/Distribut...
http://segment7.net/projects/ruby/drb/rinda/rings...

regards

--
Olivier Renaud

Ryan Davis

2/22/2007 4:11:00 AM

0


On Feb 21, 2007, at 4:19 PM, Brian Candler wrote:

> I've been trying to find out some info on Ruby's "Rinda". I'm
> familar with
> DRb, but not Rinda/Linda.
>
> All the materials I can find on the web seem to say something along
> the
> lines of: "Rinda is just like Java's Linda, but for Ruby". But not
> being a
> Java-head, I don't know anything about Linda. Or they say: "it's a
> blackboard where you store and retrieve tuples", without any
> details about
> the semantics of these store and retrieve operations.

Linda has been around far longer than Java. I suggest going to the
source:

How to Write Parallel Programs: A First Course by Nicholas Carriero
and David Gelernter.

http://www.amazon.com/dp/...


Brian Candler

2/22/2007 12:23:00 PM

0

On Thu, Feb 22, 2007 at 07:32:57AM +0900, Olivier Renaud wrote:
> > I've been trying to find out some info on Ruby's "Rinda". I'm familar with
> > DRb, but not Rinda/Linda.
...
> http://rubyforge.org/docman/view.php/251/216/Distribut...

That's very good, thank you!

Pierre-Charles David

2/22/2007 1:26:00 PM

0

2007/2/22, Ryan Davis <ryand-ruby@zenspider.com>:
>
> On Feb 21, 2007, at 4:19 PM, Brian Candler wrote:
> > All the materials I can find on the web seem to say something along
> > the
> > lines of: "Rinda is just like Java's Linda, but for Ruby". But not
> > being a
> > Java-head, I don't know anything about Linda.
>
> Linda has been around far longer than Java. I suggest going to the
> source:
>
> How to Write Parallel Programs: A First Course by Nicholas Carriero
> and David Gelernter.
>
> http://www.amazon.com/dp/...

A PDF version is available at http://www.lindaspaces.com/book/...

The Java version of Linda is actually called JavaSpaces. Other
implementations exist for various languages, see
http://en.wikipedia.org/wiki/Linda_%28coordination_l...

--
http://pc...