~/talk

An introduction to Continuation Passing Style (CPS)

links:none on file
slides:none on file

Shows how turning every function into one that takes a continuation argument — a CPS transform applied to Scheme examples — makes control flow explicit, lets the compiler lower code to tail calls and removes stack growth for deep recursion, and enables new control operators. Demonstrates converting a recursive routine into a tail-recursive conversion that no longer grows the stack and sketches implementing /simulating/ call/cc simulation and small compiler-backend steps that actually run.

AI-written summary · about

  1. 0:00Start
  2. 2:52Lexical Scoping
  3. 13:19Delimited Continuations
  4. 31:42What Is a Break Value
  5. 43:12Accumulator Passing Style
  6. 48:06Examples
~/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.