~/talk

Tail Modulo Async/Await

Talkat FProPer 2024 · on Friday, 2024-09-06· [compilers-and-language-design]
links:none on file
links:none on file
links:none on file
slides:none on file

Defines Destiny passing style as a calling convention that turns async tail and tail-modulo-cons calls into write-once promises so recursive calls allocate holes, refine destinies, fork async subcalls and fill futures when no holes remain. Claims fewer stacked frames and shorter future chains, provides a formal semantics with a work-in-progress simulation proof, and ships a proof‑of‑concept implementation in unsafe OCaml prototype while noting integration limits with OCaml/Flambda IR and missing source-level fork support.

AI-written summary · about

  1. 0:00Introduction
  2. 1:11Recursion and tail calls
  3. 3:00Async recursion challenges
  4. 5:38Tail async calls
  5. 7:28Destiny passing style
  6. 11:01Tail Modulo Constructor
  7. 13:30Tree traversal with forking
  8. 16:09Destiny API usage
  9. 18:56Code generation for Destinies
  10. 20:22Formal semantics and proofs
  11. 21:55OCaml implementation
  12. 22:17Q&A
~/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.