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: 103376,703c4f68db81387d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Teaching new tricks to an old dog (C++ -->Ada) Date: 13 Mar 2005 18:53:06 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <1110032222.447846.167060@g14g2000cwa.googlegroups.com> <871xau9nlh.fsf@insalien.org> <3SjWd.103128$Vf.3969241@news000.worldonline.dk> <87r7iu85lf.fsf@insalien.org> <1110284070.410136.205090@o13g2000cwo.googlegroups.com> <395uqaF5rhu2mU1@individual.net> <1110377260.350158.58730@z14g2000cwz.googlegroups.com> <422f0c08$1_1@baen1673807.greenlnk.net> <1110421853.766292@athnrd02> <4%PXd.358789$w62.304065@bgtnsc05-news.ops.worldnet.att.net> <1110429670.232319@athnrd02> <1110447646.716725@athnrd02> <4230212c$0$26538$9b4e6d93@newsread4.arcor-online.net> <1110451882.739920@athnrd02> <423037a9$0$26552$9b4e6d93@newsread4.arcor-online.net> <1110457103.995140@athnrd02> NNTP-Posting-Host: shell01-e.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1110757987 15449 69.38.147.31 (13 Mar 2005 23:53:07 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sun, 13 Mar 2005 23:53:07 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:9340 Date: 2005-03-13T18:53:06-05:00 List-Id: Marius Amado Alves writes: > >> Stepanov moved to C/C++ for career reasons and basically he > >> (consulting with Stroustrup) created C++ templates because he needed > >> generics in C++ to do there what he had done in Ada! (myself) > > > > Career reasons? I believe Stepanov is on record as stating that at > > least part of the reason for using C++ is that the STL can be > > programmed more efficiently in that language than in Ada. (R. Duff) > > I'd like to see that record. Well, I have a book called "STL Tutorial and Reference Guide", by David R. Musser and Atul Saini, which says on page xviii, after mentioning Stepanov's work in Ada, "Another reason for turning to C++, which Alex recognized early on, was that the C/C++ model of computation, which allows very flexible access to storage (via pointers) is crucial to achieving generality without losing efficiency." It's not a direct quote from Stepanov, but I have some vague recollection of Stepanov saying the same thing. Sorry, I have no cite. As I said, such "flexible access" is also possible in Ada, although it's somewhat more painful than in C++. - Bob