Plankalkül (German pronunciation: [ˈplaːnkalkyːl], "Plan Calculus") is a programming language designed for engineering purposes by Konrad Zuse between 1942 and 1945. It was the first high-level (non-von Neumann) programming language to be designed for a computer.
|Designed by||Konrad Zuse|
|First appeared||1948 – concept first published|
|Plankalkül-Compiler by the FU Berlin in 2000|
Superplan by Heinz Rutishauser, |
While working on his intended doctoral dissertation, Konrad Zuse developed a formal system of notation for algorithms because no such system was yet known. This notation could only handle linear (unbranched and unlooped) calculation plans. He had intended to submit an early manuscript, written in 1944, as a PhD thesis, but the collapse of Nazi Germany made this impossible.
Near the end of the Second World War, most of the computers Zuse was building were destroyed by Allied bombs. He was able to rescue one machine, the Z4, and move it to the small Alpine village of Hinterstein. After the war it was not possible for Zuse to continue building his computers, so he devoted his time to the development of a higher level programming model and language for them called the Plankalkül.
Notes survive with scribblings about such a plan calculation dating back to May 1939 and in 1942 Zuse began writing a computer chess program in Plankalkül. In 1944 Zuse met with the German logician and philosopher Heinrich Scholz and they discussed Zuse's Plankalkül. In March 1945 Scholz personally expressed his deep appreciation for Zuse's utilization of the logical calculus. Plankalkül was not published at that time owing to a combination of factors such as conditions in World War II and postwar Germany and his efforts to commercialise the Z3 computer and its successors. By 1946, Zuse had written a book on the subject but this remained unpublished.
Only in 1948 Zuse published a paper about the Plankalkül in the "Archiv der Mathematik" but still did not attract much feedback – for a long time to come programming a computer would only be thought of as programming with machine code. In the same year Zuse introduced his programming language at the Annual Meeting of the GAMM.
The Plankalkül was eventually more comprehensively published in 1972 and the first compiler for it was implemented in 1975 in a dissertation by Joachim Hohmann. Other independent implementations followed in 1998 and then in 2000 by the Free University of Berlin.
Plankalkül has drawn comparisons to APL and relational algebra. It includes assignment statements, subroutines, conditional statements, iteration, floating point arithmetic, arrays, hierarchical record structures, assertions, exception handling, and other advanced features such as goal-directed execution. The Plankalkül provides a data structure called generalized graph (verallgemeinerter Graph), which can be used to represent geometrical structures.
Some features of the Plankalkül:
The only primitive data type in the Plankalkül is a single bit, denoted by S0. Further data types can be built up from these.
Zuse called a single program a Rechenplan (i.e. computation plan), and in 1944 he already envisioned a device that should read and then automatically translate a mathematical formulation of a program into machine readable punched film stock – a device which he called Planfertigungsgerät (i.e. plan construction device).
The original notation was two dimensional. For a later implementation in the 1990s, a linear notation was developed.
The following example shows a program (in a linear transcription), which calculates the maximum of three variables by calling the function
P1 max3 (V0[:8.0],V1[:8.0],V2[:8.0]) → R0[:8.0] max(V0[:8.0],V1[:8.0]) → Z1[:8.0] max(Z1[:8.0],V2[:8.0]) → R0[:8.0] END P2 max (V0[:8.0],V1[:8.0]) → R0[:8.0] V0[:8.0] → Z1[:8.0] (Z1[:8.0] < V1[:8.0]) → V1[:8.0] → Z1[:8.0] Z1[:8.0] → R0[:8.0] END
In a lecture in 1957 Zuse mentioned his hope that the Plankalkül "after some time as a Sleeping Beauty, will yet come to life".
The very first attempt to devise an algorithmic language was undertaken in 1948 by K. Zuse. His notation was quite general, but the proposal never attained the consideration it deserved.