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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,21960280f1d61e84 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!cleanfeed2-b.proxad.net!nnrp8-2.free.fr!not-for-mail Return-Path: From: "Randy Brukardt" To: Subject: RE: How come Ada isn't more popular? Date: Fri, 9 Feb 2007 12:47:32 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Importance: Normal X-Trash-Finder: Limited filtering for message, local (outbound) source X-Virus-Scanned: amavisd-new at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.9rc1 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.ada Message-ID: X-Leafnode-NNTP-Posting-Host: 88.191.17.134 Organization: Guest of ProXad - France NNTP-Posting-Date: 09 Feb 2007 19:50:03 MET NNTP-Posting-Host: 88.191.14.223 X-Trace: 1171047003 news-2.free.fr 1630 88.191.14.223:37839 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:9206 Date: 2007-02-09T19:50:03+01:00 > Maciej Sobczak writes: > > Still, there is a strong argument is that for some class of algorithms it > > might be beneficial to be able to "drop on the floor" a bigger part of the > > graph altogether. [...] Reclaiming that abandoned part might require > > implementing the same tracking logic that GC already provides out of the box > > and therefore the argument goes that the use of off-the-shelf GC can be > > beneficial for the memory-management aspect of such an algorithm. (Any > > thoughts on this?) > > My thoughts: not "might", but "definitely". Also, the advantage is not > restricted to some class of algorithms -- it is in fact the common case. YMMV, of course, but it's not my experience. It's rare to destroy only part of a data structure; it's usually the entire structure that needs to be discarded. > You don't need a complex mesh for this kind of advantage to kick in, even > regular tree cleanup is greatly simplified: just let go of the > subbranch you no longer need, and avoid that whole cleanup traversal. I'm primarily interested in destroying the entire structure, and often I need no destruction at all: the structures exist until the termination of the program. There's no point of earlier cleanup in such programs, and surely no point in non-zero overhead to support such cleanup. I'm not aware of any zero-overhead GC algorithm, because the basic tenet of GC is that you can find all reachable objects: doing that requires some time and/or space overhead. Randy.