comp.lang.ada
 help / color / mirror / Atom feed
From: emery@goldfinger.mitre.org (David Emery)
Subject: Re: Is DoD simulation ignoring using Ada?????
Date: 7 Dec 94 13:14:41
Date: 1994-12-07T13:14:41+00:00	[thread overview]
Message-ID: <EMERY.94Dec7131441@goldfinger.mitre.org> (raw)
In-Reply-To: Bob Crispen's message of Wed, 7 Dec 1994 10:42:35 CST

>Developing Ada bindings isn't rocket science; it's well within the
>capabilities of somebody with a year or two of Ada experience.

Oh, I beg to differ.  There's an art to doing bindings.  I've seen
(been victimized) by Ada bindings developed by junior people.  Right
now I'm trying to rework some bindings that fit that pattern.  The guy
did a nice job given his level of experience, but there are some
serious problems that affect both usage and implementation.

Part of the problem is developing/defining the binding so that it is
not tightly coupled to the specific execution environment/compiler.
It's easy to crank out a couple of 'pragma interface (C)', but very
painful to move such a binding to another compiler.  Another issue is
preventing storage leaks.  Of course, if the underlying C interface is
lousy, there's a limit to how well the Ada binding can hide warts and
flaws in the C interface.

The 'art' comes in knowing what/how/when/why to encapsulate.  After
all, Ada bindings should NOT resembe C header files (if they do,
there's no reason to do Ada.), and the art is in figuring out the best
way to identify and represent the underlying abstractions in Ada.  My
10 years of experience doing Ada bindings says that experience has
been the best teacher in this regard.  (How's that for
self-referential...)

But, with the right skills and expeience, a good engineer can crank
out a high-quality Ada binding in a (relatively) short amount of time.
And my experience has been that the cost of doing a high-quality Ada
binding is very quickly recovered by savings in debug time, etc.  Part
of the art of doing Ada bindings is to detect/prevent errors before
they get into C, and produce segmentation faults.  And, remember that
the number of users >> the nubmer of authors for Ada bindings (and
interfaces in general.)

So, Ada bindings are a good place for your best technical people, and
often a cost-effective project for consultants.  But don't use this as
a way to train junior people, or you'll suffer the consequences for
the life of the project.

				dave
--
--The preceeding opinions do not necessarily reflect the opinions of
--The MITRE Corporation or its sponsors. 
-- "A good plan violently executed -NOW- is better than a perfect plan
--  next week"                                      George Patton
-- "Any damn fool can write a plan.  It's the execution that gets you
--  all screwed up"                              James Hollingsworth
-------------------------------------------------------------------------



  reply	other threads:[~1994-12-07 13:14 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-12-07 16:42 Is DoD simulation ignoring using Ada????? Bob Crispen
1994-12-07 13:14 ` David Emery [this message]
  -- strict thread matches above, loose matches on Subject: below --
1994-12-09 22:29 Bob Munck
1994-12-09 16:16 Is DOD simulation ignoring using Ada??? Nick Sizemore
1994-12-13 20:41 ` Garlington KE
1994-12-08 16:20 Is DoD simulation ignoring using Ada????? Bob Crispen
1994-12-12 14:32 ` Garlington KE
1994-12-06 18:15 Bob Crispen
1994-12-06  4:28 Gregory Aharonian
1994-12-06 21:09 ` Doc Elliott
1994-12-07 21:06   ` David Weller
1994-12-06 23:12 ` Anthony Gargaro
1994-12-08 22:03   ` John Cosby
1994-12-07  7:37 ` Dag Bruck
1994-12-08 15:04   ` Harry Rockefeller
1994-12-07 22:50 ` Garlington KE
1994-12-09  3:07   ` Michael Feldman
1994-12-12 14:35     ` Garlington KE
1994-12-12 15:31       ` David Emery
1994-12-13 20:37         ` Garlington KE
replies disabled

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