Bye bye stack was nice knowing you.
It’s ok, the stack overflow is the exit condition.
File "<python-input-0>", line 2, in a a() ~^^ [Previous line repeated 988 more times] RecursionError: maximum recursion depth exceeded
deleted by creator
I did try that once, you can’t catch stack overflow errors in .net at least. Too fundamentally broken.
the non-recursive part of this image is mildlyinfuriating
That’s the static variable in the function sticking around and watching the madness unfold.
That’s hilarious, reminds me of this.
Wait, is it possible to create a real infinite droste effect with vector graphics since they aren’t limited by resolution?
As long as you can do recursion in the xml it should be possible to make an svg that’s “infinitely” recursive yes?
(I have no experience on this topic)
Would it be an infinite file then? I guess unless you restrain the max file size. But as you’re zooming in, it will keep making more microscopic image, it’s kind of like a function that keeps approaching x value yet never reached it.
My brain hurts
Well the svg file itself wouldn’t be, but whatever tries to render the image might think the file is infinite since it’d loop around forever. Come to think of it, I’d imaging there are probably safeguards in place to prevent svg files like this hypothetical one from being opened because they’d run as an infinite loop
Even better when instead of recursive function calls, it a recursive process fork!
Knock knock!
Race Condition!
Who’s there?
Amazing. OC?
Nope, stolen from a Telegram group chat, not sure where it’s originally from.