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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,4215feeab2a8154a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!aioe.org!not-for-mail From: John McCabe Newsgroups: comp.lang.ada Subject: Re: C++0x and Threads - a poor relation to Ada's tasking model? Date: Thu, 13 Aug 2009 14:55:26 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <7q2385104kihs87d79p8kfphuoki6r01vq@4ax.com> <7961a91c-a5af-40e2-bbc0-6bf69a98176d@z31g2000yqd.googlegroups.com> <362f621e-a01c-4772-ba02-4e18e9962188@j19g2000vbp.googlegroups.com> <128d63da-361f-4e33-be5e-e06bdc71e39f@r34g2000vba.googlegroups.com> NNTP-Posting-Host: RXEkuaSUwmKe0XIGFYSK7A.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.7.9 X-Newsreader: Forte Agent 2.0/32.652 Cancel-Lock: sha1:u8eet7dHIzTSsvc9oeJuNi68yCo= Xref: g2news2.google.com comp.lang.ada:7737 Date: 2009-08-13T14:55:26+01:00 List-Id: On Wed, 12 Aug 2009 10:21:36 -0700 (PDT), REH wrote: >On Aug 12, 12:59�pm, John McCabe >wrote: >> On Wed, 12 Aug 2009 08:56:34 -0700 (PDT), REH >> wrote: >> >> >> It seems to me that Ada's model started off with a clean slate and was >> >> designed from the ground up whereas with C++ it's always been a case >> >> of "how can we bolt this on". That's primarily what I was getting at. >> >If the Ada model suits your needs, use it. Why should C++ be >> >identical? It serves a different community. >> >> In what way? > >There is less concern with (compiler-provided) safety, and more with >speed. The C++ philosophy is "if you don't need it, you don't pay for >it." For example, you don't take a (potential) performance hit for >exceptions or range-checking, unless you explicitly use them. The C++ >committee would rather (I surmise) define an interface that maps >easily to existing systems as a light wrapper, than one that is harder >to implement but much safer. I don't think one way is better than the >other. It depends on your needs. I use both languages extensive where >I work. Having followed this train of messages further, I still don't see that you have justified the comment about C++ serving a different community to Ada. As I see it, the community is the same (they're both basically general purpose OO programming languages), it's just a viewpoint that's different. In a lot of ways what you have argued is that the perception of C++ as a faster language leads to its choice in some situations. In my view, many people use C++ because that's all they know and they don't want to learn anything different even when it may be superior in many ways. Of course C++ has some features that make it easier to use for certain applications, e.g. actual MI rather than the interface level MI available in Ada and Java, but there are loads of resources out there describing why that is dangerous. Anyhow - this wasn't meant to be a general C++ Vs Ada thread, so I'm going to stop there.