2018 · 24 citations · 18 references
ComputingComputer ScienceCompilersProgramming LanguagesSoftware EngineeringAbstract Syntax TreesCode GenerationCompiler ConstructionSoftware ConstructionType CheckingType SystemsGenerative ProgrammingMacro SystemsMetaprogrammingRuntime Code GenerationUnification
Program generation is indispensable. We propose a novel unification of two existing metaprogramming techniques: multi-stage programming and hygienic generative macros. The former supports runtime code generation and execution in a type-safe manner while the latter offers compile-time code generation.
18
Template meta-programming for Haskell
Tim Sheard, Simon Peyton Jones · 2002 · 548 citations
Multi-stage programming with explicit annotations
Walid Taha, Tim Sheard · 1997 · 343 citations
A modal analysis of staged computation
Rowan Davies, Frank Pfenning · Journal of the ACM · 2001 · 300 citations
Tiark Rompf, Martin Odersky · 2010 · 279 citations
Composable and compilable macros:
Matthew Flatt · 2002 · 126 citations