Work

Rewriting Macros on the Fly

Year: 2025
Type: conference-paper
Abstract: Administrative reductions are extra steps introduced by program transformations, usually as a form of bookkeeping new information needed by the transformation. While this can keep transformations themselves simple and small, they have the unfortunate effect of making the programs they produce more costly in terms of run-time resources and---worse still---cognitive resources used by humans trying to read and debug their code. This paper introduces a general-purpose technique for eliminating administrative expressions in macros using localized rewriting rules. The result is a system of writing and rewriting compositional macros (both in the sense that the macros are defined as compositional functions, and that several different macros can be combined without administrative reductions) that can be extended by the programmer with new functionality.
Author: Paul Downen
Language: English
Open Access status: gold
OpenAlex ID: W4415008795
FWCI:
Cites: 13
Cited by:
Related to: