arXiv · 2007.00605
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 $\lambda_b$ and its extension with effect handlers $\lambda_h$. We show that $\lambda_h$ admits an asymptotically more efficient implementation of generic count than any $\lambda_b$ implementation. We also show that this efficiency gap remains when $\lambda_b$ is extended with mutable state. To our knowledge this result is the first of its kind for control operators.
Explore related subjects
Keep this discovery
Daniel Hillerström, Sam Lindley, John Longley. 2020-07-01. Effects for Efficiency: Asymptotic Speedup with First-Class Control. https://doi.org/10.1145/3408982
Cite the original work for its findings. Save a collection to share your selection of sources.