Aliasing visions: ownership and location

  • Authors:
  • Alan Mycroft

  • Affiliations:
  • Computer Laboratory, University of Cambridge, Cambridge, UK

  • Venue:
  • Aliasing in Object-Oriented Programming
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

Historically, concerns about aliasing and confinement in object-oriented languages arose from the Software Engineering or Program Verification viewpoint: spaghetti-data resulted in programs too delicate to modify or "… we could prove Q if only we knew that x is not aliased". By and large, these issues arose in the context of sequential systems. Nowadays, exploiting multi-core architectures generally requires concurrent programming. The issues above become magnified: in software engineering terms updates to aliased objects can now lead to unpredictable data races rather than resulting in hard-to-modify but deterministic code. Program reasoning also became harder as there are more ways to break encapsulation. For example 'x+=2;' and 'x+=1;x+=1;' are no longer equivalent.