The First Program Ran Before the First Language

The First Program Came Before the First Language

Lovelace's 1843 algorithm, Zuse's long-unimplemented Plankalkul, and FORTRAN (1957) each have a claim to being first — depending on what you mean by "language".

Ask who wrote the first program and a strong case belongs to Ada Lovelace, whose 1843 notes on Charles Babbage's proposed Analytical Engine included an algorithm to compute Bernoulli numbers, for a machine that was never built in her lifetime. Ask who designed the first high-level language and a strong case belongs to Konrad Zuse, whose Plankalkul, worked out in relative isolation in the 1940s, had data types and control structures decades before anyone could compile it. Ask what the first practical, widely used high-level language was, and a strong case belongs to FORTRAN, released by IBM in 1957, which reached real programmers doing real work within a year. Each of these three answers can be defended. They are answers to three different questions, and confusion around "the first programming language" can come from asking all three at once and expecting one name back.

Why "first programming language" forks three ways

The phrase sounds like it should have one answer, and it does not, because an algorithm, a language design on paper, and a language people actually used are three separate achievements, the first of them about a century before the other two.

An algorithm is a sequence of steps meant to produce a result. A language design is a formal notation for writing such sequences, complete enough that someone else could in principle use it. A practical language is a design that was implemented, compiled, distributed, and adopted by people who were not the ones who invented it. It is entirely possible for the first of these to exist a century before the third, and that is exactly what happened.

Ada Lovelace's algorithm for a machine that did not exist

In 1843, Ada Lovelace translated and annotated a paper by the Italian engineer Luigi Menabrea describing Charles Babbage's proposed Analytical Engine, a mechanical general-purpose computer that Babbage designed but never finished building. Her annotations, longer than the paper itself, included a detailed method, laid out as a sequence of operations, for computing a series of Bernoulli numbers on the machine.

That sequence has been described as the first published computer program, and the label has a basis: it specifies steps for a machine to carry out, in order, to reach a numerical answer, rather than describing the answer directly. It is not the only candidate. Menabrea's paper, published in 1842, had already set out a table of operations for the engine, and Allan Bromley, who studied Babbage's papers, reported in 1982 that Babbage's notes hold sample programs for it prepared between 1837 and 1840, although he added that, strictly speaking, they are walkthroughs of particular execution instances rather than programs in the modern sense. What Lovelace's sequence was not, in its own time, was software that ran. The Analytical Engine existed only as drawings and partial mechanical fragments, so Lovelace's algorithm was never executed on the machine it was written for. It sat unrun, with the operands of at least one division printed in reverse order, in a paper about a computer that was never completed.

Plankalkul: a language designed but not built

A century later, German engineer Konrad Zuse made notes toward a formal language between 1942 and 1945 and, in 1945, in a small Alpine village and with his group of twelve co-workers disbanded, completed a manuscript on it. He called the language Plankalkul, meaning roughly "plan calculus." It was not a single algorithm for one problem; it was a general notation, with something resembling data types and conditional and looping structures, meant to describe computation the way a mathematical language describes proofs.

Zuse did not publish Plankalkul in a usable form during the years he developed it, and no computer of the time ran it. It stayed a design on paper, and Zuse did not publish a full account until 1972. In February 2000 a team from the Free University of Berlin and Feinarbeit in Berlin ran programs on what it described as the first implementation, covering a subset of the language; a separate Plankalkul compiler by Wolfgang Mauerer carries a copyright notice of 1997 and 1998. By then FORTRAN, LISP, and COBOL were all decades old. Plankalkul is a genuine high-level language design, arguably ahead of its time in its structure, but it had no practical existence when it was conceived.

FORTRAN: the language that spread

FORTRAN, short for Formula Translation, was developed by a team led by John Backus at IBM and released in 1957. Its case for being "the first programming language" rests on something neither Lovelace's algorithm nor Plankalkul could claim: people other than its inventors picked it up and used it to do work, almost immediately.

Before 1954, Backus later recalled, almost all programming was done in machine language or assembly language. Higher-level systems existed before FORTRAN's release, among them an MIT program, described in a January 1954 report, that accepted equations in ordinary mathematical notation within certain limits, and the IT compiler for the IBM 650, which Donald Knuth and Luis Trabb Pardo say was put into use in October 1956. FORTRAN's engineering achievement was a compiler that translated higher-level mathematical notation into machine code, with the aim of producing programs almost as efficient as hand-coded ones. By Backus's account, there were some 60 installations with about 66 IBM 704s by the fall of 1958, and more than half the machine instructions for those machines were being produced by FORTRAN. He also wrote that he believed this emphasis on efficiency rather than on language design was basically correct, and that failing to produce efficient programs would have seriously delayed the widespread use of languages like FORTRAN. FORTRAN was adopted at IBM customer sites within about a year of its release, spreading through scientific and engineering computing in a way neither Lovelace's algorithm nor Plankalkul ever did.

What each answer is actually claiming

Once the three achievements are separated, the disagreement is easier to sort out. Calling Lovelace's work the first program is a claim about algorithmic thinking directed at a machine, made about a century before electronic computers existed, and it can be defended as that, alongside the earlier sample programs in Babbage's notes. Calling Plankalkul the first high-level language is a claim about design completeness on paper, a real intellectual achievement that happened to arrive with no audience able to run it. Calling FORTRAN the first practical high-level language is a claim about adoption and impact, which is a different question from who designed a language first.

Treating any one of these as the single correct answer to "first programming language" requires quietly picking which of those three questions you meant to ask.

A short timeline of the programming language

PeriodMilestoneWhat it was
1843Lovelace's algorithmA method to compute Bernoulli numbers on Babbage's unbuilt Analytical Engine, which is often called the first computer program
1940s (published 1972)PlankalkulKonrad Zuse's designed high-level language with data types and control structures; a team in Berlin ran what it described as the first implementation in 2000
By the early 1950sAssembly languagesSymbolic instructions tied directly to one machine's hardware, still requiring hand-tuned, low-level code
1957FORTRANIBM's high-level language, used for at least some of the work at almost all of the 26 IBM 704 installations surveyed in April 1958
1958LISPA language built around symbolic expressions, developed at MIT for research into artificial intelligence
1959COBOLA language aimed at business data processing, with procedures expressed in meaningful English words, statements, sentences, and paragraphs

The table separates a designed algorithm, a designed language, and an adopted language along the timeline where they actually happened, rather than collapsing them into a single point. FORTRAN's arrival in 1957 is where the fork this piece describes gets resolved into practice, which is why the table runs only two entries past it rather than tracing every later language.

Project Inquiry