skip to main content
10.1145/1562154.1562163acmotherconferencesArticle/Chapter ViewAbstractPublication PagesecoopConference Proceedingsconference-collections
research-article

Comparing universes and existential ownership types

Published:06 July 2009Publication History

ABSTRACT

Ownership types and Universe types are two type systems used to structure the heap and enforce encapsulation disciplines. The parametricity of ownership types allows a finergrained description of heap topologies, whereas the flexibility of any references in Universe types allows sharing between data structures. No direct encoding of one type system in the other has been possible.

Parametric ownership has recently been extended with existential quantification of contexts. We formalise such a language and give a formal translation between programs written in this language and using Universe types. We show that this translation is sound and complete.

References

  1. Jonathan Aldrich. Using types to enforce architectural structure. PhD thesis, University of Washington, 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Chris Andreae, Yvonne Coady, Celina Gibbs, James Noble, Jan Vitek, and Tian Zhao. Scoped types and aspects for real-time systems. In European Conference on Object Oriented Programming (ECOOP), 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Anindya Banerjee and David Naumann. Ownership confinement ensures representation independence for object-oriented programs. JACM: Journal of the ACM, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Chandrasekhar Boyapati, Robert Lee, and Martin C. Rinard. Ownership Types for Safe Programming: Preventing Data Races and Deadlocks. In Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA), 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Chandrasekhar Boyapati, Alexandru Salcianu, William S. Beebee, and Martin C. Rinard. Ownership types for safe region-based memory management in real-time java. In Programming Language Design and Implementation (PLDI), 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Nicholas Cameron. Existential Types for Variance --- Java Wildcards and Ownership Types. PhD thesis, Imperial College London, 2009.Google ScholarGoogle Scholar
  7. Nicholas Cameron and Werner Dietl. Comparing Universes and Existential Ownership Types. Technical Report 06, School of Engineering and Computer Science, VUW, 2009. https://ecs.victoria.ac.nz/twiki/pub/Main/TechnicalReportSeries/ECSTR09-06.pdf.Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Nicholas Cameron and Sophia Drossopoulou. Existential Quantification for Variant Ownership. In European Symposium on Programming Languages and Systems (ESOP), 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Nicholas Cameron, Sophia Drossopoulou, and Erik Ernst. A Model for Java with Wildcards. In European Conference on Object Oriented Programming (ECOOP), 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Nicholas Cameron, Sophia Drossopoulou, James Noble, and Matthew Smith. Multiple Ownership. In Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA), 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. David G. Clarke. Object Ownership and Containment. PhD thesis, School of Computer Science and Engineering, The University of New South Wales, Sydney, Australia, 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. David G. Clarke and Sophia Drossopoulou. Ownership, Encapsulation and the Disjointness of Type and Effect. In Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA), 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. David G. Clarke, John M. Potter, and James Noble. Ownership Types for Flexible Alias Protection. In Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA), 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. David Cunningham, Werner Dietl, Sophia Drossopoulou, Adrian Francalanza, Peter Müller, and Alexander J. Summers. Universe Types for Topology and Encapsulation. In Formal Methods for Components and Objects (FMCO), 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. David Cunningham, Sophia Drossopoulou, and Susan Eisenbach. Universe Types for Race Safety. In Verification and Analysis of Multi-threaded Java-like Programs (VAMP), 2007.Google ScholarGoogle Scholar
  16. Werner Dietl, Sophia Drossopoulou, and Peter Müller. Generic Universe Types. In European Conference on Object Oriented Programming (ECOOP), 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. Werner Dietl and Peter Müller. Universes: Lightweight Ownership for JML. Journal of Object Technology, 4(8):5--32, 2005.Google ScholarGoogle ScholarCross RefCross Ref
  18. Werner Dietl and Peter Müller. Ownership type systems and dependent classes. In Foundations of Object-Oriented Languages (FOOL), 2008.Google ScholarGoogle Scholar
  19. Atsushi Igarashi, Benjamin C. Pierce, and Philip Wadler. Featherweight Java: a Minimal Core Calculus For Java and GJ. ACM Trans. Program. Lang. Syst., 23(3):396--450, 2001. An earlier version of this work appeared at OOPSLA'99. Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. Bart Jacobs, Frank Piessens, K. Rustan M. Leino, and Wolfram Schulte. Safe concurrency for aggregate objects with invariants. In Software Engineering and Formal Methods (SEFM), 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. Neel Krishnaswami and Jonathan Aldrich. Permission-Based Ownership: Encapsulating State in Higher-Order Typed Languages. In Programming Language Design and Implementation (PLDI), 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. K. Rustan M. Leino and Peter Müller. Object invariants in dynamic contexts. In European Conference on Object-Oriented Programming (ECOOP), 2004.Google ScholarGoogle Scholar
  23. Yi Lu and John Potter. On Ownership and Accessibility. In European Conference on Object Oriented Programming (ECOOP), 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. Yi Lu and John Potter. Protecting Representation with Effect Encapsulation. In Principles of Programming Languages (POPL), 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. Peter Müller. Modular Specification and Verification of Object-Oriented Programs, volume 2262 of Lecture Notes in Computer Science. Springer-Verlag, 2002.Google ScholarGoogle Scholar
  26. Peter Müller, Arnd Poetzsch-Heffter, and Gary T. Leavens. Modular Invariants for Layered Object Structures. Science of Computer Programming, 62(3):253--286, October 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  27. James Noble, Jan Vitek, and John Potter. Flexible Alias Protection. In European Conference on Object Oriented Programming (ECOOP), 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  28. Mads Torgersen, Christian Plesner Hansen, Erik Ernst, Peter von der Ahé, Gilad Bracha, and Neal Gafter. Adding Wildcards to the Java Programming Language. Journal of Object Technology, 3(11):97--116, 2004. Special issue: OOPS track at SAC 2004, Nicosia/Cyprus.Google ScholarGoogle ScholarCross RefCross Ref
  29. Tobias Wrigstad and David G. Clarke. Existential Owners for Ownership Types. Journal of Object Technology, 6(4), 2007.Google ScholarGoogle ScholarCross RefCross Ref

Recommendations

Comments

Login options

Check if you have access through your login credentials or your institution to get full access on this article.

Sign in
  • Published in

    cover image ACM Other conferences
    IWACO '09: International Workshop on Aliasing, Confinement and Ownership in Object-Oriented Programming
    July 2009
    66 pages
    ISBN:9781605585468
    DOI:10.1145/1562154

    Copyright © 2009 ACM

    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    • Published: 6 July 2009

    Permissions

    Request permissions about this article.

    Request Permissions

    Check for updates

    Qualifiers

    • research-article