News for hackers. Stuff that matters.
Re:Rust and Go by earlz on Friday November 07, 2014 @05:12PM (#8574931)
Wow that makes me cringe. This specifically:

> The power of the map/filter abstraction starts becoming more apparent when you do things like

> Filter(someFunc, Map(funcWith3args, vecA, vecB, vecC))

> And you realize you should swap map and filter for your particular app for better performance.

met with this reply:

> vs > [10 lines of code for two for loops doing the same thing] > Using range makes it obvious that there is a performance hit in the first place.

Re:Rust and Go by codygman on Saturday November 08, 2014 @12:54AM (#8576167)
In cases of needing more performance, you only swap map and filter for a loop in languages that don't optimize it.