Illustration of a stack collapsing as a recursive function reaches its base case.

When Recursion Stops Using the Stack: Tail Calls, Trampolines, and Iterative Transformations

A deep dive into techniques that let recursive algorithms run without exhausting the call stack, covering tail‑call optimization, trampolines, and practical rewrites.

May 19, 2026 · 7 min · 1344 words · martinuke0
Feedback