Key points are not available for this paper at this time.
Abstract We have built the first family of tagless interpretations for a higher-order typed object language in a typed metalanguage (Haskell or ML) that require no dependent types, generalized algebraic data types, or postprocessing to eliminate tags. The statically type-preserving interpretations include an evaluator, a compiler (or staged evaluator), a partial evaluator, and call-by-name and call-by-value continuation-passing style (CPS) transformers. Our principal technique is to encode de Bruijn or higher-order abstract syntax using combinator functions rather than data constructors. In other words, we represent object terms not in an initial algebra but using the coalgebraic structure of the λ-calculus. Our representation also simulates inductive maps from types to types, which are required for typed partial evaluation and CPS transformations. Our encoding of an object term abstracts uniformly over the family of ways to interpret it, yet statically assures that the interpreters never get stuck. This family of interpreters thus demonstrates again that it is useful to abstract over higher-kinded types.
Building similarity graph...
Analyzing shared references across papers
Loading...
Jacques Carette
McMaster University
Oleg Kiselyov
Tohoku University
Chung-chieh Shan
Indiana University
Journal of Functional Programming
Rutgers, The State University of New Jersey
McMaster University
Rutgers Sexual and Reproductive Health and Rights
Building similarity graph...
Analyzing shared references across papers
Loading...
Carette et al. (Wed,) studied this question.
synapsesocial.com/papers/6a006473581c6e761e77ba68 — DOI: https://doi.org/10.1017/s0956796809007205