作者
David Walker, Greg Morrisett
发表日期
2000/9/21
图书
International Workshop on Types in Compilation
页码范围
177-206
出版商
Springer Berlin Heidelberg
简介
Linear type systems permit programmers to deallocate or explicitly recycle memory, but are severely restricted by the fact that they admit no aliasing. This paper describes a pseudo-linear type system that allows a degree of aliasing and memory reuse as well as the ability to define complex recursive data structures. Our type system can encode conventional linear data structures such as linear lists and trees as well as more sophisticated data structures including cyclic and doubly-linked lists and trees. In the latter cases, our type system is expressive enough to represent pointer aliasing and yet safely permit destructive operations such as object deallocation.We demonstrate the flexibility of our type system by encoding two common space-conscious algorithms: destination-passing style and Deutsch-Schorr-Waite or “link-reversal” traversal algorithms.
引用总数
2000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220234142429312323151471151271015421453
学术搜索中的文章
D Walker, G Morrisett - International Workshop on Types in Compilation, 2000