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: "Alejandro R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: C# new features (v.7) Date: Fri, 16 Dec 2016 13:43:25 +0100 Organization: A noiseless patient Spider Message-ID: References: <5f542dff-8dd0-49b8-8228-3ccc8248c57d@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 16 Dec 2016 12:42:01 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="d71f76fcedba93376d4ceed65785e3f5"; logging-data="24392"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+JkjQPaKDp9K+9QNdl3lw9" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 In-Reply-To: Cancel-Lock: sha1:jJgJJ94d2jNZH6WbhEWRkbMRVYw= Xref: news.eternal-september.org comp.lang.ada:32878 Date: 2016-12-16T13:43:25+01:00 List-Id: On 16/12/16 08:55, Hadrien Grasland wrote: > Le jeudi 15 décembre 2016 13:49:20 UTC+1, Alejandro R. Mosteo a écrit : >> On 14/12/16 20:28, Shark8 wrote: >>> On Wednesday, December 14, 2016 at 6:29:47 AM UTC-7, gautier...@hotmail.com wrote: >>>> I've come across a list of new features in the upcoming version of C#. >>>> Funnily, a good half are already in Ada - four of them actually already in Ada 1983 ! >>> >>> That's really interesting, and slightly funny, and slightly sad. >> >> It's very sad. I can't say how much I miss range-constrained numeric >> types in Java/C++. Another Ada'83-ism to be rediscovered. >> >> And tasking? Every time I see C++ people fumbling with low-level >> semaphores I want to cry. No language (that I know) comes even near Ada >> tasks + protected combo. No wonder multithreading is sold as some kind >> of miracle when some program uses it properly. > > To be fair, Ada has no equivalent to C++'s portable atomics either. C++ these days is mostly marketed as a low-level infrastructure to build performance-critical libraries in, whereas Ada is more designed like a high-level end-user solution, and these diverging design goals lead to different design choices. Yep, C++ is adding tons of useful thing to the standard libs after the 11/14 iterations. Actually, with the newest versions you can get rid of many bad practices, I'd say it's even very confy to write in. The heavy templating and crypotsyntax however still scare me the moment I have to check library code.