Recursion has never been invented: A tale of intrigue
summary
Claim: recursion is discovered not invented, and the Y combinator is rebuilt live in JavaScript. The session shows working code for factorial and Fibonacci, demonstrates stack overflow for deep recursion, and instruments Node and browsers to inspect call frames. It compares proper tail calls vs removed engine support (only Safari/old Node kept it), implements trampolines and thunks to avoid overflow, and gives a runnable Y combinator that makes anonymous recursion without identifiers.
AI-written summary · about
chapters (12)
- 0:00Start
- 1:22What Is Recursion
- 2:39The Factorial Function
- 4:35The Fibonacci Function
- 7:00Design Recursive Algorithms
- 13:31Stack Trace
- 26:13Syntactic Tail Calls
- 28:34Shadow Stacks
- 29:01The History of Recursion
- 43:03What Is the Fixed Point of a Function
- 44:48Easiest Way of Delaying the Execution of a Function
- 53:44The Y Combinator
related talks
36mRecursion, Iteration & JavaScript: A love story
38mRecursion, Iteration, and JavaScript A Love Story
11mDeployed math
11mDeployed Math
11mTail Call Optimization: The Musical!!
47mThere is a bluebird in my talk that wants to get out
48mIt’s birds all the way down: Fun Introduction to Lambda Calculus
33mYou Won't Believe This One Weird Way to Rewrite Closures
