News for hackers. Stuff that matters.
Re:Rich Hickey: Reducers - A Library And Model For Collectio... by peppertree on Tuesday May 08, 2012 @12:36PM (#3944466)
This will go nicely with Storm.
Re:Rich Hickey: Reducers - A Library And Model For Collectio... by chubot on Tuesday May 08, 2012 @01:28PM (#3944791)
I thought storm worked on infinite streams? Does this support that?
Re:Rich Hickey: Reducers - A Library And Model For Collectio... by loumf on Tuesday May 08, 2012 @01:59PM (#3944981)
It should. It depends on which reducing function you choose -- the map step doesn't consume the stream, it just set up the mapped function to be called as you reduce. If your reducing function is lazy, then it works on infinite streams.
Re:Rich Hickey: Reducers - A Library And Model For Collectio... by puredanger on Tuesday May 08, 2012 @02:33PM (#3945185)
This works on collections, which are not infinite. If I read correctly, sequences (a higher level abstraction) fall back to their curent implementation.
Re:Rich Hickey: Reducers - A Library And Model For Collectio... by puredanger on Tuesday May 08, 2012 @02:40PM (#3945219)
I believe the existing pmap and preduce functions work in parallel over lazy streams by chunking work and parcelling it out. Depending on your use case, this is not necessarily ideal.