首页 | 本学科首页   官方微博 | 高级检索  
     


On the static and dynamic extents of delimited continuations
Authors:Dariusz Biernacki  Olivier Danvy  Chung-chieh Shan  
Affiliation:

aBRICS, Department of Computer Science, University of Aarhus, IT-parken, Aabogade 34, DK-8200 Aarhus N, Denmark

bDepartment of Computer Science, Rutgers University, 110 Frelinghuysen Road, Piscataway, NJ 08854, USA

Abstract:We show that breadth-first traversal exploits the difference between the static delimited-control operator shift (alias View the MathML source) and the dynamic delimited-control operator control (alias View the MathML source). For the last 15 years, this difference has been repeatedly mentioned in the literature but it has only been illustrated with one-line toy examples. Breadth-first traversal fills this vacuum.

We also point out where static delimited continuations naturally give rise to the notion of control stack whereas dynamic delimited continuations can be made to account for a notion of ‘control queue’.

Keywords:Delimited continuations  Direct style  Continuation-passing style (CPS)  CPS transformation  Defunctionalization  Control operators  Shift and reset  Control and prompt
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号