2020
DOI: 10.1145/3408982
|View full text |Cite
|
Sign up to set email alerts
|

Effects for efficiency: asymptotic speedup with first-class control

Abstract: We study the fundamental efficiency of delimited control. Specifically, we show that effect handlers enable an asymptotic improvement in runtime complexity for a certain class of functions. We consider the generic count problem using a pure PCF-like base language λ b and its extension with effect handlers λ h. We show that λ h admits an asymptotically more efficient implementation of generic count than any λ b implementation. We also show that this efficiency gap remains when λ b is extended with mutable state… Show more

Help me understand this report
View preprint versions

Search citation statements

Order By: Relevance

Paper Sections

Select...
1

Citation Types

0
1
0

Year Published

2024
2024
2024
2024

Publication Types

Select...
3

Relationship

1
2

Authors

Journals

citations
Cited by 3 publications
(1 citation statement)
references
References 34 publications
0
1
0
Order By: Relevance
“…Algebraic effects and their handlers have emerged as a convenient way to control impure behaviour. They are built upon a strong mathematical foundation (Plotkin and Pretnar, 2009;Plotkin and Power, 2003), their semantics can be precisely defined (Kammar et al, 2013), and in some cases they provide an improvement in runtime complexity compared to pure languages (Hillerström et al, 2020). While providing a useful formal framework for reasoning about side effects, algebraic effects and handlers have also proved to be an increasingly convenient modular abstraction that has been adopted across many disciplines.…”
Section: Effects and Effect Handlingmentioning
confidence: 99%
“…Algebraic effects and their handlers have emerged as a convenient way to control impure behaviour. They are built upon a strong mathematical foundation (Plotkin and Pretnar, 2009;Plotkin and Power, 2003), their semantics can be precisely defined (Kammar et al, 2013), and in some cases they provide an improvement in runtime complexity compared to pure languages (Hillerström et al, 2020). While providing a useful formal framework for reasoning about side effects, algebraic effects and handlers have also proved to be an increasingly convenient modular abstraction that has been adopted across many disciplines.…”
Section: Effects and Effect Handlingmentioning
confidence: 99%