Proceedings of the 2nd ACM SIGPLAN Symposium on Haskell 2009
DOI: 10.1145/1596638.1596644
|View full text |Cite
|
Sign up to set email alerts
|

Unembedding domain-specific languages

Abstract: Higher-order abstract syntax provides a convenient way of embedding domain-specific languages, but is awkward to analyse and manipulate directly.We explore the boundaries of higher-order abstract syntax. Our key tool is the unembedding of embedded terms as de Bruijn terms, enabling intensional analysis. As part of our solution we present techniques for separating the definition of an embedded program from its interpretation, giving modular extensions of the embedded language, and different ways to encode the t… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1
1
1

Citation Types

0
49
0

Year Published

2010
2010
2021
2021

Publication Types

Select...
3
3
2

Relationship

0
8

Authors

Journals

citations
Cited by 49 publications
(49 citation statements)
references
References 42 publications
0
49
0
Order By: Relevance
“…For instance, our implementation of normalization by evaluation ( §6) illustrates how to move back and forth between "syntactic" name abstractions and "semantic" name abstractions in the style of higherorder abstract syntax. Atkey and co-authors [2,3] investigate how to move back and forth between higher-order abstract syntax and de Bruijn indices. The translation out of higher-order abstract syntax produces well-scoped de Bruijn indices, but the proof of this fact is meta-theoretic.…”
Section: Related Workmentioning
confidence: 99%
“…For instance, our implementation of normalization by evaluation ( §6) illustrates how to move back and forth between "syntactic" name abstractions and "semantic" name abstractions in the style of higherorder abstract syntax. Atkey and co-authors [2,3] investigate how to move back and forth between higher-order abstract syntax and de Bruijn indices. The translation out of higher-order abstract syntax produces well-scoped de Bruijn indices, but the proof of this fact is meta-theoretic.…”
Section: Related Workmentioning
confidence: 99%
“…In particular, it converts the source representation based on higher-order abstract syntax (HOAS) to a type-safe internal representation based on de Bruijn indices. Although developed independently, this conversion is like the unembedding of Atkey et al [1]. Unembedding and sharing recovery necessarily need to go hand in hand for the following reasons.…”
Section: Sharing Recoverymentioning
confidence: 99%
“…We will introduce the parametric higher-order abstract syntax representation proposed by Atkey et al [2], which builds on Washburn's and Weirich's idea. Their representation is based on generalized Church encodings for term formers of the syntax of a language syntax comparable to Church encodings of inductive datatypes.…”
Section: Church Encodingsmentioning
confidence: 99%
“…Because of this property the introduced variable has a de Bruijn index in ∆. We would like to create this index by using a proof of the sub-context relation between Γ and ∆, but as Atkey et al [2] point out, Agda's type system unfortunately does not provide us with enough information to obtain such a proof. Atkey [1] provides a meta-theoretical proof of this property for an encoding in System F, however, his proof relies on the parametricity of the universal quantification in C λ .…”
Section: Conversion To De Bruijn Termsmentioning
confidence: 99%
See 1 more Smart Citation