CouchDB: map-reduce in Erlang

Jak pisać funkcje map-reduce w Erlang dla CouchDB? Jestem pewien, że Erlang jest szybszy niż JavaScript.

Author: Jim Puls, 2009-07-23

2 answers

Można to zrobić za pomocą erlview, który znajduje się w pierwszej dziesiątce hitów w Google dla "CouchDB erlang view" i jest wymieniony na stronie wiki CouchDB dla serwerów widoku w innym języku.

 16
Author: Jim Puls,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2009-07-23 08:24:17
pmap(F, L) ->
    Parent = self(),
    Pids = [spawn(fun() ->
                     Parent ! {self(), F(X)}
                  end) || X -> L],
    [receive {Pid, Res} -> Res end || Pid < - Pids].
Chyba tak, Bob.
 25
Author: Fu.,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2009-07-23 22:27:15