News for hackers. Stuff that matters.
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by nl on Wednesday September 16, 2020 @01:22AM (#24489791)
I did Ada at Uni.

I think it's an ok language but its Pascal roots show. In an alternate universe where Pascal won instead of C (which it nearly did!) it might have ended up where C++ is.

Pascal being the choice for Systems programming instead of C nearly happened. One of the first things Ken Thompson and Bill Joy wrote for BSD was Pascal, and the Apple Lisa system was mostly written in Pascal.

Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by yjftsjthsd-h on Wednesday September 16, 2020 @01:29AM (#24489821)
Honestly, I wonder why Pascal doesn't dominate, too. Safer than C while still just as powerful, "teaching language" (easy to learn) but used for serious software (as you note, Apple used it for system programming). FPC is amazingly feature rich.
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by Gibbon1 on Wednesday September 16, 2020 @03:51AM (#24490474)
When Apple ported their code from the Lisa to the Macintosh they had to rewrite a lot of Pascal code in C and assembly to make it fit into the ROM's. There was also an issue 100% standard Pascal was useless for writing micro computer programs because it couldn't do any IO outside the console and files. C on the other hand through pointers and inline assembly allowed you to directly monkey with the hardware.

Thing also forgotten how many early PC programs were written in assembly.

Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by ncmncm on Wednesday September 16, 2020 @05:01PM (#24497847)
The Mac was programmed in Object Pascal and assembly. No C anywhere.

C compilers for the Mac came along later, and even Apple A/UX Unix System V with BSD extensions, and Gcc. A/UX ran pretty nicely in 8M on an SE/30 (512x342 mono CRT), with a MacOS 9 GUI emulator you could run xterms on.

Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by Gibbon1 on Wednesday September 16, 2020 @08:14PM (#24499675)
You are correct I mis-remembered.
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by pjmlp on Wednesday September 16, 2020 @03:17AM (#24490305)
Because Borland lost their way and Turbo Pascal/Delphi was the leading Pascal implementation, so eventually most Pascal lovers moved into Java/.NET.
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by bitwize on Wednesday September 16, 2020 @04:09AM (#24490573)
Kernighan wrote about the limitations of Pascal in "Why Pascal Is Not My Favorite Programming Language": https://www.lysator.liu.se/c/bwk-on-pascal.html

Note, however, that he wrote this in 1981; these days, when someone speaks of Pascal, they usually speak of a dialect based on Turbo or Object Pascal, which appeared in 1983 at the earliest and address many of Kernighan's concerns.

tl;dr the Pascal of the 1970s was a lot rougher than the Pascal you probably know.

Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by tralarpa on Wednesday September 16, 2020 @05:22AM (#24490947)
Especially the lack of separate compilation units was a weak point of the original Pascal, as also noted by Kernighan. This was fixed later in UCSD Pascal (1978) and of course by Wirth himself with Modula-2 (also 1978).

But that said, it's strange that Kernighan wrote the above article ("Why Pascal Is Not...") in 1981, i.e. three years after the introduction of UCSD Pascal and Modula-2.

Does anybody here know the background of that article? Why was Kernighan feeling the need to defend C against a 13-year old language which was already not in use anymore in its original form at the time the article was written? Was C under attack and risking to lose its popularity?

Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by badsectoracula on Wednesday September 16, 2020 @07:23AM (#24491515)
It should be noted that even when Kernighan wrote that, with the exception of the stylistic bits (e.g. where you put the semicolon), most of the issues he has didn't exist in the Pascal dialects that people used. His comments were about standard Pascal but few really confined themselves to standard Pascal - even the standard itself didn't do that, IIRC it explicitly mentions that implementations are going to extend it as that was an expectation at the time. In general Wirth's languages weren't meant to be taken as a gospel but as a base to expand from (even his own Oberon system slightly extends the language described by his Oberon language report).
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by non-entity on Wednesday September 16, 2020 @02:33AM (#24490104)
> "teaching language" (easy to learn)

I think that worked against it as well.

Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by EdPF on Wednesday September 16, 2020 @01:45PM (#24495152)
The thing I saw with Pascal in the late 70's / early 80's was that in order to handle industrial use cases, each computer company invented its own dialect (I worked on one at Burroughs).

That was one of the problems Ada addressed. But its initial problem was the cost of compilation and builds on the hardware of the time. That got sorted out by the end of the 80's, but then other factors like contractors not wanting their customer telling them how to do their work came into play. Sort of a confusion of requirements and implementation methods.

Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by KingOfCoders on Wednesday September 16, 2020 @03:11AM (#24490279)
I would prefer Modula-2 where I do like the module system.