Home CPSC 401



Genealogy of Common Languages


Early Languages



Fortran was first developed in 1955 by John Backus at IBM. It was one of the first compiled programming languages.

FORTRAN was designed for scientific computing, so it had support for arrays and floating point numbers. FORTRAN originally had a number of different flaws:

FORTRAN evolved over the years to fix these flaws, and is now comparable with languages like C++. Here is an example FORTRAN program for multiplying two numbers:

      program add
c   This is a simple program to read 2 numbers and print the product
      implicit none
      real A,B,S

      print *, ' This program adds 2 real numbers'
      print *, ' Type them in now separated by a comma or space'
      read *, A,B
      S = A + B
      print *,  'The sum of ', A,' and ' , B
      print *, ' is ' , S

FORTRAN revolutionized compiler technology and is still used in high-performance computing today.



LISP was developed in 1958 by John McCarthy at MIT. It was created for artificial intelligence, its focus is linked lists and symbolic computation.

Lisp syntax is based on S-expressions which are lists surrounded by parenthesis. All code and data are in the form of S-expressions. Below is an example of a linked list of 3 numbers:

(3 4 5)
Below is a mathematical expression:

(* 2 (+ a 1))
Below is an if/else statement in LISP (which created the structure):

(if (< a b)
Below is a factorial function written in LISP:

 (defun factorial (n)
   (if (<= n 1)
       (* n (factorial (- n 1)))))

LISP was also the first language to have garbage collection.

LISP was hurt by the fact that it was significantly slower than other languages when it first came out, and the fact that there were many different versions of it that were incompatible (Scheme and Common LISP being the biggest).



COBOL was developed in 1959 by a committee led by Grace Hopper. COBOL was initially designed to make programming easier for non-engineers by making it closer to English. This also made it very verbose.

Below is a program that reads in two numbers, multiplies them together and prints the result

PROGRAM-ID.  Multiplier.


01  A                                PIC 9  VALUE ZEROS.
01  B                                PIC 9  VALUE ZEROS.
01  Result                           PIC 99 VALUE ZEROS.

    DISPLAY "Enter first number  (1 digit) : " WITH NO ADVANCING.
    DISPLAY "Enter second number (1 digit) : " WITH NO ADVANCING.
    DISPLAY "Result is = ", Result.

COBOL was the first language to separate data from code. In an effort to make more readable code, it accepted names up to 30 characters with hyphens. It also had much better I/O support than other languages at the time allowing for printed reports of data etc.

COBOL was the standard in business applications for many years. It also led to the Y2K crisis caused by storing dates as only two digits.



ALGOL was an attempt to create a universal language that would be portable and able to solve problems in any field.

ALGOL introduced many ideas that are prevalent today:

Unfortunately, ALGOL included no string handling or I/O as these were seen as too dependent on the machine.

ALGOL was important to the development of computing for several reasons:

Unfortunately it was never widely used because:

Here is an example ALGOL program to find the average of an array of numbers:

  integer N;
  Read Int(N);

    real array Data[1:N];
    real sum, avg;
    integer i;

    for i:=1 step 1 until N do
      begin real val;
        Read Real(val);
        Data[i]:=if val<0 then -val else val

    for i:=1 step 1 until N do
      sum:=sum   Data[i];
    Print Real(avg)



BASIC was first developed at Dartmouth in 1964. BASIC was designed for non-engineers to be able to program in and to be as simple as possible. BASIC was also the first popular language to be primarily interpreted instead of compiled.

BASIC was popularized because it appeared just before a time when computers were becoming more accessible:

BASIC also suffered from the problem of having many incompatible versions. Many versions of BASIC are still used today, the most popular being Visual BASIC.

Below is a TI-Basic program to multiply two numbers:

:Disp "Enter two numbers:"
:Input A
:Input B
:C <- A * B
:Disp C



SIMULA was developed in 1967 at Norwegian Computing Center. It was intended to do simulations for the sciences and other fields.

SIMULA is important because it was the first object-oriented language and introduced many new features:

Simula is no longer used widely, but was hugely influential on OO languages to follow. Its syntax was based heavily on that of ALGOL.



Pascal was developed by Niklaus Wirth (who had worked on the ALGOL committee) in 1970. His goal was to make a language that would encourage good programming practices and be good for teaching programming. It took and simplified concepts from other languages.

It was widely used for teaching in the 70s and 80s and spawned more powerful languages such as:

program Multiply;
  A    : Integer;        {comments go in braces}
  B    : Integer;
  R    : Integer;
  Write('Enter two numbers: ');
  WriteLn('Product is: ')
  Write(A * B)



C was originally designed in 1972 by Dennis Ritchie at AT&T Bell Labs. It was originally written to develop systems software such as UNIX.

C is one of the most widely used programming languages of all time and influenced many others following it.

C was essentially designed to be a portable assembly language. The first version of UNIX, along with other operating systems of the day, was written in assembly. Using a language like C allows for portable OS development.

Unlike most languages, C today is almost identical to its first incarnation.

C became so popular due to:



ML was developed in 1973 by Robert Milner at the University of Edinburgh. It was initially developed for the field of automatic theory proving.

ML is a functional language that influenced others such as:

One large contribution of ML is type inference. This means that the compiler is able to figure out the types of variables without the programmer's help. This feature appears in recent versions of C++ and C#. ML pioneered other language features we wil learn from Haskell.

An example that prints the sum of two numbers using a function:

let sum a b =
  a + b

print_int (sum read_int read_int)



Ada was designed over many years by the US Department of Defense as a reliable language for military and government use. It was a huge language, including features of nearly every language that had come before.

Ada contributed several new ideas:

Unfortunately Ada was a failure mostly due to the large complexity of the language. This also meant that the compilers for it were hard to write and buggy.

Later developments of Ada fixed these problems and good compilers became available, though Ada is still rarely used.


Later OO Languages

C++ was developed at AT&T Bell Labs by Bjarne Stroustrup in 1983. It was originally called "C with Classes" and attempted to add modern OO features to C. C++ is a tremendously large language with both low-level and high-level constructs.

C++ was successful because it was mostly backwards-compatible with C. Also, though it is very complicated, it introduced new features over many years.

Java was developed in 1990 by Sun Microsystems. It is an evolution of C++ with many of the more diffcult and dangerous features removed including:

Objective-C was developed by Apple starting in the early 80s for their NeXTSTEP OS. Objective-C is mostly similar to C++ in that it adds OO features to C. The language was nearly dead until the iPhone was released, which uses Objective-C as the primary language.

C# was developed by Microsoft in 2000. C# was very similar to Java when it was first released, leading many to believe Microsoft primarily created it to avoid patent issues with Sun. Subsequent versions of C# have added several features not found in Java:

All of these languages are widely used and continually evolving.


Scripting Languages

Perl was developed by Larry Wall in 1987 to be an easier to use alternative to UNIX scripting languages. Perl has great text-processing features such as string functions and regular expression matching. Perls syntax is inspired from C and UNIX shells, and is considered to be extremely ugly. Perl also was used for early server-side web programs in the form of CGI scripts.

JavaScript was developed in 1994 by Netscape Communications (which became Mozilla) as a scripting language for their web browser. It was initially going to be called "LiveScript" but was renamed to try to ride the popularity of Java. JavaScript is mostly used for client-side web scripting, but the popularity of the language has led to it branching into other domains as well.

PHP was developed by Rasmus Lerdorf in 1995 because he was unsatisfied with existing tools for building his personal web site. PHP has long eclipsed Perl as the most common server-side web scripting language. PHP syntax is inspired from C and Perl, though much simpler.

Python was first developed by Guido van Rossum in 1991. The primary focus for Python was to create a readable, elegant syntax. Python was initially used as a scripting language (often in place of Perl), though has expanded into many other areas. With the expansion of agile development and rapid prototyping, Python has become very popular.

Ruby was developed by Yukihiro Matsumoto in 1995. It had similar goals to Python, though Python is focused more on readability and Ruby more on writability. Ruby was mostly used in Japan until the development of Ruby on Rails, which made it much more popular.


Language Popularity

Language popularity is hard to measure. The Tiobe index estimates popularity based on search queries. Once languages attain a certain level of popularity, they take a very long time to lose it. However, languages can gain popularity relatively quickly.

Copyright © 2022 Ian Finlayson | Licensed under a Attribution-NonCommercial 4.0 International License.