comp.lang.ada
 help / color / mirror / Atom feed
From: cgreen@yosemite.atc.com (Christopher Green)
Subject: Re: Ada generics are bad
Date: 1998/04/10
Date: 1998-04-10T00:00:00+00:00	[thread overview]
Message-ID: <6gm6jc$fbp@newshub.atmnet.net> (raw)
In-Reply-To: Er3npt.4sK@array.ca


In article <Er3npt.4sK@array.ca>, Glenden Lee <glee@array.ca> wrote:
>Is it just our compiler or are all compilers this dumb... When a package 
>body that contains the body of generic units get changed, all other 
>packages that instantiate the generics must be recompiled as well.  This 
>is contrary to the claim that generics save compilation time as some 
>literature states...
>
>That's all... I just wanted to vent some frustration... and besides the 
>compiler is recompiling everything right now just because I did the above...
>
>G.
>-- 
>Glenden Lee
>Array Systems Computing
>1120 Finch Avenue West
>North York, Ontario

Some compilers (Apex is one) have an option for "function form" generics.
This allows the generic body to be compiled once and reused for each
instance of the generic.  Function form generics are often not quite as
efficient in code speed (because they can't be inlined), and there are
a few cases in which they can't be used at all.

With "function form" generics, updating and recompiling the generic body
does not obsolete units that instantiate it or depend on instantiations,
and it is possible to deliver libraries that include only object code
for such bodies (this is a key concern for developers of commercial Ada
software such as ourselves, who are wary of releasing more source code
than we absolutely have to).
-- 
Chris Green                                  Email cgreen@atc.com
Advanced Technology Center                   Phone (714) 583-9119
22982 Mill Creek Drive                                   ext. 220
Laguna Hills, CA 92653                       Fax   (714) 583-9213




  parent reply	other threads:[~1998-04-10  0:00 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-08  0:00 Ada generics are bad Glenden Lee
1998-04-08  0:00 ` Tucker Taft
1998-04-09  0:00 ` Anonymous
1998-04-10  0:00 ` Christopher Green [this message]
1998-04-10  0:00   ` Brian Rogoff
1998-04-11  0:00   ` Robert Dewar
1998-04-13  0:00     ` Christopher Green
1998-04-13  0:00       ` Matthew Heaney
1998-04-13  0:00         ` nabbasi
1998-04-13  0:00           ` future of proprietry source code (was: Ada generics are bad) Fergus Henderson
1998-04-14  0:00             ` David Masterson
1998-04-16  0:00               ` David Kastrup
1998-04-16  0:00                 ` David Masterson
1998-04-17  0:00                   ` David Kastrup
1998-04-17  0:00               ` campo
1998-04-16  0:00             ` Tim Smith
1998-04-17  0:00               ` Thomas Bushnell, n/BSG
1998-04-18  0:00                 ` Bill Gribble
1998-04-20  0:00                   ` Ole-Hjalmar Kristensen
1998-04-21  0:00             ` William Tanksley
1998-04-13  0:00         ` Ada generics are bad Christopher Green
1998-04-14  0:00         ` Robert Munck
1998-04-14  0:00           ` Matthew Heaney
1998-04-15  0:00           ` Jonathan Guthrie
1998-04-14  0:00         ` Al Christians
replies disabled

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