~/talk

Delimited Continuations for Everyone

links:none on file
slides:none on file

Delimited continuations implemented with shift/reset are used to do concrete tasks: early-returning a list product by discarding continuation to avoid extra multiplications, extracting a continuation to produce a curried append, reordering stack-like consing to implement move-to-front and A-normalization via let-insertion (used in “cogen in six lines”), and wrapping continuations to implement a typed printf and encode the state monad (Filinski’s representation). An OchaCaml implementation and example code exist and the six worked examples are shown end-to-end.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:18Early papers on control operators
  3. 2:02What are continuations
  4. 6:04Delimited continuations explained
  5. 8:06Shift operator basics
  6. 9:18Discarding continuations
  7. 12:10Multiplying list elements with shift
  8. 14:49Extracting continuations
  9. 16:26Identity function on lists
  10. 18:54Reordering continuations
  11. 26:49A-normalization with shift/reset
  12. 33:41Wrapping continuations
  13. 36:03Typed printf example
  14. 39:13State monad with shift/reset
  15. 43:01Future of shift/reset in theorem proving
  16. 49:09Type system and logic
  17. 50:20Why shift/reset matters
~/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.