Hostname: page-component-74656f9884-8r8nv Total loading time: 0 Render date: 2026-11-08T10:32:46.096Z Has data issue: false hasContentIssue false

MRI: Modular reasoning about interference in incremental programming

Published online by Cambridge University Press:  11 October 2012

BRUNO C. D. S. OLIVEIRA
Affiliation:
School of Computing, National University of Singapore, Singapore (e-mail: oliveira@comp.nus.edu.sg)
TOM SCHRIJVERS
Affiliation:
Department of Applied Mathematics and Computer ScienceGhent University, Ghent, Belgium (e-mail: tom.schrijvers@ugent.be)
WILLIAM R. COOK
Affiliation:
Department of Computer Science, University of Texas at Austin, University Station, Austin, TX, USA (e-mail: wcook@cs.utexas.edu)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

Incremental Programming (IP) is a programming style in which new program components are defined as increments of other components. Examples of IP mechanisms include Object-oriented programming inheritance, aspect-oriented programming advice, and feature-oriented programming. A characteristic of IP mechanisms is that, while individual components can be independently defined, the composition of components makes those components become tightly coupled, sharing both control and data flows. This makes reasoning about IP mechanisms a notoriously hard problem: modular reasoning about a component becomes very difficult; and it is very hard to tell if two tightly coupled components interfere with each other's control and data flows. This paper presents modular reasoning about interference (MRI), a purely functional model of IP embedded in Haskell. MRI models inheritance with mixins and side effects with monads. It comes with a range of powerful reasoning techniques: equational reasoning, parametricity, and reasoning with algebraic laws about effectful operations. These techniques enable MRI in the presence of side effects. MRI formally captures harmlessness, a hard-to-formalize notion in the interference literature, in two theorems. We prove these theorems with a non-trivial combination of all three reasoning techniques.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 2012
Submit a response

Discussions

No Discussions have been published for this article.