From: Mikkel Bruun Date: 2001-11-27T16:09:02+09:00 Subject: [ruby-talk:26623] Re: more than one object in a druby server? tuplespace seems very nice... is it implemented in drb now?? Mikkel -----Original Message----- From: ptkwt@shell1.aracnet.com To: ruby-talk@ruby-lang.org Sent: 26-11-2001 23:47 Subject: [ruby-talk:26565] Re: more than one object in a druby server? In article , Dave Thomas wrote: >Tobias DiPasquale writes: > >> P.S. Would 'rinda' be any help? If so, what is 'rinda'? Sounds like it >> might be the thing, but can't find any docs on it. (don't speak Japanese) > >You can look up tuplespaces on Google, and there is a simple test in >the drb distribution itself. > >I'm amazed and the Ruby tuplespace implementation: the matching is >based on '===', so you can have message patterns like > > [ 'Dave', nil, /cat/ ] > - match messages with a first parameter of Dave and the third > parameter containing the string 'cat' > > [ 1..10, String ] > - match messages with the first parameter between 1 and 10 and > the second of class String. > >It works nicely too: I wrote a simple P-P chat server in about 10 >lines of code. Dave, Do you still have this P-P chat server code around? Do you mind sharing? ;-) Phil