~/talk

Compiling gracefully

Talkat Haskell Love 2020 · 2020-07-31..08-01· [compilers-and-language-design]
slides:none on file

Derives a small Haskell-to-stack-VM compiler by treating stack computation as functions on (accumulator, stack) and solving category homomorphism equations so definitions fall out algebraically. Uses Control.Arrow-style first/second/cross laws, monoidal/cartesian structure, parametricity and GADTs to reify stack programs into a concrete interpreter. Produces explicit stack instructions (push/pop, swap, assoc) and an interpreter from StackProg to StackFun; claims are simpler semantics, static fail-safety, applicability to richly typed Haskell, and a worked implementation described in a draft paper.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:09Revisiting stack machine compilation
  3. 2:11Denotational design methodology
  4. 3:37Essential nature of stack computation
  5. 4:41Stack functions and homomorphisms
  6. 6:27Category theory as the language
  7. 9:21Solving homomorphism equations
  8. 13:54Q&A on stack preservation
  9. 15:40Type operators in Haskell
  10. 17:04Sequential composition definition
  11. 20:11Associative and braided categories
  12. 21:36Difference between arrow types
  13. 23:44Definition versus equation
  14. 26:55Sequential vs stack computation
  15. 30:05Monoidal categories and stacks
  16. 33:35Homomorphism for parallel composition
  17. 36:07Stack operations: push and pop
  18. 39:38Reflecting on the process
  19. 40:41Q&A on evaluation and optimization
  20. 41:47Reifying stack computations
  21. 44:15Compiler implementation
  22. 44:56Summary and closing
~/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.