Compiler and runtime support for continuation marks
Compiler and runtime support for continuation marks
复制标题
编译器和运行时对连续标记的支持
DOI:
10.1145/3385412.3385981
复制
发表时间:
2020
期刊:
影响因子:
--
通讯作者:
Dybvig, R. Kent
中科院分区:
文献类型:
--
作者:
Flatt, Matthew;Dybvig, R. Kent
Continuation marks enable dynamic binding and context inspection in a language with proper handling of tail calls and first-class, multi-prompt, delimited continuations. The simplest and most direct use of continuation marks is to implement dynamically scoped variables, such as the current output stream or the current exception handler. Other uses include stack inspection for debugging or security checks, serialization of an in-progress computation, and run-time elision of redundant checks. By exposing continuation marks to users of a programming language, more kinds of language extensions can be implemented as libraries without further changes to the compiler. At the same time, the compiler and runtime system must provide an efficient implementation of continuation marks to ensure that library-implemented language extensions are as effective as changing the compiler. Our implementation of continuation marks for Chez Scheme (in support of Racket) makes dynamic binding and lookup constant-time and fast, preserves the performance of Chez Scheme's first-class continuations, and imposes negligible overhead on program fragments that do not use first-class continuations or marks.
登录
查看更多内容
DOI:
10.1145/2983990.2984021
发表时间:
2016
期刊:
Proceedings of the 2016 ACM SIGPLAN International Conference on Object-Oriented Programming, Systems, Languages, and Applications
影响因子:
--
作者:
Scott Moore;Christos Dimoulas;R. Findler;M. Flatt;Stephen Chong
通讯作者:
Stephen Chong
影响因子:
1.3
作者:
Leif Andersen;Vincent St;J. Vitek;M. Felleisen
通讯作者:
M. Felleisen
影响因子:
--
作者:
Feltey, Daniel;Greenman, Ben;Scholliers, Christophe;Findler, Robert Bruce;St-Amour, Vincent
通讯作者:
St-Amour, Vincent
DOI:
--
发表时间:
2019
期刊:
影响因子:
--
作者:
Jonathan Brachthauser;Daan Leijen
通讯作者:
Daan Leijen
DOI:
--
发表时间:
1996
期刊:
ACM-SIGPLAN Symposium on Programming Language Design and Implementation
影响因子:
--
作者:
Carl Bruggeman;Oscar Waddell;R. Dybvig
通讯作者:
R. Dybvig