~/talk

Replacing functions with data

slides:none on file

Turns a recursive Haskell tree traversal into data by CPS transforming lambdas into three constructors of a sum type called cont continuation and writing an explicit apply function that pattern matches and executes them. The process replaces higher-order functions with a serializable sum-of-environments, exposes the captured environments (three distinct environments), implements an explicit stack, avoids stack overflow for deep trees, and works for nonlocal or distributed execution because the continuations are plain data.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:00Functional programming essence
  3. 7:16Tree traversal problem
  4. 9:30Tail recursion limitations
  5. 11:20Continuation passing style
  6. 14:37From lambdas to named functions
  7. 17:52Category theory basics
  8. 23:42Adjunction and function objects
  9. 27:56Comma category construction
  10. 31:09De-functionalization method
  11. 33:45Implementing function objects
  12. 35:31Continuations as a stack
  13. 38:03Applications and benefits
  14. 39:49Further reading and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.