Post #2114047
2026-05-06 14:58 UTC
@nyx @shana while not quite a for-loop, in lazy languages that have bignums, you could yield partial sums forever, at least until your sum grows to millions of digits
Replies (3)
-
@shana@mastodon.gamedev.place 2026-05-06 16:22
@hjvt hey, why have one for-loop when you can have Parallel.ForEach() and turn *all* your cpu cores into one toasty personal heating unit!
-
@nyx@lgbtqia.space 2026-05-06 18:22
@hjvt @shana that is cute but still very far from infinity. And you can't do it forever, at least not according to our current understanding of the universe. You only have until heat death, and even if you did it until then you would be nowhere near infinity.
-
@chrysn@chaos.social 2026-05-07 07:24
@hjvt@hachyderm.io @nyx@lgbtqia.space @shana@mastodon.gamedev.place Great, now I am nerdsniped into pondering when a compiler can justifiably terminate what is by spec an inftinite loop into an analytical result.