~/talk

Safe Pattern Generation for Multi-Stage Programming

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

Design for typed generation of patterns whose shape is only known at staging time, implemented as a library on Metro camel. Core techniques are inductive code definitions to build bodies with arbitrarily many bound variables and existential wrappers plus a continuation-based encoding to hide varying pattern-body types. Demonstrates list-map loop unrolling generator that selects unrolling depth at run time (examples show ~16 optimal) and produced generated code with performance matching handwritten implementations; scope-extrusion checks remain work in progress.

AI-written summary · about

  1. 0:00Multi-stage programming intro
  2. 2:53Pattern generation motivation
  3. 4:38Safe pattern generation goals
  4. 8:07Pattern type system design
  5. 12:58Generating pattern cases
  6. 15:49Dynamic pattern generation
  7. 19:20Inductive code definitions
  8. 21:07Case study list map unrolling
  9. 22:30System extensibility & future work
  10. 23:53Resources & conclusion
  11. 24:34Q&A: record patterns
  12. 25:37Q&A: benchmarking
  13. 26:39Q&A: nested patterns
  14. 28:02Q&A: unexpected apps
~/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.