block_transfer by Swistak (Marcin Raczkowski) http://www.softwarelab.eu/ == DESCRIPTION: This Package allows to quite easilly setup thin eval servers, that can recive ruby code (even generated dynamically in memory) And then execute it in asynchronous maner. There's asynchronous each and map attached as examples == FEATURES/PROBLEMS: * Alpha * Not many tests * done in few hours during Euruko 2008 == SYNOPSIS: start random number of ./server.rb address port the'll print something like druby://address:port right now you'll have to somehow get it into client ;) start client - copy adresses. go! == Sample Usage $: << "lib" << "../lib" require 'rubygems' require 'pp' require 'logger' require "sender" $logger = Logger.new($stdout) sender = Sender.instance sender.add_worker "address of worker" fib = sender.lambda{|fib| a,b = 1,1 if fib < 3 1 else while fib > 2 a,b = b,a+b fib-=1 end b end } (2000..3000).to_a.each{|x| fib.call(x) } == REQUIREMENTS: * ruby2ruby == INSTALL: * gem install transfer == LICENSE: (The MIT License) Copyright (c) 2008 FIXME (different license?) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.