Hygienic Macros via Staged Environment Machines (Position Paper)
The relationship between staged computation and procedural macros is often mentioned in the literature. However, this relationship is not as straightforward as it may appear. Existing approaches tend to compromise the role of macros as syntactic extensions, focusing primarily on staged type systems to enforce the static safety of macros.
In this position paper, we propose a different approach to connecting procedural macros and staged computation: to understand the semantic aspect of procedural macros through the lens of staged computation. We observe that the notion of a syntactic environment in hygienic macros has a natural counterpart in a staged extension of environment machines. Building on this observation, we sketch our draft design of an environment machine for a Lisp-like language with an explicit-renaming macro facility à la Clinger.
I am a Ph.D. student at Kyoto University, supervised by Atsushi Igarashi. I study multi-stage programming and modal lambda calculi.
Thu 16 OctDisplayed time zone: Perth change
13:45 - 15:30 | Macros and Denotational SemanticsScheme at Peony NW Chair(s): Paulette Koronkevich University of British Columbia | ||
13:45 25mTalk | Rewriting Macros on the Fly: A Modular Approach to Administrative Reduction During Expansion Scheme Paul Downen University of Massachusetts at Lowell | ||
14:10 25mTalk | Fast and Extensible Hybrid Embeddings with Micros Scheme DOI Pre-print | ||
14:35 20mTalk | Hygienic Macros via Staged Environment Machines (Position Paper) Scheme Yuito Murase Kyoto University, Japan Pre-print | ||
14:55 25mTalk | Checking a Denotational Semantics of Scheme in Agda Scheme Peter D. Mosses Delft University of Technology; Swansea University DOI File Attached | ||
