How to evaluate blame for gradual types
Open Access
- 19 August 2021
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 5 (ICFP) , 1-29
Abstract
Programming language theoreticians develop blame assignment systems and prove blame theorems for gradually typed programming languages. Practical implementations of gradual typing almost completely ignore the idea of blame assignment. This contrast raises the question whether blame provides any value to the working programmer and poses the challenge of how to evaluate the effectiveness of blame assignment strategies. This paper contributes (1) the first evaluation method for blame assignment strategies and (2) the results from applying it to three different semantics for gradual typing. These results cast doubt on the theoretical effectiveness of blame in gradual typing. In most scenarios, strategies with imprecise blame assignment are as helpful to a rationally acting programmer as strategies with provably correct blame.Keywords
Funding Information
- NSF (SHF 1763922,2030859,CNS-1823244)
This publication has 35 references indexed in Scilit:
- Monotonic References for Efficient Gradual Typing2015
- Experience report2013
- Gradual typing for first-class classes2012
- Typing the Numeric TowerLecture Notes in Computer Science, 2012
- Operational semantics for multi-language programsACM Transactions on Programming Languages and Systems, 2009
- Well-Typed Programs Can’t Be Blamed2009
- The design and implementation of typed scheme2008
- Interlanguage migration2006
- Contracts for higher-order functions2002
- In Search of Homo Economicus: Behavioral Experiments in 15 Small-Scale SocietiesAmerican Economic Review, 2001