From: Andrew Johnson Date: 2006-02-21T17:33:30+09:00 Subject: Re: [ANN] lazy.rb 0.9.5 -- transparent futures! On Sun, 19 Feb 2006 10:07:12 +0900, MenTaLguY wrote: > --=-Nhoy1n60Sqvzvq/VUinT > Content-Type: text/plain > Content-Transfer-Encoding: quoted-printable > > I'd like to announce a new version of lazy.rb -- this one offering > thread safety and transparent futures! > > Here's the web site, complete with gem and tarball downloads, plus a bit > of documentation: > > http://moonbase.rydia.net/software/lazy.rb/ > > Bug reports would be very, very welcome. When I toyed with a proof-of-concept of Io's asynchronous messages in Ruby http://www.siaris.net/index.cgi/Programming/LanguageBits/Ruby/Async.rdoc Jim Weirich pointed out that methods later added to Object or Kernel will no longer be "missing" in the Async (or Future) class. One work around is to trap "method_added" up the chain, for example: http://www.siaris.net/cgi-bin/siwiki.pl?FeedBack/AsyncMessages But then I discovered that methods added by including a module weren't trapped by method_added -- so in the end, a KernellessObject (from evil.rb) was needed (same link as above) as Async's parent to keep the proxy clean. regards, andrew -- Andrew L. Johnson http://www.siaris.net/ What have you done to the cat? It looks half-dead. -- Schroedinger's wife