5 ms·
>Ada can be difficult to approach due to using a different vernacular to most other languages, I guess people dont learn Pascal anymore. I still remember Turbo
by ksec 5y ago
>Ada can be difficult to approach due to using a different vernacular to most other languages,
I guess people dont learn Pascal anymore. I still remember Turbo Pascal was what brought me into programming. It took me a very very long time to get used to C style programming.
- gordaco 5y agoIt's a real pity. They are awesome beginner languages, and even when you are not a beginner any more, they go a long way. I also like their syntax a lot. I haven't touched Ada in like 20 years and now that it seems to be having a small resurgence it looks like a good time to relearn it. It has potential to become one of my favourite languages.
- WalterBright 5y agoI went from Pascal directly to C. Had no issues. It was a relief not to have to do BEGIN END anymore :-) Never wrote another line of Pascal.
- sgt 5y agohttps://www.freepascal.org https://www.freepascal.org Spend your weekends coding Pascal.
- MaxBarraclough 5y agoI'm generally sympathetic to Ada and its design decisions, as compared against C, but on this point I agree. C's braces syntax is at least as readable. If anything I'd say it's more readable as there's an immediately obvious visual symmetry between the two brace symbols. I also prefer the C++/modern C approach to declarations, where local variable declarations can be freely intermixed with other statements. Ada uses a noisier declare/begin/end syntax. [0][1] [0] https://stackoverflow.com/a/59192530/ https://stackoverflow.com/a/59192530/ [1] https://www.radford.edu/~nokie/classes/320/declareblocks.html https://www.radford.edu/~nokie/classes/320/declareblocks.htm...
- timbit42 5y agoNot me. I took typing in high school and pressing Shift and stretching fingers to get braces is much harder on my hands then typing a few extra unshifted letters.
- melony 5y agoI don't think it's about the Pascal syntax. Nobody complains about using Lua, Ruby, Crystal, Elixir. Do...end blocks are perfectly fine syntax wise. Go is a Wirth lineage language too. The issue is tooling, languages like VHDL and Ada (to a lesser extent SQL too) have poor developer experiences and they never bothered to improve and add more syntactic sugar like C++ and Java.
- Agingcoder 5y agoNo, the language is constantly evolving (ada95, 2012,2020), and they do add syntax sugar and new features on a regular basis. You can submit language rfcs here: https://github.com/AdaCore/ada-spark-rfcs https://github.com/AdaCore/ada-spark-rfcs For an example of the latest additions : https://blog.adacore.com/ada-202x-support-in-gnat https://blog.adacore.com/ada-202x-support-in-gnat As to the developer experience, I find the tooling to be quite satisfactory (IDE, build system, memory/stack analyzers, provers, etc) , the main pain point being the lack of a decent package manager (there is one now, but there are few packages). Edit: almost all the standard c/c++ tools work out of the box as well (profilers, debuggers, etc), so it's no different from c/c++ on this regard.
- WalterGR 5y agoalmost all the standard c/c++ tools By that do you mean the GNU ones, or…?
- Agingcoder 5y agoGnu, intel vtune, rr, pernosco, etc. Basically anything which works from a binary with dwarf symbols. The compiler is actually gcc.
- MaxBarraclough 5y agoIn the interest of completeness: GNAT is the most well-known Ada compiler and uses GCC as its backend, but there are at least 6 other commercial Ada compilers out there. [0] As far as I know, GNAT is the only one that uses GCC. [0] https://news.ycombinator.com/item?id=27603292 https://news.ycombinator.com/item?id=27603292
- agumonkey 5y agoThe thing that tripped me up the most in Ada was the single quote syntax. Character'Val I literally failed an exam because I couldn't locate the right function in the online manual for 2 hours. And I'm pretty liberal .. I like lisp, forth and APL but still to this day, it trips me up.
- pyjarrett 5y agoAttributes tripped me up as well, which is why I talked about them in the presentation. The language server provides completions for them, which helps significantly.
- a2800276 5y agoI find this somewhat amusing as Ada occupies the same space that Rust is in. At first glance I find Ada vastly more approachable than Rust, which to me feels like line-noise language/Perl. Or even C++ tbh. But I can relate that Ada feels like you should be writing it one a flickering green terminal in ALL CAPS and debugged with a daisy wheel printer.
- zozbot234 5y ago> But I can relate that Ada feels like you should be writing it one a flickering green terminal in ALL CAPS and debugged with a daisy wheel printer. In a way, the reason for such a limited character set and clunky syntax (including, e.g. case insensitivity) was precisely to maintain backward compatibility with those earlier machines.
- pjmlp 5y agoOr a Ada Machine, that is how Rational was founded. https://en.wikipedia.org/wiki/Rational_R1000 https://en.wikipedia.org/wiki/Rational_R1000 http://datamuseum.dk/wiki/Rational/R1000s400 http://datamuseum.dk/wiki/Rational/R1000s400 Think Lisp Machine experience, with Ada instead.
- anta40 5y agoI learn Turbo Pascal before Turbo C (about 2 decades ago, in high school). Both used the same procedural programming approach. It was a really easy switch. Trying to learn Haskell after C++, on the other side, was difficult for me.
- uticus 5y agoThis always sends me to HyperPolyglot* for a syntax comparison. * https://hyperpolyglot.org/pascal https://hyperpolyglot.org/pascal