Hacker News with Generative AI: Recursion

Recursive Becoming: Theory of Everything (twitter.com)
Something went wrong, but don’t fret — let’s give it another shot.
Generating Mazes with Inductive Graphs (2017) (jelv.is)
A few years ago—back in high school—I spent a little while writing programs to automatically generate mazes. It was a fun exercise and helped me come to grips with recursion: the first time I implemented it (in Java), I couldn’t get the recursive version to work properly so ended up using a while loop with an explicit stack!
Tail Call Recursion in Java with ASM (2023) (unlinkedlist.org)
One kind of optimization offered by some compilers is tail call optimization. This optimization does not bring much, since the programmer can always tailor his code without recursion, especially in an imperative language. On the other side, recursive code often times more elegant, so why we don’t let the compiler do the nasty stuff when it is possible? In this article I will present a neat way to implement tail call optimization in Java using byte code manipulation with ASM.
The Yin and Yang of Programming (billwadge.com)
Recursion and iteration are the Yin and Yang of programming.
The Recursive Book of Recursion (inventwithpython.com)
Recursion, and recursive algorithms, have a reputation for being intimidating. They're seen as an advanced computer science topic often brought up in coding interviews. Moreover, coders often perceive the use of a recursive algorithm as a sophisticated solution that only true programmers can produce. But there's nothing magical about recursion. Its fearsome reputation is more a product of poor teaching than of the complexity of recursion itself.
A Physical instance of recursion, from 1936 (wikipedia.org)
Recursive Program Synthesis using Paramorphisms [pdf] (theory.stanford.edu)
Flambda2 Ep. 2: Loopifying Tail-Recursive Functions (ocamlpro.com)
Include __FILE__: Include recursion in C is possible and useful (wordpress.com)
Recursion, continuations and trampolines (2017) (thegreenplace.net)