~/talk

Monadification of Attribute Grammars

Talkat SLE 2020 · 2020-11-16..11-17· [compilers-and-language-design]
links:none on file
slides:none on file

A rewrite algorithm called the monadification procedure transforms implicit attribute equations by inserting bind/return insertion and filling omitted match or if branches with monadic failures so implicit monads (every implicit attribute must be monadic) become explicit. The procedure preserves typing and (mostly) evaluation: rewritten code evaluates to the same value wrapped in the monad; lists/non-determinism break full evaluation correctness. Prototype implemented in Silver, applied to simply‑typed lambda calculus and Caml Light type inference; three modes control where rewriting applies.

AI-written summary · about

  1. 0:00Intro
  2. 0:50Typing an Abstraction in Attribute Grammars
  3. 2:00Typing an Application in Attribute Grammars
  4. 2:58Solution
  5. 3:37What is a Monad?
  6. 4:09Monad Operations
  7. 5:11Rewriting Examples
  8. 7:17Another Monad: Either
  9. 8:39Implicit Mode
  10. 9:23Other Modes
  11. 10:10Monadification
  12. 11:03Totality of Rewriting and Type Preservation
  13. 11:36Evaluation Correctness
  14. 12:42Prototype Implementation
  15. 13:58More Details in the Paper
~/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.