{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,26]],"date-time":"2026-09-26T15:30:48Z","timestamp":1790436648225,"version":"4.1.0"},"reference-count":55,"publisher":"Association for Computing Machinery (ACM)","issue":"1","license":[{"start":{"date-parts":[[2015,10,16]],"date-time":"2015-10-16T00:00:00Z","timestamp":1444953600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Program. Lang. Syst."],"published-print":{"date-parts":[[2015,10,16]]},"abstract":"<jats:p>We put a preexisting definitional abstract machine for dynamic delimited continuations in defunctionalized form, and we present the consequences of this adjustment. We first prove the correctness of the adjusted abstract machine. Because it is in defunctionalized form, we can refunctionalize it into a higher-order evaluation function. This evaluation function, which is compositional, is in continuation+state-passing style and threads a trail of delimited continuations and a meta-continuation. Since this style accounts for dynamic delimited continuations, we refer to it as \u201cdynamic continuation-passing style\u201d and we present the corresponding dynamic CPS transformation. We show that the notion of computation induced by dynamic CPS takes the form of a continuation monad with a recursive answer type. This continuation monad suggests a new simulation of dynamic delimited continuations in terms of static ones. Finally, we present new applications of dynamic delimited continuations, including a meta-circular evaluator. The significance of the present work is that the computational artifacts surrounding dynamic CPS are not independent designs: they are mechanical consequences of having put the definitional abstract machine in defunctionalized form.<\/jats:p>","DOI":"10.1145\/2794078","type":"journal-article","created":{"date-parts":[[2015,10,20]],"date-time":"2015-10-20T09:28:08Z","timestamp":1445333288000},"page":"1-25","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":8,"title":["A Dynamic Continuation-Passing Style for Dynamic Delimited Continuations"],"prefix":"10.1145","volume":"38","author":[{"given":"Dariusz","family":"Biernacki","sequence":"first","affiliation":[{"name":"University of Wroc\u0142aw, Wroc\u0142aw, Poland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Olivier","family":"Danvy","sequence":"additional","affiliation":[{"name":"Aarhus University, Aarhus N, Denmark"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Kevin","family":"Millikin","sequence":"additional","affiliation":[{"name":"Google, Aarhus N, Denmark"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2015,10,16]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/888251.888254"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-29822-6_6"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.5555\/1784774.1784797"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.2168\/LMCS-1(2:5)2005"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.tcs.2006.12.028"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796805005782"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2006.01.002"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.5555\/174675"},{"key":"e_1_2_1_10_1","volume-title":"Proceedings of the 1988 ACM Conference on Lisp and Functional Programming. ACM.","author":"Ed Robert","year":"1988","unstructured":"Robert (Corky) Cartwright (Ed.). 1988. Proceedings of the 1988 ACM Conference on Lisp and Functional Programming. ACM."},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.5555\/22584.24301"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1016\/0167-6423(94)00003-4"},{"key":"e_1_2_1_14_1","volume-title":"Computer Science Department","author":"Danvy Olivier","unstructured":"Olivier Danvy and Andrzej Filinski. 1989. A Functional Abstraction of Typed Contexts. DIKU Rapport 89\/12. DIKU, Computer Science Department, University of Copenhagen, Copenhagen, Denmark."},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/91556.91622"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129500001535"},{"key":"e_1_2_1_17_1","volume-title":"Technical Report CIS-92-3","author":"Danvy Olivier","unstructured":"Olivier Danvy, J\u00fcrgen Koslowski, and Karoline Malmkj\u00e6r. 1991. Compiling Monads. Technical Report CIS-92-3. Kansas State University, Manhattan, Kansas."},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/141471.141564"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/62678.62725"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.2168\/LMCS-4(4:12)2008"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2007.10.007"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/773184.773202"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(00)00054-2"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-28869-2_12"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796807006259"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1016\/0096-0551(87)90022-1"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/73560.73576"},{"key":"e_1_2_1_28_1","volume-title":"Friedman","author":"Felleisen Matthias","year":"1986","unstructured":"Matthias Felleisen and Daniel P. Friedman. 1986. Control operators, the SECD machine, and the \u03bb-calculus. In Formal Description of Programming Concepts III, Martin Wirsing (Ed.). Elsevier Science Publishers B.V. (North-Holland), Amsterdam, 193--217."},{"key":"e_1_2_1_29_1","volume-title":"Technical Report 216.","author":"Felleisen Matthias","unstructured":"Matthias Felleisen, Daniel P. Friedman, Bruce Duba, and John Merrill. 1987. Beyond Continuations. Technical Report 216. Computer Science Department, Indiana University, Bloomington, Indiana."},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/62678.62684"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.5555\/73560"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/174675.178047"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/224164.224173"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/99583.99608"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/174675.178053"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/99164.99178"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF01019946"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/73560.73574"},{"key":"e_1_2_1_40_1","volume-title":"18th International Workshop (CSL\u201904), 13th Annual Conference of the EACSL, Proceedings (Lecture Notes in Computer Science), Jerzy Marcinkowski and Andrzej Tarlecki (Eds.)","volume":"3210","author":"Kameyama Yukiyoshi","year":"2004","unstructured":"Yukiyoshi Kameyama. 2004. Axioms for delimited continuations in the CPS hierarchy. In Computer Science Logic, 18th International Workshop (CSL\u201904), 13th Annual Conference of the EACSL, Proceedings (Lecture Notes in Computer Science), Jerzy Marcinkowski and Andrzej Tarlecki (Eds.), Vol. 3210. Springer, 442--457."},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/944705.944722"},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.5555\/1788446.1788472"},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1023\/A:1010051815785"},{"key":"e_1_2_1_44_1","volume-title":"How to Remove a Dynamic Prompt: Static and Dynamic Delimited Continuation Operators are Equally Expressible","author":"Kiselyov Oleg","unstructured":"Oleg Kiselyov. 2005. How to Remove a Dynamic Prompt: Static and Dynamic Delimited Continuation Operators are Equally Expressible. Technical Report 611. Computer Science Department, Indiana University, Bloomington, Indiana."},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/2034773.2034786"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.5555\/578665"},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1016\/0890-5401(91)90052-4"},{"key":"e_1_2_1_50_1","doi-asserted-by":"publisher","DOI":"10.5555\/646450.692629"},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.5555\/892524"},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","DOI":"10.1145\/99583.99610"},{"key":"e_1_2_1_53_1","doi-asserted-by":"publisher","DOI":"10.1145\/800194.805852"},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10990-007-9010-4"},{"key":"e_1_2_1_55_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF01806126"},{"key":"e_1_2_1_56_1","doi-asserted-by":"publisher","DOI":"10.1145\/91556.91626"},{"key":"e_1_2_1_57_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129500001560"},{"key":"e_1_2_1_58_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF01019944"},{"key":"e_1_2_1_59_1","volume-title":"Proceedings of the 1990 ACM Conference on Lisp and Functional Programming. ACM Press.","author":"Ed Mitchell Wand","year":"1990","unstructured":"Mitchell Wand (Ed.). 1990. Proceedings of the 1990 ACM Conference on Lisp and Functional Programming. ACM Press."},{"key":"e_1_2_1_60_1","doi-asserted-by":"publisher","DOI":"10.1145\/319838.319871"}],"container-title":["ACM Transactions on Programming Languages and Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/2794078","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/2794078","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T19:04:26Z","timestamp":1750273466000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/2794078"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2015,10,16]]},"references-count":55,"journal-issue":{"issue":"1","published-print":{"date-parts":[[2015,10,16]]}},"alternative-id":["10.1145\/2794078"],"URL":"https:\/\/doi.org\/10.1145\/2794078","relation":{},"ISSN":["0164-0925","1558-4593"],"issn-type":[{"value":"0164-0925","type":"print"},{"value":"1558-4593","type":"electronic"}],"subject":[],"published":{"date-parts":[[2015,10,16]]},"assertion":[{"value":"2015-06-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2015-06-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2015-10-16","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}