https://github.com/andyk/recursive_llm #recursion #AI #verbosity #techhumor #HackerNews #ngated
cd Volumes
, cd "Macintosh HD"
into an infinitely repeating pwd
<p>looking up "mac equivalent of windirstat" is going to result in me installing nix</p><p>literally <a target="_blank" href="https://www.reddit.com/r/macapps/comments/14x6hbz/comment/k6nv4he/">this specific reddit post</a> and then I guess there's "<a target="_blank" href="https://nixcademy.com/posts/nix-on-macos/">nix-darwin</a>" sō…</p>
Fair enough. Because recursion always has a limit, in any language, the tutorials probably assume you're aware of this already. The specific limit in Python is adjustable, but there's no way to eliminate it altogether.
Do the tutorials actually include data/examples that run into the recursion limit? Or is it only when applying code like that to other data that you run into issues?
I ask because the easiest way to smash the limit is to create a cyclic data structure, which is trivial in Python. If you naively recurse such an object, it goes on forever - until it hits the configured limit or the machine runs out of memory, anyways. i.e. this case:
>>> foo = ["bar"]
>>> foo.append(foo)
>>> foo
['bar', [...]]
If you think it's possible your recursion code might have to deal with something like this, you usually end up keeping track of the objects you've already processed, and skip them if you see the same object again (typically by the object ID).
In many cases, you can also rewrite recursive code so that it's not recursive, and cannot run into this problem. As a bonus, problems that can be refactored this way usually run faster without the recursion.
#politics #DOGE #GAO #oversight #recursion
"[Wired], citing government records and sources, revealed that the Government Accountability Office (GAO) launched an investigation back in March into how Elon Musk’s pseudo-agency has been handling data in the offices that it has pried its way into."
https://gizmodo.com/the-government-accountability-office-is-doge-ing-doge-2000587264
Gizmodo: DOGE Is About to Get DOGE’d. “While it often seems that no one is watching the watchmen under the Trump administration, a new report from Wired suggests there is at least one agency still keeping tabs on the Department of Government Efficiency and its seemingly unfettered reach into the guts of government. The publication, citing government records and sources, revealed that the […]
https://rbfirehose.com/2025/04/10/gizmodo-doge-is-about-to-get-doged/
I wonder how deep this processors stack is or whether they are tail recursive?
Found quite accidentally and amusing.
https://nowtoronto.com/culture/people-are-obsessed-with-this-quirky-plaque-in-toronto-that-just-sits-there-to-commemorate-its-own-commemoration/