From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,29850945228df59 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-17 10:00:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Boehm-Demers-Weiser conservative garbage collector and GNAT Date: 17 Jun 2003 12:52:52 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <1316747.mXveBPtf0Z@linux1.krischik.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1055868786 9992 128.183.235.92 (17 Jun 2003 16:53:06 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 17 Jun 2003 16:53:06 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Xref: archiver1.google.com comp.lang.ada:39349 Date: 2003-06-17T16:53:06+00:00 List-Id: Ludovic Brenta writes: > The paper concentrates on C and C++. While I agree that Ada > programmers tend to do less dynamic memory allocation than C/C++ > people, large programs will usually have to do some. Think about > containers. I'd be interested to know what your personal experience > is. I'd expect you spend less than 30% of your time but more than 0% > doing memory management. Of course, if you only ever allocate on the > stack and never on the heap (explicitly, that is), then you have no > need for a garbage collector since you don't create any garbage :) I wrote a container library that does all the memory management I need. I tested it thoroughly, and now I use it. So I had some initial investment, but now I spend 0% of my time "doing memory management". I believe that is the "Ada way". Hmm. Except when I'm forced to use someone else's code, that doesn't use my (or any) container library. Then I have to fix it. -- -- Stephe