3 ms·
> “With an iterative process, the computer doesn't need to use up resources for each iteration. If you know a bit about programming, you might have expected tha
by mrkeen 6y ago
> “With an iterative process, the computer doesn't need to use up resources for each iteration. If you know a bit about programming, you might have expected that each iterative call, like each recursive call, would consume a small amount of memory and eventually run out. Our system is smart enough to notice the iteration and avoid doing that.”
Yes, getting recursion right is old hat. But the fact that it was solved a long time ago doesn't mean it's solved for me today. If I program like that in my day job in 2020, I do in fact "consume a small amount of memory and eventually run out"
- FeepingCreature 6y agoI mean, if you were writing iteration in your day job, you'd presumably be using a real loop, not a recursive tail call emulating a loop.