Google Blogoscoped

Forum

Joel Spolsky on MapReduce  (View post)

Art-One [PersonRank 10]

Sunday, August 6, 2006
17 years ago3,526 views

It makes coding not easier to understand I think only faster... But of course that's very important too ;-)

Does anyone use concepts like that in its own code?

(BTW a bit of topic, but I'm looking for some java code that is reading a mailbox and puts all the received e-mail (including attachment) in an sql database... if anyone....)

Dave Metzener [PersonRank 1]

17 years ago #

My thought was about the same as Art-One. It's a great idea to speed up code, but it adds a level of complexity that seems to out-weigh the speed improvement.

I suppose if an API was put together that made the code that used the concept easier to follow, then it would be OK.

Interesting...

Matt Cutts [PersonRank 10]

17 years ago #

Pretty powerful stuff. For example, you could map over the entire web, and then reduce over the small set of docs that matched some criteria.

Deeper magic, as C.S. Lewis would say.

Wendell [PersonRank 0]

17 years ago #

I think that it only looks harder to understand because everybody is used to the for loop... but after using the map for a while, you start seeing it even easier than the traditional loop, because you don't need to keep control of an iterator variable (the i for example), the array length, etc..
The good news is that with the new languages/frameworks it is getting more widespread... Ruby and Prototype uses this extensively..

Anyway, I think that for a compiled language like C, where you are taking care of every byte of memory used, it is enough to have function pointers.. they serve the map function very well (creating functions on the fly seems a bit overkill).. (disclaimer: big C fan)

As always, Joel's articles are great. He illustrates his point very well.. I just didn't quite get how useful the reduce function can be in such scenario..

Forum home

Advertisement

 
Blog  |  Forum     more >> Archive | Feed | Google's blogs | About
Advertisement

 

This site unofficially covers Google™ and more with some rights reserved. Join our forum!