~/talk

Relative Monads in CBPV for Stack-based Effects

Talkat HOPE 2022 · on Sunday, 2022-09-11· [compilers-and-language-design]
links:none on file
slides:none on file

Claim: modeling stack-based implementations of effects uses relative monad structure inside Call-by-push-value (CBPV), not ordinary endo-monads. Uses CBPV’s split of value vs computation types, Church encodings, and free relative monads to derive two concrete implementations: a double-barreled continuation and a stack-walking exceptions encoding, and a state cell implemented as a chosen stack slot. Extension is linear (stack-linear), and composition of continuations is presented as explicit stacks rather than first-class monadic values.

AI-written summary · about

  1. 0:00Monads and their limits
  2. 3:02Compiling real-world effects
  3. 6:28Call-by-push-value
  4. 9:39Values versus computations
  5. 14:43Stack-based interpretation
  6. 17:20Relative monads
  7. 20:55Applications and conclusion
~/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.