Sciweavers

PADL
2005
Springer

Safe Programming with Pointers Through Stateful Views

14 years 5 months ago
Safe Programming with Pointers Through Stateful Views
The need for direct memory manipulation through pointers is essential in many applications. However, it is also commonly understood that the use (or probably misuse) of pointers is often a rich source of program errors. Therefore, approaches that can effectively enforce safe use of pointers in programming are highly sought after. ATS is a programming language with a type system rooted in a recently developed framework Applied Type System, and a novel and desirable feature in ATS lies in its support for safe programming with pointers through a novel notion of stateful views. In particular, even pointer arithmetic is allowed in ATS and guaranteed to be safe by the type system of ATS. In this paper, we give an overview of this feature in ATS, presenting some interesting examples based on a prototype implementation of ATS to demonstrate the practicality of safe programming with pointer through stateful views.
Dengping Zhu, Hongwei Xi
Added 28 Jun 2010
Updated 28 Jun 2010
Type Conference
Year 2005
Where PADL
Authors Dengping Zhu, Hongwei Xi
Comments (0)