comp.lang.ada
 help / color / mirror / Atom feed
From: Laurent Guerby <Laurent.Guerby@enst-bretagne.fr>
Subject: Re: The great Java showcase (re: 2nd historic mistake)
Date: 1997/08/29
Date: 1997-08-29T00:00:00+00:00	[thread overview]
Message-ID: <fxrabd1l2c.fsf@boole.enst-bretagne.fr> (raw)
In-Reply-To: EFn8CI.D9p@ecf.toronto.edu


doylep@ecf.toronto.edu (Patrick Doyle) writes:
> > [...]
>   That's a pretty cheap shot, Robert.  Plus, it's not necessarily
> true.  There are applications that just beg for automatic memory
> management, and if they happend upon one of these, they certainly
> could have seen such an improvement.
> 
>   For my part, I'd guess that at least 40 to 50% of my time is
> spent looking for memory allocation bugs in C++.
> [...]

   Ada has the ability to manipulate unconstrained objects (something
like returning dynamic sized objects/arrays) without requiring user
heap management. The greatly obviates the need for user
allocation/deallocation, you can write very large Ada programs without
doing fine grained heap management (and I agree with you, very error
prone unless you're some kind of programming deity ;-).

   When doing graph/tree stuff, you'll often see a big dynamically
allocated array behind the scene in Ada programs, reallocated when
there's not enough room, a good example of this is GNAT (see the
generic unit table in the sources).

   It is an area where language matters, by allowing stack (the Ada
compiler may use dymaic allocation behind your back, but I guess most
modern Ada technologies use a secondary stack) allocated complex
dynamic types (Ada case) or by providing garbage collection (Java).

   I've seen high level translation to Ada of C++ API, which
originately required the user to worry a lot about heap management
(conventions C1, C2, ... C6, that kind of stuff), giving an Ada
version without any heap management (discrimated types and
unconstrained arrays doing the job). Needless to say, bye bye the "40%
to 50% of the time" chasing heap problems ;-).


-- 
Laurent Guerby <guerby@gnat.com>, Team Ada.
   "Use the Source, Luke. The Source will be with you, always (GPL)."




  parent reply	other threads:[~1997-08-29  0:00 UTC|newest]

Thread overview: 112+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-08-25  0:00 The great Java showcase (re: 2nd historic mistake) Bertrand Meyer
1997-08-26  0:00 ` Flavius.Vespasianus
1997-08-26  0:00 ` BruceMount
1997-08-28  0:00   ` Brett J. Stonier
     [not found]     ` <JSA.97Aug28182029@alexandria.organon.com>
     [not found]       ` <3406C150.3EE5EE0E@stratasys.com>
1997-08-29  0:00         ` Jon S Anthony
1997-08-29  0:00           ` Jay Martin
1997-08-29  0:00             ` Jon S Anthony
1997-09-02  0:00             ` W. Wesley Groleau x4923
1997-09-15  0:00       ` Tim Ottinger
     [not found]   ` <5u0nil$atg@mulga.cs.mu.OZ.AU>
1997-08-28  0:00     ` not
1997-08-28  0:00     ` Richard A. O'Keefe
     [not found]       ` <5u3o1n$hu5@mulga.cs.mu.OZ.AU>
1997-08-28  0:00         ` Nick Leaton
1997-09-15  0:00       ` Tim Ottinger
1997-09-16  0:00         ` W. Wesley Groleau x4923
1997-08-27  0:00 ` James P. White
     [not found]   ` <34047A7D.62319AC4@eiffel.com>
1997-08-27  0:00     ` Bertrand Meyer
1997-08-27  0:00       ` Matthew S. Whiting
1997-08-28  0:00         ` Flavius.Vespasianus
1997-08-28  0:00       ` Mike Coffin
1997-08-29  0:00         ` Robert Dewar
1997-08-30  0:00           ` James P. White
1997-08-31  0:00           ` Jon S Anthony
1997-08-28  0:00       ` James P. White
1997-08-29  0:00       ` Dennis Weldy
1997-09-03  0:00         ` Charles Ditzel
1997-08-27  0:00   ` Robert Dewar
     [not found]   ` <01bcb38a$8ddc1200$1c10d30a@ntwneil>
1997-08-28  0:00     ` Robert Dewar
1997-08-29  0:00       ` Lee Webber
1997-08-28  0:00     ` James P. White
1997-08-28  0:00     ` Robert Dewar
1997-08-28  0:00       ` James P. White
     [not found]         ` <EFnKuI.4rI@ecf.toronto.edu>
1997-08-29  0:00           ` Memory management techniques -- was Re: The great Java showcase Jon S Anthony
1997-08-30  0:00         ` The great Java showcase (re: 2nd historic mistake) Bert Bril
1997-08-31  0:00           ` Jay Martin
1997-08-29  0:00       ` Mike Charlton
     [not found]         ` <N.19970829.uput@sisyphus.demon.co.uk>
