comp.lang.ada
 help / color / mirror / Atom feed
From: eachus@spectre.mitre.org (Robert I. Eachus)
Subject: Re: Ada ad in Embedded Systems Programming stinks
Date: 8 Sep 94 09:52:16
Date: 1994-09-08T09:52:16+00:00	[thread overview]
Message-ID: <EACHUS.94Sep8095216@spectre.mitre.org> (raw)
In-Reply-To: dag@control.lth.se's message of 08 Sep 1994 07:04:46 GMT

In article <DAG.94Sep8090447@bellman.control.lth.se> dag@control.lth.se (Dag Bruck) writes:

 > I digress; I would instead point out that there are significant
 > differences between C and C++, and several postings on comp.lang.ada
 > do C++ unjustice by taking problems in C and transfering them to C++...

 > Finally a comment on the Ada/C/C++ "language wars:" I think the issue
 > is to use C++ instead of C, not to use C++ instead of Ada, at least
 > for the great majority of programmers.

   Hmmm...  I will reply, but mildly.  I have found several areas where C
is a better implementation language than Ada.  Since Ada is much
better at programming in the large, this generally leads to large Ada
applications with perhaps one or two percent of the unit bodies
written in C.  Of course when interfacing to large bodies of legacy C
code, these numbers go up.

   However, when I have tried to use C++, the only advantages over Ada
83 lie in areas where other Ada 83 features make Ada the better
choice.  (Yes doing OOP in Ada 83 is painful, but I never found a way
to use C++ OOP and encapsulate it.  So the entire program structure
must be in C++, and except on small projects, where the benefits of
OOP are not that great, I'd much rather use Ada for program structure.)
With Ada 9X now here, I get all of the advantages of C++ and none of
the drawbacks--even if I don't use tagged types.  (Generic package
parameters and generic derived type parameters are enough to make
static typed OOP work nicely.  And I much prefer to use static typing
when possible.  Of course, in Ada 9X, I have a choice...) 

   So even with C++ as a completely viable language choice, I never
choose it.  But I still sometimes use C.  (And wash my hands
afterwards. ;-) For that matter I still use APL and Lisp, and if I had
a good Algol W compiler for a modern processor, I might use that to.
(Why Algol W and not Pascal or Modula?  There are times when real call
by name and own variables are useful, but everything in Pascal and
Modula can be found in Ada.)

--

					Robert I. Eachus

with Standard_Disclaimer;
use  Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...



  reply	other threads:[~1994-09-08  9:52 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CvFI4J.D5M@world.std.com>
     [not found] ` <34ecqc$b5q@source.asset.com>
     [not found]   ` <34g5v3INN6q2@phage.cshl.org>
1994-09-06 13:46     ` Ada ad in Embedded Systems Programming stinks david.c.willett
     [not found]     ` <EACHUS.94Sep6094018@spectre.mitre.org>
1994-09-08  7:04       ` Dag Bruck
1994-09-08  9:52         ` Robert I. Eachus [this message]
1994-09-08 17:12           ` Dag Bruck
1994-09-08 17:28             ` Robert I. Eachus
1994-09-22  8:51         ` Brendan WALKER
1994-09-07 22:44   ` John Goodsen
1994-09-08  6:32     ` Keith Thompson @pulsar
     [not found] ` <1994Sep1.084046.21595@sei.cmu.edu>
     [not found]   ` <344u9q$di5@gnat.cs.nyu.edu>
     [not found]     ` <347idh$15ss@watnews1.watson.ibm.com>
     [not found]       ` <1994Sep4.092729.21408@lmpsbbs.comm.mot.com>
1994-09-07 22:46         ` John Goodsen
1994-09-08  6:47           ` Keith Thompson @pulsar
1994-09-08  8:52             ` David Emery
1994-09-11  3:41       ` Michael M. Bishop
1994-09-11 12:20         ` Robert Dewar
1994-09-11 13:29           ` Robert Dewar
1994-09-12 14:03             ` Norman H. Cohen
1994-09-11 21:48           ` Erik Naggum
1994-09-11 23:47             ` Robert Dewar
1994-09-12  6:28               ` Dag Bruck
1994-09-12 12:22                 ` David Weller
1994-09-12 20:03               ` Erik Naggum
1994-09-12 19:16             ` Maarten Landzaat
1994-09-13 10:10               ` Richard A. O'Keefe
1994-09-17 12:07                 ` Fred McCall
1994-09-12 20:49         ` Mitch Gart
1994-10-13 10:51 Bob Wells #402
replies disabled

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