2018
DOI: 10.1145/3236771
|View full text |Cite
|
Sign up to set email alerts
|

Capturing the future by replaying the past (functional pearl)

Abstract: Delimited continuations are the mother of all monads! So goes the slogan inspired by Filinski's 1994 paper, which showed that delimited continuations can implement any monadic e ect, letting the programmer use an e ect as easily as if it was built into the language. It's a shame that not many languages have delimited continuations.Luckily, exceptions and state are also the mother of all monads! In this Pearl, we show how to implement delimited continuations in terms of exceptions and state, a construction we c… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1

Citation Types

0
1
0

Year Published

2023
2023
2024
2024

Publication Types

Select...
2

Relationship

0
2

Authors

Journals

citations
Cited by 2 publications
(1 citation statement)
references
References 15 publications
0
1
0
Order By: Relevance
“…To understand how to capture and store the program counter and stack, we offer a brief explanation of continuations ( Koppel, Scherer & Solar-Lezama, 2018 ; Cong et al, 2019 ; Cong & Asai, 2016 ), which are pivotal to fulfilling this task. Functional programming languages, such as Scheme ( Kesley & Rees, 1995 ), provide an abstraction named continuation .…”
Section: Deloreanjsmentioning
confidence: 99%
“…To understand how to capture and store the program counter and stack, we offer a brief explanation of continuations ( Koppel, Scherer & Solar-Lezama, 2018 ; Cong et al, 2019 ; Cong & Asai, 2016 ), which are pivotal to fulfilling this task. Functional programming languages, such as Scheme ( Kesley & Rees, 1995 ), provide an abstraction named continuation .…”
Section: Deloreanjsmentioning
confidence: 99%