FORTRAN - A Breakthrough Computer Language
Written by Mike James   
Monday, 21 September 2020

The very first successful FORTRAN program ran on September 20, 1954. Invented at IBM by a group led by John Backus, FORTRAN, standing for "FORmula TRANslator" was to first language to crack the problem of converting mathematical expressions to code.

From today's perspective the idea that the same computer language can be used on a variety of hardware is taken for granted. That was not the case back in the 1950s when every new computer had its own language - machine code tied to the architecture of the machine and designed to make the best of its features. A programmer would know how the machine worked and would carefully craft code to achieve a result that took minimum time and/or memory. Every byte was manually allocated and managed and so was the use of the machine's internal registers where the work was done. The big problem is that working in machine code is particularly unfriendly and makes creating programs time-consuming and error-prone.

To enable the move away from machine code and to enable a computer language to run on multiple machines needed a compiler. This was the breakthrough made by IBM for its 704 computer.

IBM_704

The IBM 704 - first with FORTRAN

The project undertaken by a team under the leadership of John Backus, was to devise a computer language that could compile any arithmetic expression. To do this they had to invent a way of writing down and making use of the rules of grammar for mathematical expressions. The trick was to convert the expression into a syntax tree which makes clear the relationships between the operators and their priorities. Once you have the syntax tree then you can use it to generate the operations in the correct order by simply "walking" the tree. For a more detailed explanation see: Grammar and Torture.

This task was expected to take six months, and the first successful FORTRAN program, was run with the original timescale. However, it was another two years before the first compiler was available and it took until April 1957 before a working compiler was distributed to customers. It consisted of 25,000 lines of machine code on a magnetic tape and, complete with bugs, it became part of every IBM 704 installation.

FORTRAN revolutionized programming and made IBM the number one computer company for decades. It introduced many new ideas - arithmetic assignment, comments, the DO loop, subroutines and functions, formatted input/output - to name just a few. It also seeded the idea of machine independence because a machine that had a FORTRAN compiler could run any FORTRAN program.

As the first high level language FORTRAN is clearly important but it also influenced many generations of programmers, especially when you take into account the popularity during the early home computer era of BASIC, which was derived directly from it.

Every single language that compiles an expression owes a debt to FORTRAN and to John Backus.

fortranmanual

It would be wrong to consider FORTRAN as a purely legacy language. It is still used by scientists and engineers and its most recent version,  Fortran 2018 is considered a clearer standard that has allowed many deficiencies and irregularities in the earlier language versions to be resolved.

  •  Mike James is the author of The Programmer’s Guide To Theory which sets out to present the fundamental ideas of computer science, including the grammar used by a compiler, in an informal and yet informative way.

 

Related Articles

John Backus - the Father of Fortran

History of Computer Languages - the classical decade, 1950s

The Heart of a Compiler

Grammar and Torture

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on, Twitter, Facebook or Linkedin.

Banner


And So It Begins - SCOTUS Hears Google v Oracle
07/10/2020

Today, October 7th, 2020 is the day that the Supreme Court hears oral arguments in Google v Oracle, summed up as a case concerning software code and copyright law. Will we look back on it as [ ... ]



Android Cars App Library Enters Public Beta
19/10/2020

Google has extended the Android Auto options with a library that can be used for creating navigation, parking, and electric vehicle charging apps. Android for Cars App Library has now been released as [ ... ]


More News

square

 



 

Comments




or email your comment to: comments@i-programmer.info

<ASIN:0198811888>

<ASIN:0073385891>

<ASIN:0340600349>

<ASIN:1871962439>

 

 

 

Last Updated ( Monday, 21 September 2020 )