Calculating threesomes, with blame
Author:
Open Access
- 25 September 2013
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 48 (9) , 417-428
Abstract
Coercions and threesomes both enable a language to combine static and dynamic types while avoiding cast-based space leaks. Coercion calculi elegantly specify space-efficient cast behavior, even when augmented with blame tracking, but implementing their semantics directly is difficult. Threesomes, on the other hand, have a straightforward recursive implementation, but endowing them with blame tracking is challenging. In this paper, we show that you can use that elegant spec to produce that straightforward implementation: we use the coercion calculus to derive threesomes with blame. In particular, we construct novel threesome calculi for blame tracking strategies that detect errors earlier, catch more errors, and reflect an intuitive conception of safe and unsafe casts based on traditional subtyping.Keywords
This publication has 9 references indexed in Scilit:
- Blame for all2011
- Threesomes, with and without blame2010
- Operational semantics for multi-language programsACM Transactions on Programming Languages and Systems, 2009
- Well-Typed Programs Can’t Be Blamed2009
- Exploring the Design Space of Higher-Order Casts2009
- Gradual Typing for Objects2007
- Interlanguage migration2006
- Contracts for higher-order functions2002
- Dynamic typing: syntax and proof theoryScience of Computer Programming, 1994