arXiv.itsnick.co

an independent field guide to 23 million papers from arXiv & OpenAlex — not affiliated with arXiv.org

Author

Milo Davis

1 paper · 2017–2017

2017: 1
2017peak 1 in 20172017

Frequent co-authors

Papers

showing 1–1 of 1 RSS

No-brainer CPS conversion (functional pearl)

Milo Davis, William P. Meehan, Olin Shivers

Artificial Intelligence · Proceedings of the ACM on Programming Languages · · cited 2× · DOI ↗ · more like this ·

Algorithms that convert direct-style λ-calculus terms to their equivalent terms in continuation-passing style (CPS) typically introduce so-called “administrative redexes:” useless artifacts of the conversion that must be cleaned up by a subsequent pass over the result to reduce them away. We present a simple, linear-time algorithm for CPS conversion that introduces no administrative redexes. In fact, the output term is a normal form in a reduction system that generalizes the notion of “administrative redexes” to what we call “no-brainer redexes,” that is, redexes whose reduction shrinks the size of the term. We state the theorems which establish the algorithm's desireable properties, along with sketches of the full proofs.