Strong Call-by-Value is Reasonable, Implosively

Beniamino Accattoli, Andrea Condoluci, Claudio Sacerdoti Coen
2/13/2021
cs.LO

Official code: sacerdot/SCAM (0 stars, OCaml, CC0-1.0, last commit 2021-04-29).

Abstract

Whether the number of beta-steps in the lambda-calculus can be taken as a reasonable time cost model (that is, polynomially related to the one of Turing machines) is a delicate problem, which depends on the notion of evaluation strategy. Since the nineties, it is known that weak (that is, out of abstractions) call-by-value evaluation is a reasonable strategy while Lévy's optimal parallel strategy, which is strong (that is, it reduces everywhere), is not.

Show full abstract

The strong case turned out to be subtler than the weak one. In 2014 Accattoli and Dal Lago have shown that strong call-by-name is reasonable, by introducing a new form of useful sharing and, later, an abstract machine with an overhead quadratic in the number of beta-steps. Here we show that also strong call-by-value evaluation is reasonable for time, via a new abstract machine realizing useful sharing and having a linear overhead. Moreover, our machine uses a new mix of sharing techniques, adding on top of useful sharing a form of implosive sharing, which on some terms brings an exponential speed-up. We give examples of families that the machine executes in time logarithmic in the number of beta-steps.

View on arXivView PDF

Code Implementations(1)

sacerdot/SCAMOfficial100%
CC0-1.0

The implementation of the Strong Crumbling Abstract Machine (SCAM) for the Strong Call-by-value lambda-calculus (see paper at LICS 2021)

00OCaml, HTMLApr 29, 20215 years agoCC0-1.0

Similar Papers

Cite this paper

@article{accattoli2021strong,
  title  = {Strong Call-by-Value is Reasonable, Implosively},
  author = {Beniamino Accattoli and Andrea Condoluci and Claudio Sacerdoti Coen},
  year   = {2021},
  eprint = {2102.06928},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.06928}
}

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/2102.06928.svg)](https://codeofpaper.com/paper/2102.06928)

Discussion