Stories
Slash Boxes
Comments

SoylentNews is people

posted by Fnord666 on Saturday May 16 2020, @02:39AM   Printer-friendly
from the near-the-root-of-the-programming-language-tree dept.

ALGOL 60 at 60: The Greatest Computer Language You've (Probably) Never Used:

2020 marks 60 years since ALGOL 60 laid the groundwork for a multitude of computer languages.

The Register spoke to The National Museum of Computing's Peter Onion and Andrew Herbert to learn a bit more about the good old days of punch tapes.

ALGOL 60 was the successor to ALGOL 58, which debuted in 1958. ALGOL 58 had introduced the concept of code blocks (replete with begin and end delimiting pairs), but ALGOL 60 took these starting points of structured programming and ran with them, giving rise to familiar faces such as Pascal and C, as well as the likes of B and Simula.

"In the 1950s most code was originally written in machine code or assembly code," said Herbert, former director of Microsoft Research in Cambridge, with every computer having its own particular twist on things.

[..] "Fortran," said Herbert, "emerged as the first real programming language for scientific and numeric work. That convinced people that having higher-level languages (as they called them then – they were pretty primitive by modern standards) made programmers more productive."

[...] "And a bunch of people thought you could do better."

[...] One group started on the design of what was then called an "Algorithmic Language": a language for writing algorithms. The output, in 1958, described the language "ALGOL 58". However, as engineers began to create compilers for the new system, they found "all kinds of things hadn't really been thought about or worked through properly," recalled Herbert.

[...] Eventually, Herbert told us, "they published the ALGOL 60 report, which is the baseline that everyone then worked to."

[...] "People were sorting out some of the things that we now take for granted like ideas in structured programming, data structures, data types," he added.

[...] Alas, those seeking a handy-dandy "HELLO WORLD" example will be disappointed. The Achilles' heel of the language that would go on to inspire so many others was that it lacked standard input/output capabilities.

[...] Oh dear. The omission pretty much did for vendor independence as manufacturers naturally went their own way, leaving large chunks of code incompatible between systems. There were also elements of ALGOL 60 that were open to interpretation, leaving it a little compromised from the start.

While ALGOL ploughed its furrow, Fortran continued to be developed in parallel. "People in the Fortran world," explained Herbert, "saw ideas in ALGOL they quite liked and brought them across." As the decades passed, Fortran remained the centre of gravity for scientific computing while ALGOL became more of an academic language, used for teaching computer science ideas.

[...] The story of ALGOL 60 is not so much of the language's eventual fate, but also of those that it inspired. ALGOL W, based on a proposal for ALGOL X, by Niklaus Wirth and QuickSort creator Tony Hoare would go on to inspire Wirth's Pascal and Modula-2. Pascal's influence continues to be felt today.

ALGOL 60 also heavily influenced the Combined Programming Language (CPL), developed in the 1960s but not implemented until the following decade. CPL in turn led to Basic CPL (BCPL), from which B descended. The B language was further developed to become C.

[...] As for taking the ALGOL 60 itself out for a spin today, there are a few options for those not fortunate enough to have an Elliott 803 or 903 to hand. MARST will translate ALGOL 60 to C or one can get a feel for the whole 803 experience via a simulator.

This humble scribe did not have occasion to use ALGOL, but did spent the better part of two years programming PASCAL professionally. At a time when it seemed all other languages had a limited — and finite — set of data types, PASCAL was different. It encouraged the creation of whatever data types and data structures that best matched the task at a hand.


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 5, Interesting) by HiThere on Saturday May 16 2020, @03:41AM (5 children)

    by HiThere (866) Subscriber Badge on Saturday May 16 2020, @03:41AM (#994868) Journal

    Algol was the ancestor of a huge number of modern languages, and it was the first language I used that had as a feature that I/O must be done via a library, it wasn't part of the language. IIRC, it got something about the scope wrong in nested scopes that I was always needing to work around. One of my classes used Algol rather than Fortran. It was a very interesting language, and had lots of nice features...but it didn't work well with an IBM 026 keypunch. Perhaps if we'd had an 029... Partially it was the same problem APL had later, only less extreme. The implementation we used compiled to a reverse polish assembler code for a pseudo machine. We called it an interpreter, but it was really compiled in the same sense that Python is. This made debugging interesting, as we often needed to get down to that level to figure out what was happening. Later I did the same things with Fortran (only to actual op codes, of course), and that was a lot less interesting. I was glad when we stopped needing to do that.

    I don't think I ever found a bug in the Algol compiler. I found one once in the Fortran compiler, where 0 (the literal number) was being treated as a variable, so when I made a typo and accidentally set it to something, there were problems that seemed totally unrelated to the real problem.

    --
    Javascript is what you use to allow unknown third parties to run software you have no idea about on your computer.
    Starting Score:    1  point
    Moderation   +3  
       Interesting=3, Total=3
    Extra 'Interesting' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   5  
  • (Score: 2) by maxwell demon on Saturday May 16 2020, @08:21AM (4 children)

    by maxwell demon (1608) on Saturday May 16 2020, @08:21AM (#994921) Journal

    I guess you passed the literal 0 to a function argument that the function modified. In that case, it wasn't a bug in the compiler, but you invoking undefined behaviour.

    --
    The Tao of math: The numbers you can count are not the real numbers.
    • (Score: 1, Informative) by Anonymous Coward on Saturday May 16 2020, @01:06PM

      by Anonymous Coward on Saturday May 16 2020, @01:06PM (#994970)

      I guess you're an idiot that doesn't know that was a famous bug with FORTRAN compilers.

    • (Score: 0) by Anonymous Coward on Saturday May 16 2020, @04:02PM

      by Anonymous Coward on Saturday May 16 2020, @04:02PM (#995020)

      Sometimes you can blame users for doing stupid things, but other times (such as in this one) allowing the user to do something SO stupid is where the blame lies.

    • (Score: 2) by HiThere on Saturday May 16 2020, @04:11PM (1 child)

      by HiThere (866) Subscriber Badge on Saturday May 16 2020, @04:11PM (#995023) Journal

      Nope. The typo was in a do loop header. I never did figure out how the compiler made any sense out of it, but it parsed something like "DO 0 = 1 20" as an assignment to 0. That was a seriously garbled sentence that should have read something like "DO 10 I = 1, 20", and it should have been flagged as an error. Instead, however, it assigned 0 the value of 120. Or possibly 1, I forget the details. The alternate FORTRAN compiler caught the problem.

      --
      Javascript is what you use to allow unknown third parties to run software you have no idea about on your computer.