~/talk

Recursion, Iteration, and JavaScript A Love Story

Talkat JSHeroes 2018 · on Thursday, 2018-04-12· [javascript]

Shows how ES6 features actually unite recursion and iteration by building an Iterable protocol tree via a generator that uses yield and for...of, turning a clear recursive traversal into an iterable sequence. Demonstrates a tail‑recursive "inception" example that overflows the stack at about 30,000 frames normally, and explains tail call optimization as the engine feature that recycles frames so the 30,000-depth case can run (works only in some engines).

AI-written summary · about

  1. 0:00Introduction
  2. 2:17Programming paradigms
  3. 2:57Starcrossed lovers
  4. 3:13Paradigms
  5. 3:52Iteration
  6. 5:25Recursion
  7. 7:40Efficiency
  8. 9:48Setting
  9. 11:31Act 1 Iteration
  10. 13:08Recursive Recursion
  11. 15:50Iteration Protocols
  12. 20:05Recursive Energy
  13. 21:24Act 2 Recursion
  14. 21:39Recursion in Language
  15. 27:16The Problem
  16. 27:39Tail Call Optimization
  17. 28:28Tail Recursive Function
  18. 31:32Tail Recursive Inception
  19. 34:17The Reality
~/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.