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-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newspeer.monmouth.com!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: C++0x and Threads - a poor relation to Ada's tasking model? Date: Wed, 12 Aug 2009 16:41:33 -0400 Organization: The World Public Access UNIX, Brookline, MA 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: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1250109693 29912 192.74.137.71 (12 Aug 2009 20:41:33 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 12 Aug 2009 20:41:33 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:6bm9mpN/fNizgzypS1VeGzxlKCE= Xref: g2news2.google.com comp.lang.ada:7704 Date: 2009-08-12T16:41:33-04:00 List-Id: REH writes: >...The C++ philosophy is "if you don't need it, you don't pay for > it." Ada has the same philosophy. >... For example, you don't take a (potential) performance hit for > exceptions or range-checking, unless you explicitly use them. The philosophy has nothing to do with "explicitly". And I don't understand why you said "potential". If you leave out those two words, as in "you don't take a performance hit for exceptions or range-checking, unless you use them," then I would agree with you 100%. The point is, if you use some feature X, you should not have to pay the cost of feature Y that you do not use, just because feature Y exists, and might have some interaction with feature X in some other program that DOES use Y with X. C++ and Ada both share this philosophy. It's called "avoid distributed overhead". - Bob