Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README
Octocat-spinner-32 mapreduce_enumerable.rb
Octocat-spinner-32 mapreduce_runner.rb
README
By Blaine Cook.

http://romeda.org/blog/2007/04/mapreduce-in-36-lines-of-ruby.html

If you want to add `dinject` (reduce) please do:
http://github.com/defunkt/mapreducerb

In your shell:
$ sudo gem install RingyDingy
$ sudo gem install ruby2ruby
$ ring_server &
$ ruby mapreduce_runner.rb &
$ ruby mapreduce_runner.rb &

In IRB:
>> require 'mapreduce_enumerable'
>> (1..100).to_a.dmap { |v| v * 2 }
Something went wrong with that request. Please try again.