1997-09-02  0:00           ` Mike Charlton
1997-09-03  0:00             ` Dave Sparks
     [not found]       ` <EFn8CI.D9p@ecf.toronto.edu>
1997-08-29  0:00         ` Robert Dewar
1997-08-30  0:00           ` Patrick Doyle
1997-08-31  0:00           ` Jon S Anthony
1997-09-01  0:00             ` Robert Dewar
1997-09-02  0:00               ` Jon S Anthony
1997-09-05  0:00                 ` Robert Dewar
1997-09-06  0:00                   ` Jon S Anthony
1997-08-29  0:00         ` Arthur Nelson
1997-08-29  0:00           ` Patrick Doyle
1997-09-01  0:00             ` Robert Dewar
1997-08-29  0:00         ` Laurent Guerby [this message]
     [not found]           ` <EFonoz.AFC@ecf.toronto.edu>
1997-08-29  0:00             ` Samuel Mize
1997-08-29  0:00         ` Peter Hermann
1997-08-29  0:00       ` Lee Webber
     [not found] ` <JSA.97Aug26153546@alexandria.organon.com>
     [not found]   ` <34034658.7DE14518@eiffel.com>
1997-08-27  0:00     ` Jon S Anthony
     [not found] ` <3402FD4D.C196785B@brightwood.com>
1997-08-27  0:00   ` Patrick Doyle
1997-08-28  0:00   ` Paul Johnson
1997-08-28  0:00     ` Brett J. Stonier
1997-08-28  0:00     ` Jeff Brown
1997-08-28  0:00     ` Robert Dewar
1997-08-29  0:00       ` Paul Johnson
     [not found] <5tvvsj$lh2$1@news2.digex.net>
1997-08-27  0:00 ` W. Wesley Groleau x4923
1997-08-27  0:00   ` W. Wesley Groleau x4923
1997-08-27  0:00 ` Jeff Brown
1997-08-28  0:00   ` Patrick Doyle
1997-08-28  0:00     ` Robert Dewar
1997-08-28  0:00 ` Brett J. Stonier
1997-08-28  0:00   ` Jon S Anthony
1997-08-29  0:00     ` James P. White
1997-08-29  0:00   ` Paul Johnson
1997-08-29  0:00     ` Brett J. Stonier
1997-08-29  0:00     ` Dennis Weldy
     [not found]     ` <5u6ovi$5kb$1@news2.digex.net>
1997-09-01  0:00       ` Paul Johnson
  -- strict thread matches above, loose matches on Subject: below --
1997-08-29  0:00 Ell
1997-08-29  0:00 ` Jon S Anthony
1997-08-29  0:00 ` Brett J. Stonier
1997-08-29  0:00 ` Robert Dewar
1997-08-29  0:00   ` Jay Martin
1997-08-30  0:00   ` Patrick Doyle
1997-08-30  0:00     ` Jay Martin
1997-08-30  0:00   ` Joachim Durchholz
1997-09-01  0:00   ` Paul Johnson
1997-09-01  0:00     ` Robert Dewar
1997-09-02  0:00       ` Veli-Pekka Nousiainen
1997-09-02  0:00       ` Matthew S. Whiting
1997-09-03  0:00         ` Robert Munck
1997-09-05  0:00         ` Robert Dewar
1997-09-02  0:00       ` Martin Tom Brown
1997-09-02  0:00       ` Jeff Kotula
1997-09-08  0:00       ` Richard A. O'Keefe
1997-09-13  0:00         ` Mark S. Hathaway
1997-09-16  0:00           ` Des  Kenny
1997-10-28  0:00           ` John English
1997-09-16  0:00         ` Des  Kenny
1997-09-16  0:00           ` Robert Dewar
1997-09-05  0:00     ` Darren New
1997-09-02  0:00   ` W. Wesley Groleau x4923
1997-09-05  0:00     ` Robert Dewar
1997-09-15  0:00   ` Tim Ottinger
1997-09-16  0:00     ` Joachim Durchholz
1997-09-18  0:00       ` Robert Dewar
1997-09-16  0:00     ` Robert Dewar
1997-08-29  0:00 Ell
1997-08-30  0:00 BruceMount
1997-09-04  0:00 Marin David Condic, 561.796.8997, M/S 731-96
     [not found] <97090916235363@psavax.pwfl.com>
1997-09-11  0:00 ` Robert Dewar
1997-09-15  0:00 Ell
1997-09-16  0:00 ` Tim Ottinger
1997-09-17  0:00 ` Doc
1997-09-17  0:00 Ell
1997-09-17  0:00 Ell
1997-09-17  0:00 Ell
1997-09-16  0:00 ` Mark Wilden
1997-09-17  0:00 ` Robert B. Love 
1997-09-17  0:00 ` Joachim Durchholz
replies disabled

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