~/talk

Restaging Domain-Specific Languages: A Flexible Design Pattern for Rapid Development of(…)

Talkat GPCE 2024 · 2024-10-21..10-22· [compilers-and-language-design]
links:none on file
slides:none on file

Proposes a concrete design pattern that replaces repetitive traversal code with a type class with children and rebuild interface so each AST node exposes its child list and a reconstruction function, then uses Scala 3 type class derivation and macros to generate those instances automatically. Reports that macro generation yields negligible compilation overhead compared to handwritten instances (reflection is slow), composes with visitor and strategic-rewrite styles, and is already used successfully in several DSL compilers (AD, data‑science hybrid, probabilistic) since 2019.

AI-written summary · about

  1. 0:00Restaging DSLs introduction
  2. 1:24Compiler optimization challenges
  3. 3:11Defining domain-specific languages in Scala
  4. 5:44Transformations with boilerplate
  5. 7:11Rewrite strategies
  6. 9:39Restage design pattern
  7. 11:28Bottom-up and top-down transformers
  8. 13:58Boilerplate with type class derivation
  9. 16:49Productivity gains in compilers
  10. 17:54Performance impact evaluation
  11. 19:17Compatibility with visitor frameworks
  12. 20:03Restage pattern applications
  13. 21:05Summary and future directions
~/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.