Lune

OOPSLA2021Top-tier venue

Promises are made to be broken: migrating R to strict semantics

Aviral Goel, Jan Jecmen, Sebastián Krynski, Olivier Flückiger, Jan Vitek

2021Year
2Citations

Abstract

Function calls in the R language do not evaluate their arguments, these are passed to the callee as suspended computations and evaluated if needed. After 25 years of experience with the language, there are very few cases where programmers leverage delayed evaluation intentionally and laziness comes at a price in performance and complexity. This paper explores how to evolve the semantics of a lazy language towards strictness-by-default and laziness-on-demand. To provide a migration path, it is necessary to provide tooling for developers to migrate libraries without introducing errors. This paper reports on a dynamic analysis that infers strictness signatures for functions to capture both intentional and accidental laziness. Over 99% of the inferred signatures were correct when tested against clients of the libraries.

Ask about this paper

Ask your agent about it.

Lune has read the top-tier papers around this one, so every answer names the papers it rests on.

Questions to start from

Your agent calls

Lunesearch_papers

Ask in Lune

Free to start. No credit card required.

lune papers get c9d399ea-60f0-43a5-8dab-27b528b35c00

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines