Affiliation:
1. University of Chile, Santiago, Chile
2. University of British Columbia, Vancouver, BC, Canada
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.
Funder
Comisión Nacional de Investigación Científica y Tecnológica
Fondo Nacional de Desarrollo Científico y Tecnológico
Natural Sciences and Engineering Research Council of Canada
Publisher
Association for Computing Machinery (ACM)
Subject
Computer Graphics and Computer-Aided Design,Software
Cited by
5 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Effectful Software Contracts;Proceedings of the ACM on Programming Languages;2024-01-05
2. Gradual Typing for Effect Handlers;Proceedings of the ACM on Programming Languages;2023-10-16
3. Gradually structured data;Proceedings of the ACM on Programming Languages;2021-10-20
4. Polymorphic Iterable Sequential Effect Systems;ACM Transactions on Programming Languages and Systems;2021-03-31
5. GATE: Gradual Effect Types;Lecture Notes in Computer Science;2021