Syntactic control of interference revisited

Abstract In “Syntactic Control of Interference” (POPL, 1978), J. C. Reynolds proposes three design principles intended to constrain the scope of imperative state effects in Algol-like languages. The resulting linguistic framework seems to be a very satisfactory way of combining functional and imperative concepts, having the desirable attributes of both purely functional languages (such as PCF) and simple imperative languages (such as the language of while programs). However, Reynolds points out that an “obvious” syntax for interference control has the unfortunate property that β-reductions do not always preserve typings. Reynolds has subsequently presented a solution to this problem (ICALP, 1989), but it is fairly complicated and requires intersection types in the type system. Here, we present a much simpler solution which does not require intersection types. We first describe a new type system inspired in part by linear logic and verify that reductions preserve typings. We then define a class of “bireflective” models, which are shown to provide a sound interpretation of the type system; a companion paper, “Bireflectivity”, in this volume provides a categorical analysis of these models. Finally, we describe a concrete model for an illustrative programming language based on the new type system; this improves on earlier such efforts in that states are not assumed to be structured using locations.

[1]  S. Lane Categories for the Working Mathematician , 1971 .

[2]  Peter W. O'Hearn Linear Logic and Interference Control , 1991, Category Theory and Computer Science.

[3]  Frank J. Oles,et al.  A category-theoretic approach to the semantics of programming languages , 1982 .

[4]  Paul Hudak,et al.  Call by name, assignment, and the lambda calculus , 1993, POPL '93.

[5]  Cliff B. Jones,et al.  Essays in computing science , 1989 .

[6]  Niklaus Wirth,et al.  On the Design of Programming Languages , 1974, IFIP Congress.

[7]  Nick Benton,et al.  A Term Calculus for Intuitionistic Linear Logic , 1993, TLCA.

[8]  Gavin M. Bierman What is a Categorical Model of Intuitionistic Linear Logic? , 1995, TLCA.

[9]  Peter W. O'Hearn A Model for Syntactic Control of Interference , 1993, Math. Struct. Comput. Sci..

[10]  John Hughes,et al.  Why Functional Programming Matters , 1989, Comput. J..

[11]  Uday S. Reddy,et al.  Passivity and independence , 1994, Proceedings Ninth Annual IEEE Symposium on Logic in Computer Science.

[12]  Uday S. Reddy,et al.  Global state considered unnecessary: An introduction to object-based semantics , 1996, LISP Symb. Comput..

[13]  Peter W. O'Hearn,et al.  Relational parametricity and local variables , 1993, POPL '93.

[14]  Richard S. Bird,et al.  Introduction to functional programming , 1988, Prentice Hall International series in computer science.

[15]  Simon L. Peyton Jones,et al.  Imperative functional programming , 1993, POPL '93.

[16]  Charles Antony Richard Hoare,et al.  Hints on programming language design. , 1973 .

[17]  C. A. R. Hoare,et al.  An axiomatic basis for computer programming , 1969, CACM.

[18]  John C. Reynolds,et al.  The craft of programming , 1981, Prentice Hall International series in computer science.

[19]  Robert D. Tennent,et al.  Semantical Analysis of Specification Logic , 1985, Inf. Comput..

[20]  Mariangiola Dezani-Ciancaglini,et al.  A new type assignment for λ-terms , 1978, Arch. Math. Log..

[21]  Per Brinch Hansen,et al.  Structured multiprogramming , 1972, CACM.

[22]  Robert D. Tennent Semantics of Interference Control , 1983, Theor. Comput. Sci..

[23]  Jean-Yves Girard,et al.  Linear Logic , 1987, Theor. Comput. Sci..

[24]  Philip Wadler,et al.  A Syntax for Linear Logic , 1993, MFPS.

[25]  Peter W. O'Hearn,et al.  Semantical Analysis of Specification Logic, 2 , 1993, Inf. Comput..

[26]  John Power,et al.  Why Tricategories? , 1995, Inf. Comput..

[27]  Paul Hudak,et al.  Conception, evolution, and application of functional programming languages , 1989, CSUR.

[28]  Jean-Yves Girard,et al.  On the Unity of Logic , 1993, Ann. Pure Appl. Log..

[29]  John C. Reynolds,et al.  Syntactic control of interference , 1978, POPL.

[30]  Peter W. O'Hearn,et al.  Parametricity and local variables , 1995, JACM.

[31]  John C. Reynolds,et al.  Syntactic Control of Inference, Part 2 , 1989, ICALP.

[32]  B. Day On closed categories of functors , 1970 .