Non-monadic models of mutable references

  • Authors:
  • Péter Diviánszky

  • Affiliations:
  • Eötvös Loránd University, Fac. of Informatics, Programming Lang. and Compilers Dep., Budapest, Hungary

  • Venue:
  • CEFP'09 Proceedings of the Third summer school conference on Central European functional programming school
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

Pointers are known as mutable references in pure functional programming languages. In Haskell, IO-references and ST-references are the well-known monadic models of references. This paper propose a model of mutable references based on unique heaps. This model put less restriction on the evaluation order of basic reference operations. Moreover it has simpler, more tractable semantics and it supports features like shared references between heaps and virtual union of heaps. The proposed model needs uniqueness typing. This need could be seen as a drawback but it can also be seen as a motivation for the spread of uniqueness typing in functional languages.