Re:SICP Goodness – Why you don't need looping constructs
by jstimpfle on Friday June 29, 2018 @11:29AM
(#17425062)
Yeah you need to be careful what kind of iteration you do. Modifying pointers is likely problematic. Iterating over a range of integers on the other hand should be easy to optimize.
In most cases, it shouldn't matter and it's much more important to think about the data accesses, due to the relative slowness of memory.
For small data (MB) the compiler or library can parallelize things nicely. Bigger data (TB+) can be chewed threw by using MPI aware libraries that optimize and schedule and everything. Database work is already declarative because SQL is just so awesome. C# and java now handle fusion and streams more nicely and c++ can in-line and r-value a lot of overhead away.