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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b99897135d6631cc X-Google-Attributes: gid103376,public Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nnx.oleane.net!oleane!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: memory management and productivity Date: 24 Jun 2004 21:30:01 -0400 Organization: Cuivre, Argent, Or Message-ID: References: <40d15023$1_1@baen1673807.greenlnk.net> <40d69121$1_1@baen1673807.greenlnk.net> <1088086179.73158@master.nyc.kbcfp.com> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1088127021 31443 212.85.156.195 (25 Jun 2004 01:30:21 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Fri, 25 Jun 2004 01:30:21 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: In-Reply-To: <1088086179.73158@master.nyc.kbcfp.com> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:1872 Date: 2004-06-24T21:30:01-04:00 Hyman Rosen writes: > Stephen Leake wrote: > > I prefer to manage memory according to the needs of my algorithms and > > applications, rather than letting some unknown algorithm attempt to do > > it for me. > > I prefer to manage registers according to the needs of my algorithms and > applications, rather than letting some unknown algorithm attempt to do it > for me. That's why I'll never use FORTRAN! Well, I see the analogy, but I don't think it's a good one. The advantages of letting an optimizing compiler schedule register usage are well proven. The disadvantages of typical garbage collectors are also well proven. The use of specific memory management schemes for specific application requirements are also well proven. For register scheduling, there are general techniques that produce nearly universally good results. I don't think the same can be said of memory management/garbage collection. On the other hand, I mostly do hard realtime, with little need for dynamic memory management, so I'm not in the best position to judge. -- -- Stephe