From: Masatoshi SEKI Date: 2000-06-07T02:26:53+09:00 Subject: [ruby-talk:03132] Re: my wish list for Ruby - dRuby Hi. This is SEKI. > > The greatest problem of eRuby is no English document is available. > > Try http://www2a.biglobe.ne.jp/~seki/ruby/drb-1.1.tar.gz. It's all > > written in Ruby. drb-1.2 has just been released. -> http://www2a.biglobe.ne.jp/~seki/ruby/drb-1.2.tar.gz * feature: o Access Control List (optional) o Remote Iterator behaves properly. (break, next, redo, retry...) * problem: o No English document, sorry. * Remote Iterator sample: # array server require 'drb/drb' DRb.start_service('druby://localhost:9001', [1, 2, "III", 4, "five", 6]) DRb.thread.join # array client require 'drb/drb' DRb.start_service() ary = DRbObject.new(nil, 'druby://localhost:9001') p ary p ary.collect { |x| x+x } # Note ary.each do |x| break if x == "five" next if x.kind_of? String p x end #Note: Proc object '{|x| x+x}' is called back by server. Marshal can't dump Proc object. Client sends "collect" message with "{|x| x+x}"'s reference object (DRbObject) to server, by drb mechanism. Server calls this reference back, in collect method.