1994 · 142 citations · 21 references
ComputingComputer ScienceCompilersProgramming LanguagesSemanticsCompositional SemanticsFormal SemanticsType CheckingType SystemsContinuation-passing StyleEquational LogicEvaluationInverse TransformationsMonadsOperational SemanticsReductionsStructural Operational Semantics
We unify previous work on the continuation-passing style (CPS) transformations in a generic framework based on Moggi's computational met a-language. This framework is used to obtain GPS transformations for a variety of evaluation strategies and to characterize the corresponding administrative reductions and inverse transformations. We establish generic formal connections between operational semantics and equational theories. Formal properties of transformations for specific evaluation orders follow as corollaries. Essentially, we factor transformations through Moggi's computational meta-language. Mapping A-terms into the met a-language captures computational properties (e.g., partiality, strictness) and evaluation order explicitly in both the term and the type structure of the meta-language. The CPS transformation is then obtained by applying a generic transformation from terms and types in the meta-language to CPS terms and types, based on a typed term representation of the continuation monad. We prove an adequacy property for the generic transformation and establish an equational correspondence between the meta-language and CPS terms. These generic results generalize Plotkin's seminal theorems, subsume more recent results, and enable new uses of CPS transformations and their inverses. We discuss how to apply these results to compilation.
21
Notions of computation and monads
Eugenio Moggi · Information and Computation · 1991 · 1.7K citations
Call-by-name, call-by-value and the λ-calculus
Gordon Plotkin · Theoretical Computer Science · 1975 · 1.2K citations
Revised report on the algorithmic language ALGOL 60
John Backus, Friedrich L. Bauer, J. Green et al. · Communications of the ACM · 1963 · 909 citations · Full text
Computational lambda-calculus and monads
Eugenio Moggi · 2003 · 858 citations
Computing, Computer Science, Algebra +13
The essence of functional programming
Philip Wadler · 1992 · 676 citations · Full text