~/talk

Recursion has never been invented: A tale of intrigue

Talkat HolyJS Piter 2019 · 2019-05-24..05-25· [javascript]
slides:none on file

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

  1. 0:00Start
  2. 1:22What Is Recursion
  3. 2:39The Factorial Function
  4. 4:35The Fibonacci Function
  5. 7:00Design Recursive Algorithms
  6. 13:31Stack Trace
  7. 26:13Syntactic Tail Calls
  8. 28:34Shadow Stacks
  9. 29:01The History of Recursion
  10. 43:03What Is the Fixed Point of a Function
  11. 44:48Easiest Way of Delaying the Execution of a Function
  12. 53:44The Y Combinator
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.