On Friday, April 25, 2014 at 4:59 AM, Isaac Johnston wrote: > Hi all, > > It would be good to see the state of JavaScript MapReduce on Riak improve. > > erlang_js [1], which is used for JavaScript MapReduce, is using an antiquated > version of SpiderMonkey that is missing tens of features and significant > performance improvements. E.g., Object.getOwnPropertyNames(), > Function.bind(). > > There is a pull request to attempt to update it to a more recent old version > [2]. > > I think it would be interesting to get Google's V8 [3] running as a Riak > MapReduce back-end. Some Erlang wrappers for v8 already exist [4]. > > Does anyone have any guidance or insight how one would go about writing a v8 > Riak MapReduce backend ?
I would go a step further and say it would be *really* cool to have the M/R framework pluggable. One could spin up a JDK 8 Nashorn implementation (maybe even with a little Reactor integration thrown in for good measure ;) that communicated over jinterface and would like to the M/R framework like a normal Erlang process. Or one could use Clojure or other JVM language like Ruby, etc… ZeroMQ support would be cool here as well…using inproc or even over the localhost to something like Reactor [1] running in a JVM. I'm currently playing with Reactor's Nashorn and network support such that I can make a Reactor participate in an Erlang topology with minimal static and Riak's M/R engine has been on my mind as a good way to test it. [1] - https://github.com/reactor/reactor Thanks! Jon Brisbin http://about.me/jonbrisbin | Twitter: @JonBrisbin > > [1] https://github.com/basho/erlang_js > [2] https://github.com/basho/erlang_js/pull/44 > [3] https://code.google.com/p/v8/ > [4] https://github.com/chromaticbum/erlang_v8 > > Thanks! > > Isaac > _______________________________________________ > riak-users mailing list > riak-users@lists.basho.com (mailto:riak-users@lists.basho.com) > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > >
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com