~/talk

Efficient Nanopass Compilers using Cats and Matryoshka

slides:none on file

Claims a new recursion-scheme library, Matryoshka, lets many tiny, safe AST transformations be written independently but fused into a few efficient passes using Cats coproducts and Inject (plus kind-projector and simulacrum). Uses cata/ana/trans forms (notably transCata), hylo/saigo patterns and attribute/cofree tricks to avoid building intermediates, regaining single-pass performance while keeping nano‑pass modularity. Library is production‑used at SlamData/Sunday and the approach measurably cuts repeated tree traversals.

AI-written summary · about

  1. 0:00Intro
  2. 0:51What is a compiler
  3. 1:38Language
  4. 2:30Monolithic
  5. 5:42Unsafe
  6. 7:48Duplicate
  7. 10:14Fix
  8. 16:59Matryoshka
  9. 18:16Folds unfold transformations
  10. 21:57Algebraic version
  11. 23:37Transcata
  12. 26:30Annotation
  13. 28:41Inference
  14. 30:07Wrapup
~/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.