ArticleslgStudy

science

Interactive ALGOL 68

Interactive ALGOL 68 is a 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 Interactive ALGOL 68 rather than just read about it. In short: The Interactive ALGOL 68 is a structured, imperative high-level computer programming language, a dialect of, and compiler for, ALGOL 68. It was made available by Peter Craven of Algol Applications in 1984, then in 1994 from OCCL (Oxford and Cambridge Compilers Ltd) until 2004.

Key takeaways

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

Reference excerpt

The Interactive ALGOL 68 is a structured, imperative high-level computer programming language, a dialect of, and compiler for, ALGOL 68. It was made available by Peter Craven of Algol Applications in 1984, then in 1994 from OCCL (Oxford and Cambridge Compilers Ltd) until 2004.

Platforms Inmos Transputer family Linux for Intel x86 computers OS/2 version 2.0 and after SunOS-4.1.3 (Solaris 1) for SPARC-based computers Microsoft Windows 95 and Windows NT for Intel

Extensions to standard ALGOL 68 Ability to include source code, and versions of source code. Nestable comments FORALL syntactic element for looping over arrays. ANYMODE a union of all MODEs known to the compiler, and hence dynamic typing. Enhanced coercions (casting) allowing stringer then "strong" coercions. Enstructuring automatically coerces a variable from type to struct(type) Conforming coerces UNION (THING, MOODS) to THING, but if that is not the current mood of the union, then a run-time error will be generated. Library interface to the native operating system and other libraries. The operator SIZE Pseudo-operators ANDTH and OREL, and ANF and ORF for Short-circuit evaluation of Boolean expressions. Arrays can be slices with stride to select a subset of elements. MOID is treated differently.

Example of code MODULE vectors BEGIN INT dim=3; MODE VECTOR = [dim]REAL; OP + = (VECTOR a, b) VECTOR: ( VECTOR out; FOR i FROM LWB a TO UPB a DO out:=a[i]+b[i] OD; out ), - = (VECTOR a, b) VECTOR: ( VECTOR out; FOR i FROM LWB a TO UPB a DO out:=a[i]-b[i] OD; out ), DOT = (VECTOR a, b) REAL: ( REAL out:=0; FOR i FROM LWB a TO UPB a DO out+:=a[i]*b[i] OD; out ); END KEEP VECTOR, +, -, DOT

Restrictions to the language from the standard ALGOL 68 Variable, Modes and Operators must be declared before use. Anonymous procedure may use rows-declarer as a parameter. No transient subnames of flexible arrays. No formatted Transput (or format-texts). Restricted use of straightening of multiple values during Transput. Limited use of BYTES, BITS and BOOL. restricted use of labels to follow EXIT statements.

References

External links "Interactive Algol 68" as an introduction to structured programming for students; December 1984 Archived OCCL Home page OCCL ALGOL 68 white-paper

Worked examples

Example 1 — a first encounter with Interactive ALGOL 68

Start with the simplest possible case. Write down what Interactive ALGOL 68 claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In 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 Interactive ALGOL 68 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 Interactive ALGOL 68 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 Interactive ALGOL 68

In research
Interactive ALGOL 68 appears in 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 Interactive ALGOL 68 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
Interactive ALGOL 68 is common in secondary-school and first-year university syllabi. It links to neighbouring topics ALGOL 68 implementation, so understanding it makes those chapters shorter.
In everyday life
Look for Interactive ALGOL 68 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 “Interactive ALGOL 68” →

How to study Interactive ALGOL 68 in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Interactive ALGOL 68 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 Interactive ALGOL 68 out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Interactive ALGOL 68 in simple terms?

The Interactive ALGOL 68 is a structured, imperative high-level computer programming language, a dialect of, and compiler for, ALGOL 68. It was made available by Peter Craven of Algol Applications in 1984, then in 1994 from OCCL (Oxford and Cambridge Compilers Ltd) until 2004.

Why does Interactive ALGOL 68 matter?

Because it connects several 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 Interactive ALGOL 68?

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 Interactive ALGOL 68.

Tags

  • ALGOL 68 implementation

Keep exploring