3 ms·
At the risk of inspiring a violent reaction (virtually, of course): Sorry folks, this is silly. Go solve real problems. Does a patient care if the ML code th
by robomartin 7y ago
At the risk of inspiring a violent reaction (virtually, of course): Sorry folks, this is silly. Go solve real problems.
Does a patient care if the ML code that discovered a malignant tumor used an explicitly written loop?
As a silly test: What would be the value in rewriting the Facebook, Google, Amazon, etc. codebases to avoid loops? What’s the ROI?
Kindly provide a few examples at scale (not academic oddities) where this might actually matter?
You can’t avoid loops. Any time you are doing the same thing repeatedly, you are using a loop, whether you explicitly wrote it or not.
Sure, sure, there are corner cases. I have unrolled loops in assembly in real time embedded code where every microsecond counted. That is far from the norm and, frankly, should be avoided with absolute passion.
I have also worked with APL for ten years. You can do amazing things with the language while seemingly not looping. In reality nearly everything you do with APL includes heavy looping behind the curtains, and you better be well aware of this if performance is important.
Don’t get me wrong, the academic question is interesting. However, if you live and work in the real world there are far more interesting and pressing issues to be concerned with.