comp.lang.ada
 help / color / mirror / Atom feed
From: jls@netcom.COM (Jim Showalter)
Subject: Re: vs Ada - Don't forget the prime directive!
Date: 18 Jun 91 04:01:42 GMT	[thread overview]
Message-ID: <1991Jun18.040142.2616@netcom.COM> (raw)
In-Reply-To: 311@trwacs.UUCP

>As a performance engineer, I find Ada unattractive. If the
>conversion ratio for C is 5 MLI per source statement, then
>Fortran generally comes in at 6-7 MLI and Ada at 10-12.
>And these source statements are no more powerful than
>C statements; there's just a lot more bounds checking,
>and other overhead, going on.

Uh, bounds checking is not generally regarded as "overhead":
many people prefer to think of it as the sort of thing that
helps prevent your expensive satellite from spiraling slowly
into the sun. Claiming that C is faster than Ada because C
doesn't deign to check whether or not it is attempting to
execute data (having walked a pointer off into hyperspace
silently) is not a very compelling argument for its use. Besides,
I can quite easily eliminate such "overhead" from Ada if I
am determined to make it execute as dangerously as C--it's
just that in Ada I'm at least given the CHOICE.

As for the claim that the rest of the source statements are "no
more powerful than C statements", I beg to differ. Can you show
me the C statement equivalent of a task rendezvous, for example?

>The machine architecture is deliberately hidden from the
>coder,

Thereby aiding portability, reuse, and maintenance--among the
stated goals of Ada.

>These factors come together in code that
>will never be as efficient as the corresponding C code
>and that requires 10-20 times as many CPU cycles until
>tuned during integration and test. It's hard to overcome
>those handicaps.

Other than by, as you said one sentence earlier, tuning during
integration and test? Incidentally, I question your 10-20 X
figures. See other postings in this thread concerning the
relative speed of, for example, DEC Ada vs DEC C. The Ada
compilers keep speeding up, and in many cases I'm aware of
equal or exceed the speed of comparable C compilers. If your
data is more than a few years old, it is obsolete. If it
is current, I'd like more detail.
-- 
*** LIMITLESS SOFTWARE, Inc: Jim Showalter, jls@netcom.com, (408) 243-0630 ****
*Proven solutions to software problems. Consulting and training on all aspects*
*of software development. Management/process/methodology. Architecture/design/*
*reuse. Quality/productivity. Risk reduction. EFFECTIVE OO usage. Ada/C++.    *

  reply	other threads:[~1991-06-18  4:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-06-15 18:02 vs Ada - Don't forget the prime directive! Sam Harbaugh-AFES PROJECT
1991-06-17 12:21 ` Harry Erwin
1991-06-18  4:01   ` Jim Showalter [this message]
1991-06-19 11:57     ` Harry Erwin
1991-06-19 14:15       ` Michael Feldman
1991-06-19 18:26       ` Jim Showalter
1991-06-23  9:43         ` Adel Khalfallah
1991-06-19 21:02       ` Charles H. Sampson
1991-06-19 15:10   ` Alex Blakemore
1991-06-19 18:44     ` Jim Showalter
replies disabled

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