A Theory of Gradual Effect Systems

Schwerter, FB; García R; Tanter É.

Keywords: gradual typing, Type-and-effect systems, abstract interpretation

Abstract

Effect systems have the potential to help software developers, but their practical adoption has been very limited. We conjecture that this limited adoption is due in part to the difficulty of transitioning from a system where effects are implicit and unrestricted to a system with a static effect discipline, which must settle for conservative checking in order to be decidable. To address this hindrance, we develop a theory of gradual effect checking, which makes it possible to incrementally annotate and statically check effects, while still rejecting statically inconsistent programs. We extend the generic type-and-effect framework of Marino and Millstein with a notion of unknown effects, which turns out to be significantly more subtle than unknown types in traditional gradual typing. We appeal to abstract interpretation to develop and validate the concepts of gradual effect checking. We also demonstrate how an effect system formulated in Marino and Millstein's framework can be automatically extended to support gradual checking.

Más información

Título según WOS: A Theory of Gradual Effect Systems
Título según SCOPUS: A theory of gradual effect systems
Título de la Revista: ACM SIGPLAN NOTICES
Volumen: 49
Número: 9
Editorial: ASSOC COMPUTING MACHINERY
Fecha de publicación: 2014
Página de inicio: 283
Página final: 295
Idioma: English
DOI:

10.1145/2628136.2628149

Notas: ISI, SCOPUS