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 X-Google-Thread: 103376,7d14d8f47ca035bf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-12 22:22:02 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!skynet.be!dispose.news.demon.net!news.demon.co.uk!demon!pogner.demon.co.uk!zap!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada Generic vs. C++ Templates Date: 10 Apr 2001 08:03:03 +0100 Organization: CodeFella Message-ID: References: <9afpi0$irv$1@news.huji.ac.il> NNTP-Posting-Host: localhost X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 X-Trace: news.demon.co.uk 987139189 nnrp-12:20031 NO-IDENT pogner.demon.co.uk:158.152.70.98 X-Complaints-To: abuse@demon.net NNTP-Posting-Date: 10 Apr 2001 07:03:03 GMT X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: supernews.google.com comp.lang.ada:6850 Date: 2001-04-10T07:03:03+00:00 List-Id: Colin_Paul_Gloster@ACM.org (Colin Paul Gloster) writes: > Generics are used in The Booch Components (original Ada 83 version and > subsequent Ada 95 port). Pre-Ada 95 it was written on page 192 of "The > Design and Evolution of C++" [1] by Bjarne Stroustrup: > "[..Grady Booch implemented the Ada [83] version of The Booch Components > and he and Mike Vilot later implemented the C++ [of the time] version of > The Booch Components. The Ada [83] version] is 125,000 [since you > probably speak German I point out that 125,000 in English is equal to one > hundred and twentyfive thousand (big); not one hundrend and twentyfive > (small)] non-commented source lines compared to the C++ version's 10,000 > [10000 not 10] lines - inheritance combined with templates can be a very > powerful mechanism for organising libraries without loss of performance > or clarity", referencing the second edition of "Object-oriented Analysis > and Design with Applications" by Grady Booch. The C++ BCs I was given a copy of when I started maintaining the Ada95 port have 29_000 non-comment source lines. The Ada95 port has 13_000 non-comment source lines. The Ada port is incomplete; few of the Components have the synchronized forms as yet (I'm puzzled by what to do about iterators & synchronized forms, though the C++ version seems to punt on this too), and there are no released Tools as yet (working on a Quick and Shell sort). Of course there's no need for a port of the String classes to Ada.