The standard course in theory of computation introduces students to Turing machines and computability theory. This model prescribes what can be computed, and what cannot be computed, but the negative results have far more consequences. To take the common example, suppose an operating systems designer wants to determine whether or not a program will halt given enough memory or other resources. Even a Turing machine program cannot be designed to solve this problem---and Turing machines have far more memory than any physical computer. The negative results of computability theory are also robust (a principle enshrined as Church's thesis): since many other models of computation, including λ-calculus, Post systems, and µ-recursive functions, compute the same class of functions on the natural numbers, negative results from one description apply to all other descriptions.But the discipline of programming and the architecture of modern computers impose other constraints on what can be computed. The constraints are ubiquitous. For example, a combination of hardware and software in operating systems prevents programs from manipulating protected data structures except through the system interface. In programming languages, there are programs that "cannot be written," e.g., a sort procedure in Pascal that works on arrays of any size. In databases, there is no Datalog program to calculate the parity of a relation (see [1]). Each of these settings involves a uniprocessor machine, but the constraints become even more pronounced in distributed systems: for instance, there is no mutual exclusion protocol for n processors using fewer than n atomic read/write registers [5]. All of these problems are computable in Turing's sense: one can encode each of these problems as computation over the natural numbers, and one can write programs to solve the problems. So in what sense is Church's thesis applicable? It is important to remember that computability theory only describes properties of the set of computable functions on the natural numbers (although there have been attempts to extend computability theory and complexity theory to higher-order functions; see, e.g., [13, 12, 20].) If one adopts computability theory as the only theory of computation, one is naturally forced to encode other forms of computation as functions on the natural numbers. Alan Perlis' phrase "Turing tarpit" highlights this potential misuse of computability theory: the encoding of computation into one framework forces many relevant distinctions to become lost.Any attempt to explain other computing constraints must necessarily look for theories beyond computability theory. Semantics aims to fill this niche: it is the mathematical analysis and synthesis of programming structures. The definition is admittedly broad and not historically based: semantics was originally a means of describing programming languages, and the definition covers areas not usually called "semantics." This essay attempts to flesh out this definition of semantics with examples, comparisons, and sources of theories. While most of the ideas will be familiar to the practicing semanticist, the perspective may be helpful to those in and out of the field.
[1]
Hanno Nickau.
Hereditarily Sequential Functionals
,
1994,
LFCS.
[2]
C.-H. Luke Ong,et al.
Pi-Calculus, Dialogue Games and PCF.
,
1995
.
[3]
Peter W. O'Hearn,et al.
Parametricity and local variables
,
1995,
JACM.
[4]
I. Stark,et al.
Domains and Denotational Semantics History Accomplishments and Open Problems
,
1996
.
[5]
Christopher Strachey,et al.
The varieties of programming language
,
1972
.
[6]
R. Platek.
Foundations of recursion theory
,
1966
.
[7]
Carl A. Gunter.
Semantics of programming languages: structures and techniques
,
1993,
Choice Reviews Online.
[8]
Ralph Johnson,et al.
design patterns elements of reusable object oriented software
,
2019
.
[9]
Nancy A. Lynch,et al.
Mutual exclusion using indivisible reads and writes
,
1980
.
[10]
Samson Abramsky,et al.
Full Abstraction for PCF * ( Extended Abstract )
,
1994
.
[11]
Jean-Jacques Lévy,et al.
Full abstraction for sequential languages : The states of the art
,
1983
.
[12]
Dana S. Scott,et al.
Outline of a Mathematical Theory of Computation
,
1970
.
[13]
Gérard Berry,et al.
Stable Models of Typed lambda-Calculi
,
1978,
ICALP.
[14]
Bruce M. Kapron,et al.
A New Characterization of Type-2 Feasibility
,
1996,
SIAM J. Comput..
[15]
Ronald Fagin,et al.
Reasoning about knowledge
,
1995
.
[16]
James S. Royer,et al.
Semantics vs Syntax vs Computations: Machine Models for Type-2 Polynomial-Time Bounded Functionals
,
1997,
J. Comput. Syst. Sci..
[17]
Peter W. O'Hearn,et al.
Kripke Logical Relations and PCF
,
1995,
Inf. Comput..