~/talk

Type-safe generation of modules in applicative and generative styles

Talkat GPCE 2021 · 2021-10-17..10-18· [compilers-and-language-design]
name:Yuhi Sato
links:none on file
slides:none on file

Defines two staged ML-like languages, lambda-G and lambda-A, with a type-preserving translation and implementation into plain MetaOCaml using a genlet primitive to avoid duplication. Claims soundness of module-code generation for both generative functors and applicative functors, handles nested modules, and proves typing is preserved. Microbenchmarks show eliminated indirection and no code-explosion; generated modules beat non-generated ones on up to 10 nested functor applications (example drawn from MirageOS use).

AI-written summary · about

  1. 0:00Introduction
  2. 1:39MetaML-style limits
  3. 3:14ML modules performance
  4. 5:56Motivation for code gen
  5. 6:18Staging expression constructs
  6. 7:04Staging modules new
  7. 8:18$-operator type safety
  8. 9:03Staging IntEq MakeSet
  9. 9:46Generative vs applicative
  10. 10:54Lambda-G and lambda-A types
  11. 11:42Translations to MetaOCaml
  12. 12:53Performance experiments
  13. 13:59Summary
~/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.