From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: New IEEE Language Popularity Ratings Date: Wed, 10 Aug 2016 00:13:10 -0700 Organization: A noiseless patient Spider Message-ID: <87y44514hl.fsf@jester.gateway.pace.com> References: <31c22983-150c-4dab-abba-588e15f75914@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="afb9df5a762ad8974cbd7e506bdf03a5"; logging-data="10496"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+y1Luo1fp+n6A8JUNmfKgp" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:uDAHwIBlHSPvpYp0jEjqLz9zHts= sha1:UHdrbr7oMgAMzfD7xPbmx2MYQA0= Xref: news.eternal-september.org comp.lang.ada:31346 Date: 2016-08-10T00:13:10-07:00 List-Id: Stu Hollander writes: > It's really quite the opposite. C is an unsafe language, C++ is unreadable, > error-prone and builds on C's worst attributes. Ada is readable, safe, and > maintainable and was designed (as opposed to C and C++!) from the beginning > to deal with large systems. Oh come on, C++ really is an improvement over C, and it was also designed to deal with large systems. Whether it does so successfully is of course debatable, but at least that was the intent. I've messed with Ada enough to be convinced it's better than C in just about every way, and I'd agree it's better at safety and critical systems than C++, but there are some types of coding that C++ does easily where I don't know if there's an Ada equivalent. RAII, the way the STL fits together, move semantics, etc. C++11 and later almost feel like in a scripting language. Using it for a while makes C seem unbearable. I'm nowhere near expert at C++ (I'm maybe intermediate level by now) but I'm quite comfortable with it and if there's a feature I don't understand, I can read about it online. Realtime and embedded stuff being a niche, Ada's most serious competitor is probably Java rather than C++. My buddy who told me about Ada worked on a huge Ada program that controlled a communications network back in the day, so it had high reliability requirements but wasn't realtime or close to the hardware. Today something like that would probably be written in Java, or anyway certainly not C. > As you said the tools are not there. That is enough to kick Ada out > the door no matter how good the language is. If C and C++ had no > libraries they'd also be unusable... C++ certainly loses a lot without the libraries. C is lower level and still has its attractions. I thought Ada had a good FFI anyway, so it should be possible to wrap the more useful C and C++ libraries for use by Ada programs. A lot of good Python and Haskell libraries come from basically doing that. Lately I've been looking at this C++ concurrency framework: http://www.seastar-project.org/ I'd be interested to know if could map reasonably to Ada.