ArticleslgStudy

computer science

WATFIV

WATFIV is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand WATFIV rather than just read about it. In short: WATFOR and WATFIV (variously, Waterloo FORTRAN or Waterloo FORTRAN IV), developed in Canada at the University of Waterloo, are implementations of the Fortran computer programming language, intended for educational use. WATFOR was the original version.

WATFIV — main illustration
WATFIV — illustration

Key takeaways

  • WATFIV belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect WATFIV to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of WATFIV from memory before moving on to harder problems.

Reference excerpt

WATFOR and WATFIV (variously, Waterloo FORTRAN or Waterloo FORTRAN IV), developed in Canada at the University of Waterloo, are implementations of the Fortran computer programming language, intended for educational use. WATFOR was the original version. WATFIV was a successor version used from the late 1960s into the mid-1980s. WATFIV was in turn succeeded by later versions of WATFOR. Because it could complete the three usual steps ("compile-link-go") in just one pass, the system became popular for teaching students computer programming. In addition to faster processing, WATFOR and WATFIV are a programming language dialect, in that they present a somewhat easier version of FORTRAN IV, with new features including format-free input and output and, in WATFIV, a character string type.

History In the early 1960s, newly formed computer science departments started university programs to teach computer programming languages. The Fortran language had been developed at IBM, but suffered from slow and error-prone three-stage batch processing workflow. In the first stage, the compiler started with source code and produced object code. In the second stage, a linker constructed a complete program using growing libraries of common functions. Finally, the program was repeatedly executed with data for the typical scientific and business problems of customers. Each step often included a new set of punched cards or tape. Students, on the other hand, had very different requirements. Their programs were generally short, but usually contained logic and syntax errors, resulting in time-consuming repetition of the steps and confusing "core dumps" (It often took a full day to submit and receive the successful or failed output from the computer operator). Once their programs worked correctly, they were turned in and not run again. In 1961, the University of Wisconsin developed a technology called FORGO for the IBM 1620 which combined some of the steps. Similar experiments were carried out at Purdue University on the IBM 7090 in a system called PUFFT.

WATFOR 7040 In summer 1965, four undergraduate students of the University of Waterloo, Gus German, James G. Mitchell Richard Shirley and Robert Zarnke, led by Peter Shantz, developed a Fortran compiler for the IBM 7040 computer called WATFOR. Its objectives were fast compilation speed and effective error diagnostics at both compile and execution time. It eliminates the need for a separate linking step and, as a result, FORTRAN programs which contain no syntax errors are placed into immediate execution. Professor J. Wesley Graham provided leadership throughout the project. This simple, one-step process allowed non-experienced programmers to learn programming with lower cost in time and computing resources. To aid in debugging, the compiler uses an innovative approach to checking for uninitialized variables (an extremely common mistake by novice programmers). It uses a diagnostic feature of the 7040 that can deliberately set areas of memory to bad parity. When a program tries to reference variables that hadn't been set, the machine takes an interrupt (handled by the Watfor runtime routines) and the error is reported to the user as an uninitialized variable. This has the pleasant side effect of checking for uninitialized variables with essentially no CPU overhead. WATFOR quickly gained popularity and over 75 institutions installed it on their IBM 7040 systems. The distribution of the compiler was handled by Sandra Bruce (née Hope).

WATFOR 360 In 1966, the university planned to replace the 7040 with an IBM System/360 computer, which was much faster but not software compatible. A team of full-time employees and undergraduate students was formed to write an IBM 360 version. The project members, Betty Schmidt, Paul Dirksen, Paul H. Cress, Lothar K. "Ned" Kesselhut, Bill Kindree and Dereck Meek, were later joined by Mike Doyle, Rod Milne, Ron Hurdal and Lynn Williams, completed 360 WATFOR in the early part of 1967. Many other institutions (universities, colleges, businesses and governmental agencies) started using the WATFOR compiler to meet needs similar to those experienced at the University of Waterloo. The distribution of the software and customer support was carried on by Sandra Ward.

WATFIV As a result of proposals from the SHARE user group Fortran committee and others, a new version called WATFIV was produced in 1968. WATFIV introduced new features such as CHARACTER variables, formatted writes to memory, and direct-access input-output. In terms of code generation strategies, WATFIV produced absolute code. People involved with maintenance and enhancement included Bernie Murphy, Martin Wiseman and Yvonne Johnson. WATFIV was pronounced as "WHAT FIVE" (and sometimes "WATT FIVE"), but, as was realized at the time, could also (almost) still be pronounced as "WHAT FOR", as in WAT-F-IV (Waterloo Fortran IV).

Impact of WATFOR and WATFIV The Association for Computing Machinery presented Paul Cress and Paul Dirksen the Grace Murray Hopper Award for contributions to the WATFOR and WATFIV projects in 1972. The WATFIV compiler was included in the DATAPRO Honour Roll for 1975 and 1976. Universities and corporations used these compilers and a number of other software products have been developed in the WATFOR tradition. For example, a version for the COBOL programming language is called WATBOL. And from Cornell University came a student version of the PL/I language, called PL/C, that had goals similar to WATFOR. The computer scientist and author Daniel D. McCracken said "it is no exaggeration to suggest that WATFOR revolutionized the use of computers in education." At one point, more than 3,000 mini and mainframe computer licenses and over 100,000 microcomputer licenses were held worldwide for this family of software products.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with WATFIV

Start with the simplest possible case. Write down what WATFIV claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to WATFIV before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about WATFIV ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of WATFIV

In research
WATFIV appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses WATFIV in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
WATFIV is common in secondary-school and first-year university syllabi. It links to neighbouring topics Fortran programming language family, Procedural programming languages, Programming languages created in the 1960s, so understanding it makes those chapters shorter.
In everyday life
Look for WATFIV outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “WATFIV” →

How to study WATFIV in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what WATFIV means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain WATFIV out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is WATFIV in simple terms?

WATFOR and WATFIV (variously, Waterloo FORTRAN or Waterloo FORTRAN IV), developed in Canada at the University of Waterloo, are implementations of the Fortran computer programming language, intended for educational use. WATFOR was the original version.

Why does WATFIV matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study WATFIV?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on WATFIV.

Tags

  • Fortran programming language family
  • Procedural programming languages
  • Programming languages created in the 1960s
  • Software programmed in assembly language

Keep exploring