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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,df854b5838c3e14 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,df854b5838c3e14 X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,df854b5838c3e14 X-Google-Attributes: gid1014db,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: C/C++ knocks the crap out of Ada Date: 1996/02/21 Message-ID: #1/1 X-Deja-AN: 140391950 references: <00001a73+00002504@msn.com> <4etcmm$lpd@nova.dimensional.com> <312515DF.7D3B@cmlj.demon.co.uk> <4gad29$ddp@druid.borland.com> <4gb4r3$psg@qualcomm.com> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++ Date: 1996-02-21T00:00:00+00:00 List-Id: Ketil asks "I'm certainly not qualified to parttake in this fla^H^H^Hheated debate about Ada vs. C++ -- however, I believe Booch (in "Object oriented analysis and design") cites an example program that shrunk 90% when recoded into C++ from Ada. Question is, is this typical? And if so, is it easier to read/maintain 100K lines of Ada than 10K lines C++?" It's easy to get confused in this debate (even for the qualified :-) but you are suffering from overloading confusion. The language we discuss these days is Ada 95. When you see Ada with no further qualification in this newsgroup, you have to scratch your head and figure out if the author means Ada 83 or Ada 95, and if this is not clear ask! In this case, Booch is comparing Ada 83 to C++, and the reduction in size comes from two sources. First, the rewriting itself cleaned things up, the original Ada 83 could definitely be reduced in size. Secondly, and more importantly, the C++ version uses type extension and inheritance. These features were not available in Ada 83, but are now available in Ada 95. At NYU, as part of the IAT work, we looked at the Booch components in both Ada 83 and C++, and concluded that a full implementation of these components in Ada 95 would be about the same size as the implementation in C++, while retaining the usual advantages of Ada 95 (greater safety and improved readability). It will help in this newsgroup if everyone makes sure to say Ada 83 when they mean Ada 83!