Formalizing Implementation Strategies for First-Class Continuations
DOI:
https://doi.org/10.7146/brics.v6i51.20121Resumé
We present the first formalization of implementation strategiesfor first-class continuations. The formalization hinges on abstract
machines for continuation-passing style (CPS) programs with a special
treatment for the current continuation, accounting for the essence of
first-class continuations. These abstract machines are proven equivalent
to a standard, substitution-based abstract machine. The proof techniques
work uniformly for various representations of continuations. As a byproduct
, we also present a formal proof of the two folklore theorems that one
continuation identifier is enough for second-class continuations and that
second-class continuations are stackable.
A large body of work exists on implementing continuations, but it is
predominantly empirical and implementation-oriented. In contrast, our
formalization abstracts the essence of first-class continuations and provides
a uniform setting for specifying and formalizing their representation.
Downloads
Publiceret
1999-12-21
Citation/Eksport
Danvy, O. (1999). Formalizing Implementation Strategies for First-Class Continuations. BRICS Report Series, 6(51). https://doi.org/10.7146/brics.v6i51.20121
Nummer
Sektion
Artikler
Licens
Authors who publish with this journal agree to the following terms:- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).