by bennybob · 5y ago · 0 comments
The author is claiming (and I and many more practical-minded programmers agree) that in J, explicit loops are rarely needed, and usually not even helpful. As the J notation is designed for loopless programming, it has the same kind of bias, against loops. But knowing how J approaches things can be valuable. Most likely, many problems you think are unapproachable with map and reduce can be solved easily by knowing the right techniques.
Presumably the exact semantics of a for-type loop depends on the language, but surely the C standard doesn't prevent auto-parallelization (including with SIMD vectorization, modulo arithmetic rules). Loops might also have OpenMP or other annotation.