Skip to main content

Modelling Unique and Affine Typing Using Polymorphism

  • Chapter

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 8106))

Abstract

Uniqueness typing and affine (or linear) typing are dual type systems. Uniqueness gives a guarantee that an term has not been shared, while affinity imposes a restriction that a term may not be shared. We show that we can unify both concepts through polymorphism.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Ahmed, A., Fluet, M., Morrisett, G.: A step-indexed model of substructural state. In: Proceedings of the 10th ACM SIGPLAN International Conference on Functional Programming (ICFP), pp. 78–91. ACM (2005)

    Google Scholar 

  2. Barendsen, E., Smetsers, S.: Uniqueness typing for functional languages with graph rewriting semantics. Mathematical Structures in Computer Science 6, 579–612 (1996)

    MathSciNet  MATH  Google Scholar 

  3. Girard, J.Y.: Linear logic. Theoretical Computer Science 50(1), 1–102 (1987)

    Article  MathSciNet  MATH  Google Scholar 

  4. Hage, J., Holdermans, S., Middelkoop, A.: A generic usage analysis with subeffect qualifiers. In: Proceedings of the 12th ACM SIGPLAN International Conference on Functional Programming (ICFP), pp. 235–246. ACM (2007)

    Google Scholar 

  5. Henderson, F.: Strong modes can change the world! honours Report, Department of Computer Science, University of Melbourne (November 1992)

    Google Scholar 

  6. Overton, D.: Precise and expressive mode systems for typed logic programming languages. Ph.D. thesis, The University of Melbourne (December 2003)

    Google Scholar 

  7. Plasmeijer, R., van Eekelen, M.: Clean Language Report (version 2.1) (November 2002)

    Google Scholar 

  8. Scholz, S.B.: Single assignment C: efficient support for high-level array operations in a functional setting. Journal of Functional Programming 13(6), 1005–1059 (2003)

    Article  MathSciNet  MATH  Google Scholar 

  9. Turner, D.N., Wadler, P., Mossin, C.: Once upon a type. In: Proceedings of the 7th International Conference on Functional Programming Languages and Computer Architecture (FPCA), pp. 1–11. ACM (1995)

    Google Scholar 

  10. de Vries, E.: Making Uniqueness Typing Less Unique. Ph.D. thesis, Trinity College Dublin (2008)

    Google Scholar 

  11. de Vries, E., Francalanza, A., Hennessy, M.: Uniqueness typing for resource management in message-passing concurrency. Journal of Logic and Computation (2012)

    Google Scholar 

  12. de Vries, E., Plasmeijer, R., Abrahamson, D.M.: Uniqueness typing redefined. In: Horváth, Z., Zsók, V., Butterfield, A. (eds.) IFL 2006. LNCS, vol. 4449, pp. 181–198. Springer, Heidelberg (2007)

    Chapter  Google Scholar 

  13. de Vries, E., Plasmeijer, R., Abrahamson, D.M.: Uniqueness typing simplified. In: Chitil, O., Horváth, Z., Zsók, V. (eds.) IFL 2007. LNCS, vol. 5083, pp. 201–218. Springer, Heidelberg (2008)

    Chapter  Google Scholar 

  14. Wadler, P.: Is there a use for linear logic? In: Proceedings of the 2nd ACM SIGPLAN Symposium on Partial Evaluation and Semantics-based Program Manipulation (PEPM), pp. 255–273. ACM (1991)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

de Vries, E. (2013). Modelling Unique and Affine Typing Using Polymorphism. In: Achten, P., Koopman, P. (eds) The Beauty of Functional Code. Lecture Notes in Computer Science, vol 8106. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-40355-2_13

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-40355-2_13

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-40354-5

  • Online ISBN: 978-3-642-40355-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics