Effects for Efficiency: Asymptotic Speedup with First-Class Control

Daniel Hillerström, Sam Lindley, John Longley
7/1/2020
cs.PL

Official code: dhil/effects-for-efficiency-code (0 stars, Standard ML, CC-BY-4.0, last commit 2020-08-07).

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.

Show full abstract

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. To our knowledge this result is the first of its kind for control operators.

View on arXivView PDF

Code Implementations(1)

CC-BY-4.0

Source code for the experiments in "Effects for Efficiency: Asymptotic Speedup with Delimited Control"

00Standard ML, ShellApr 26, 20206 years agoCC-BY-4.0

Similar Papers

Cite this paper

@article{hillerstrm2020effects,
  title  = {Effects for Efficiency: Asymptotic Speedup with First-Class Control},
  author = {Daniel Hillerström and Sam Lindley and John Longley},
  year   = {2020},
  eprint = {2007.00605},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2007.00605}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2007.00605.svg)](https://codeofpaper.com/paper/2007.00605)

Discussion