CS 538
Lecture 2
1-26-2000
History of Computer Languages
The first computer programs were programmed with wires. These wire programs
were similar in appearance to a big telephone switchboard that might be seen
in an old movie. There were plugs attached to these wires that fit into
plugholes on a panel. The first programs used relays (the switch that turns a
television on is a relay). Relays were later replaced with vacuum tubes,
which in turn were replaced with transistors. In 1946, John von Neumann
introduced an idea to store programs in the computers memory as numbers --
ones and zeros. This was early machine code. Nowadays there are hundreds if
not thousands of languages. Many of them are ancient and no one can figure
them out anymore.
Evolution of Computer Languages
There have been major programming languages since the 1950s, even though
Machine language is still the only language a machine understands.
Major steps:
ADD %R11, %R12, %R13could be a typical assemblly instruction to add the contents of registers 12 and 13 and put the answer into register 11. Most people don't, because it is tedious and bad for productivity. However, sometimes it is necessary to use assembly language for experimental reasons where one needs to be close to the machine, or at a "low level."
IF (A.LT.10) X = 10as a conditional structure and
DO 100 I=1, 100 . . . CONTINUEas a loop structure. There is also the ability to call subroutines e.g.
CALL SUBR(1, 2, A+1)
MOVE PRICE TO PRICE-OUTfor an assignment. *Note that the minus sign is not expressed as a subtraction operater. Also, an equation like X + Y = Z can be expressed like:
ADD X,Y GIVING ZCOBOL lost popularity but eventually came back about 4-5 years to remedy the Y2K crisis. Despite its simple looking syntax, there are still a lot of hidden rules, so it became necessary for COBOL to be standardized. Standardization is when a programming language is regulated over would it should not do despite the vendor. Often, a regulating body consists of a group of people. However, some of the most successful programming just have one person.
(+ A B)