Affiliation:
1. University of Tsukuba, Tsukuba, Japan
2. Kyoto University, Kyoto, Japan
Abstract
The shift and reset operators, proposed by Danvy and Filinski, are powerful control primitives for capturing
delimited continuations
. Delimited continuation is a similar concept as the standard (unlimited) continuation, but it represents part of the rest of the computation, rather than the whole rest of computation. In the literature, the semantics of shift and reset has been given by a CPS-translation only. This paper gives a direct axiomatization of calculus with shift and reset, namely, we introduce a set of equations, and prove that it is sound and complete with respect to the CPS-translation. We also introduce a calculus with control operators which is as expressive as the calculus with shift and reset, has a sound and complete axiomatization, and is conservative over Sabry and Felleisen's theory for first-class continuations.
Publisher
Association for Computing Machinery (ACM)
Subject
Computer Graphics and Computer-Aided Design,Software
Cited by
25 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Back to Direct Style: Typed and Tight;Proceedings of the ACM on Programming Languages;2023-04-06
2. A Functional Abstraction of Typed Invocation Contexts;Logical Methods in Computer Science;2022-09-15
3. Reflecting Stacked Continuations in a Fine-Grained Direct-Style Reduction Theory;23rd International Symposium on Principles and Practice of Declarative Programming;2021-09-06
4. Verifying Selective CPS Transformation for Shift and Reset;Lecture Notes in Computer Science;2020
5. BISIMULATIONS FOR DELIMITED-CONTROL OPERATORS;LOG METH COMPUT SCI;2019