comp.lang.ada
 help / color / mirror / Atom feed
From: haven.umd.edu!uvaarpa!software.org!smithd@purdue.edu  (Doug Smith)
Subject: Re: c++ vs ada results
Date: 14 Aug 91 18:25:54 GMT	[thread overview]
Message-ID: <1991Aug14.182554.16576@software.org> (raw)

In article <1991Aug14.050358.19787@beaver.cs.washington.edu> mfeldman@june.cs.w
ashington.edu (Mike Feldman) writes:
> In article <1991Aug13.142900.28910@slcs.slb.com> cornish@slcs.slb.com (Darryl
 Cornish) writes:
> >
> >Grady Booch converted the Booch Ada Component Library from ADA to C++.
> >The result was thaty 150,000 lines of ADA became 20,000 lines of C++. 
> >
> 
> Also I wonder if coding style made any difference. Perhaps Booch adopted a
> more concise style in the C++ version. I have not seen the C++ version.
> Booch's Ada components are, IMHO, rather excessively verbose, especially
> as to extra-long names, which of course make the total LOC higher.
> 
> I don't want to get into language wars here, just to be certain we are
> comparing the versions on a level playing field. Assuming that there were 
> inherent aspects of C++ that allowed more concise coding - and not just a
> different lexical convention, for example - then it would be interesting
> to know what these aspects were. Maybe Grady will respond himself?
> 
> Mike

There are several ways that the Booch Components use generics that
create an excessive amount of code.  As an early attempt to use generics
for a library of reusable code, they have stood up very well.  But
as an example of what can be accomplished with generics, they are
slightly dated.

As relates to this thread, there is excessive duplication of code to
handle the same algorithms.  For example, several of the generics that
use linked list implement traversing, constructing, etc. similarly.

It is possible to take an algorithmic approach to building these
utilities.  This creates a smaller library of generics that provide the
same capabilities.  If my memory serves, a conservative estimate was a
reduction from 1000+ to about 150 generic packages.  I would also
predict an increase in the number of utilities that could be constructed
from the 150 generics.

Although I did not attempt to convert the Booch library to an
algorithmic approach, I did build a memory management library which
consisted of 8 packages (2 + 3 + 3) that could construct 18 (2 * 3 * 3)
utilities.  They were used on a project and worked fine.

             reply	other threads:[~1991-08-14 18:25 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-08-14 18:25 Doug Smith [this message]
  -- strict thread matches above, loose matches on Subject: below --
1991-08-30  7:24 c++ vs ada results Ma ts Henricson
1991-08-29 16:54 David Emery
1991-08-16 17:56 Doug Smith
1991-08-15 15:40 Andy Davidson
1991-08-15 13:30 Paul Baker - CTA
1991-08-14 20:15 Jim Showalter
1991-08-14 19:15 Doug Smith
1991-08-14 18:40 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!utgpu!
1991-08-14 14:41 Fred Stluka
1991-08-14  5:03 Mike Feldman
1991-08-13 22:08 David Emery
1991-08-13 14:29 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!qt.cs.utexas.edu!cs.utexas.e
1991-07-01  5:15 Andrew Dunstan
1991-06-27 18:24 Ray Diederich, 301-294-8400
1991-06-27 12:34 Chuck Shotton
     [not found] <164741@<1991Jun12>
1991-06-20 17:58 ` ryer
1991-06-24 14:44 ` ryer
1991-06-20 16:24 Chuck Shotton
1991-06-22  3:24 ` Thomas M. Breuel
1991-06-12 16:47 alan dare
1991-06-12 19:15 ` Paul Martz
1991-06-12 20:17 ` Jim Showalter
1991-06-13 20:49   ` Paul Kohlmiller
1991-06-13 23:12     ` Bruce Jones
1991-06-16  2:48   ` Russ Nelson
1991-06-16  4:10   ` Sean Eric Fagan
1991-06-18  4:17     ` Jim Showalter
1991-06-18  8:33       ` Sean Eric Fagan
1991-06-18 21:53         ` Jim Showalter
1991-06-18 12:28       ` Mats Henricson
1991-06-18 22:06         ` Jim Showalter
1991-06-19 15:07           ` Dan Weinreb
1991-06-19 17:00           ` Doug Smith
1991-06-20 14:08             ` Steve Juneau
1991-06-20 19:56               ` Robert I. Eachus
1991-06-21 17:27                 ` David M Geary
1991-06-20 22:09               ` Paul Stachour
1991-06-21 17:03                 ` David M Geary
1991-06-23  3:14                   ` Jim Showalter
1991-06-26 22:13                 ` Dan Weinreb
1991-06-21 22:01               ` Jim Showalter
1991-06-19 18:36           ` Jim Showalter
1991-06-19 15:01         ` Dan Weinreb
1991-06-24  2:29         ` Andrew Dunstan
1991-06-24 10:06           ` David Emery
1991-06-24 13:16           ` Mats Henricson
1991-06-25  4:29           ` Tom McClory
1991-06-26  0:35             ` Jim Showalter
1991-06-26  1:26             ` Andrew Dunstan
1991-06-26 22:47               ` Jim Showalter
1991-06-27 15:47                 ` Alex Blakemore
1991-06-27 23:58                   ` Jim Showalter
1991-06-25 19:27           ` Jim Showalter
1991-06-23 23:59       ` CBW Consulting
1991-06-24 20:11         ` Jim Showalter
1991-06-12 21:27 ` Dan L. Pierson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox