Type Inference for Place-Oblivious Objects
Riyaz Haque, Jens Palsberg · DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · 2015
In a distributed system, access to local data is much faster than access to remote data. As a help to programmers, some languages require every access to be local. A program in those languages can access remote data via first a shift of the place of computation and then a local access. To enforce this discipline, researchers have presented type systems that determine whether every access is local and every place shift is appropriate. However, those type systems fall short of handling a common programming pattern that we call place-oblivious objects. Such objects safely access other objects without knowledge of their place. In response, we present the first type system for place-oblivious objects along with an efficient inference algorithm and a proof that inference is P-complete. Our example language extends the Abadi-Cardelli object calculus with place shift and existential types, and our implementation has inferred types for some microbenchmarks.
Cited by 1 works. doi:10.4230/lipics.ecoop.2015.371 Open-access PDF
Authors
References
- A calculus of mobile processes, I
- Types and Programming Languages
- X10
- A Theory of Objects
- A Syntactic Approach to Type Soundness
- From system F to typed assembly language
- Titanium: a high-performance Java dialect
- Advanced Topics in Types and Programming Languages
- Resource Access Control in Systems of Mobile Agents
- Global/local subtyping and capability inference for a distributed π-calculus