Niklaus Wirth

term

programming

Kept in this browser · My desk

The Swiss computer scientist who designed Pascal, published in 1970, and after it Modula-2 and Oberon, always aiming, in his words, for a language as powerful as possible and yet as simple as possible.

Wirth's languages were arguments for restraint. He left the committee designing Algol's successor in 1966 because, as he told it, a small majority wanted a milestone of untested concepts; he built Algol W with doctoral students at Stanford instead, then designed Pascal at ETH Zurich, the Swiss Federal Institute of Technology. Pascal became the language a generation learned to program with, carried into schools, in his account, by a cheap compiler on floppy disk. Wirth's law, that software slows down faster than hardware speeds up, is the same argument stated as a complaint.

Who he was. Niklaus Wirth (1934 to 2024) was the Swiss computer scientist who designed Pascal, Modula-2 and Oberon, built workstations to run them and argued all his life that a language, a compiler and a whole system should be small enough for one person to understand.

Training. Born in Winterthur on 15 February 1934, Wirth studied electrical engineering at ETH Zurich, the Swiss Federal Institute of Technology, graduating in 1959, took an MSc at Laval University in Canada in 1960 and, according to ETH, met computers and compilers at the University of California, Berkeley, where he completed a doctorate in 1963 under Harry Huskey on generalizing Algol 60. He was an assistant professor at Stanford from 1963 to 1967 and returned to ETH as professor in 1968, teaching there until 1999.

From Algol to Pascal. His own account, 50 Years of Pascal, published in 2021, explains the turn. The working group of the International Federation for Information Processing (IFIP) charged with Algol's successor had about 40 members and two factions; he joined early in 1964 and was asked for a concrete proposal, but his realistic design lost to the small majority that wanted a milestone. He left in 1966 and built a compiler for his proposal with doctoral students at Stanford: Algol W, used on large IBM computers after 1967. Back in Switzerland he designed a language to his own taste, published in 1970 and used at once in large courses at ETH.

How the first compiler was built. In Good Ideas, Through the Looking Glass (2005) Wirth tells the story in detail. In 1969 the team had an assembler, a Fortran compiler and an Algol compiler too poor to trust, so they wrote a compiler for a substantial subset of Pascal in Fortran, meaning to translate it into Pascal and then bootstrap. After about one man-year it proved impossible: Fortran had no pointers, records or recursion, so symbol tables lived in arrays and parsing had to be table-driven. They rewrote the compiler in Pascal without being able to test it, since no Pascal compiler existed; one member spent two weeks translating it by hand into a low-level language that had a compiler, and a few days later the first test programs compiled. Every later version was produced by bootstrapping, the compiler compiling itself; Pascal ran on the Control Data Corporation (CDC) 6000 computers in 1970. His two accounts differ in one detail: the 2021 text says the first attempt was to write the compiler in Pascal and translate it by hand into Fortran, which failed, and that the second used the local language Scallop; the 2005 text says the first compiler was written in Fortran to be translated into Pascal. Both agree that the Fortran route failed and that the working compiler was written in Pascal itself.

Spread and dispute. Wirth credits Pascal's later spread to a group in Santa Cruz that sold a compiler with an editor for 50 dollars on floppy disks, which he names Turbo Pascal. Not everyone admired the language: Brian Kernighan's 1981 paper found standard Pascal not suitable for serious programming. Wirth was his own critic too: in 2005 he wrote that the designer of Pascal had kept the goto statement and the if without a closing end symbol in 1968 because he lacked the courage to break with convention.

Languages and machines. ETH lists his languages as Euler, PL360, Algol W, Pascal, Modula, Modula-2, Oberon and LoLa, and adds the Lilith workstation and Switzerland's first personal computers; the Computer History Museum (CHM), which made him a Fellow in 2004, dates Modula-2 to 1979 and Oberon to 1988. He spent sabbaticals at Xerox's Palo Alto Research Center (PARC) in 1976 to 1977 and 1984 to 1985, and pushed ETH into founding its computer science department in 1981. Project Oberon, whose 2013 edition is on his ETH pages, shows the whole method in one book: the source of the operating system and its applications, the Oberon compiler, and the hardware description of the RISC5 processor it runs on, everything needed to build the system from the chip up.

Honours. He received the Turing Award of the Association for Computing Machinery (ACM) in 1984, which ETH calls the first and still the only one won by a German-speaking computer scientist, and the Computer Pioneer Award of the IEEE (Institute of Electrical and Electronics Engineers) Computer Society in 1988. Wirth's law, that software slows down faster than hardware speeds up, is the same argument stated as a complaint. He died on 1 January 2024.

What gets misread. Turbo Pascal is sometimes credited to Wirth; it was a commercial product he praised, not his work. And Pascal is remembered as a teaching language only, while his own record shows it designed to be compiled efficiently and used to build its own compiler.

Neighbours. Pascal, Turbo Pascal, Algol, Edsger Dijkstra, whose structured programming Pascal followed, Brian Kernighan, Xerox PARC and compilers.

Also known as: modula-2 designer, oberon designer

Sources

← Back to N Back to the glossary