ACM Home Page
Please provide us with feedback. Feedback
Adoption and focus: practical linear types for imperative programming
Full text PdfPdf (242 KB)
Source Conference on Programming Language Design and Implementation archive
Proceedings of the ACM SIGPLAN 2002 Conference on Programming language design and implementation table of contents
Berlin, Germany
SESSION: Type Systems table of contents
Pages: 13 - 24  
Year of Publication: 2002
ISBN:1-58113-463-0
Also published in ...
Authors
Manuel Fahndrich  Microsoft Research, Redmond, WA
Robert DeLine  Microsoft Research, Redmond, WA
Sponsor
SIGPLAN: ACM Special Interest Group on Programming Languages
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 10,   Downloads (12 Months): 81,   Citation Count: 51
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/512529.512532
What is a DOI?

ABSTRACT

A type system with linearity is useful for checking software protocols andresource management at compile time. Linearity provides powerful reasoning about state changes, but at the price of restrictions on aliasing. The hard division between linear and nonlinear types forces the programmer to make a trade-off between checking a protocol on an object and aliasing the object. Most onerous is the restriction that any type with a linear component must itself be linear. Because of this, checking a protocol on an object imposes aliasing restrictions on any data structure that directly or indirectly points to the object. We propose a new type system that reduces these restrictions with the adoption and focus constructs. Adoption safely allows a programmer to alias objects on which she is checking protocols, and focus allows the reverse. A programmer can alias data structures that point to linear objects and use focus for safe access to those objects. We discuss how we implemented these ideas in the Vault programming language.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
2
3
4
5
6
7
 
8
K. R. M. Leino and G. Nelson. Data abstraction and information hiding.Technical Report 160, Compaq SRC, nov 2000
 
9
 
10
Conference Record of the 26th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages. ACM Press, Jan. 1999
11
 
12
 
13
 
14
 
15
M. Tofte, L. Birkedal, M. Elsman, N. Hallenberg, T. H. Olesen, P. Sestoft, and P. Bertelsen. Programming with regions in the ml kit (for version 3). Technical Report 98/25, Department of Computer Science, University of Copenhagen, 1998
16
 
17
P. Wadler. Linear types can change the world! In M. Broy and C. Jones, editors, Programming Concepts and Methods. Apr. 1990. IFIP TC 2 Working Conference
 
18
 
19
D. Walker and K. Watkins. On linear types and regions. Proceedings of the International Conference on Functional Programming (ICFP '01), Sept. 2001

CITED BY  51

Collaborative Colleagues:
Manuel Fahndrich: colleagues
Robert DeLine: colleagues