Scoped and typed staging by evaluation

Guillaume Allais*

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contribution book

39 Downloads (Pure)

Abstract

Using a dependently typed host language, we give a well scoped-and-typed by construction presentation of a minimal two level simply typed calculus with a static and a dynamic stage. The staging function partially evaluating the parts of a term that are static is obtained by a model construction inspired by normalisation by evaluation.

We then go on to demonstrate how this minimal language can be extended to provide additional metaprogramming capabilities, and to define a higher order functional language evaluating to digital circuit descriptions.
Original languageEnglish
Title of host publicationPEPM 2024
Subtitle of host publicationProceedings of the 2024 ACM SIGPLAN International Workshop on Partial Evaluation and Program Manipulation
EditorsGabriele Keller, Meng Wang
Place of PublicationNew York, NY
Pages83-93
Number of pages11
ISBN (Electronic)9798400704871
DOIs
Publication statusPublished - 11 Jan 2024
Event2024 ACM SIGPLAN International Workshop on Partial Evaluation and Program Manipulation - London, United Kingdom
Duration: 16 Jan 202416 Jan 2024

Conference

Conference2024 ACM SIGPLAN International Workshop on Partial Evaluation and Program Manipulation
Abbreviated titlePEPM 2024
Country/TerritoryUnited Kingdom
CityLondon
Period16/01/2416/01/24

Keywords

  • Agda
  • dependent types
  • hardware descriptions
  • normalisation by evaluation
  • staging
  • two level type theory

Fingerprint

Dive into the research topics of 'Scoped and typed staging by evaluation'. Together they form a unique fingerprint.

Cite this