News for hackers. Stuff that matters.
Re:Introduction to Ada by TedDallas on Wednesday September 02, 2020 @11:49PM (#24360647)
Nice documentation. Ada looks a lot like Pascal. It is interesting that SPARK is a subset of subset of Ada.
Re:Introduction to Ada by Lucretia9 on Thursday September 03, 2020 @03:41AM (#24361684)
It's Pascal inspired but certainly not any of Wirth's syntaxes, like 1/2 line if's, semi colons in weird places making blocks look odd. Ada has a more inclusive syntax, whereby "is" or "begin" and "end" encases what is inside it. Compare Modula's:

    MODULE X;
        ...
    END MODULE X.
and Ada's:

    package X is
       ...
    end X;
Ada's package feels like one statement containing others, whereby Modula's looks like it ends on the first line.
Re:Introduction to Ada by EdPF on Thursday September 03, 2020 @02:36PM (#24367220)
That difference may be due to ";" being considered a statement separator in Pascal, and a statement terminator in Ada. https://wiki.haskell.org/Terminator_vs._separator
Re:Introduction to Ada by mypalmike on Thursday September 03, 2020 @01:12PM (#24366214)
Yeah when I learned Ada in college it seemed like it was a better Pascal, including fixing the quirky inconsistent termination.
Re:Introduction to Ada by non-entity on Thursday September 03, 2020 @12:56AM (#24360909)
Pascal-like syntax seemed to have been popular around the time. Outside the Writh languages(Pascal, Modula, Oberon) and Ada, I was reading about CHILL[0] the other day, which is supposedly similar to Ada, but was rather domain specific. Sadly I don't think any modern, free implementations exist.

[0]https://en.m.wikipedia.org/wiki/CHILL

Re:Introduction to Ada by pjmlp on Thursday September 03, 2020 @01:06AM (#24360940)
Pascal is a simplification from ALGOL, so it is actually most ALGOL derived languages.

C description tends to refer to ALGOL influence, but it just boils down to structured programming and the data types. Syntax has nothing from ALGOL.

Re:Introduction to Ada by nsajko on Thursday September 03, 2020 @05:51AM (#24362392)
VHDL has a quite similar syntax, too.
Re:Introduction to Ada by sguav on Thursday September 03, 2020 @10:30AM (#24364424)
Indeed VHDL is supposedly based as much as possible on Ada syntax. Naturally you would have several differences due to the purpose of the languages, but they are _very_ similar IMO