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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac41,9a0ff0bffdf63657 X-Google-Attributes: gidfac41,public X-Google-Thread: 103376,a498aa1404ef5d87 X-Google-Attributes: gid103376,public X-Google-Thread: f43e6,9a0ff0bffdf63657 X-Google-Attributes: gidf43e6,public X-Google-Thread: 1108a1,9a0ff0bffdf63657 X-Google-Attributes: gid1108a1,public From: eachus@spectre.mitre.org (Robert I. Eachus) Subject: Re: Why C++ is successful Date: 1998/08/10 Message-ID: #1/1 X-Deja-AN: 379839629 References: <35AE4621.2EBC7F6A@eiffel.com> <6p83vj$657$1@news.intellistor.com> <35B79E7D.6068DCDF@eiffel.com> <6pg7fg$qhi$1@news.interlog.com> <901533851.20058.0.nnrp-04.9e980ba3@news.demon.co.uk> <35be2a94.57352308@netnews.msn.com> <6plvgl$eaf$1@news-1.news.gte.net> <35bebe5f.95187031@netnews.msn.com> <6pn9af$hqd$1@uuneo.neosoft.com> <35BF49E8.136D75C2@earthling.net> <35C371D1.2E42A046@earthlink.net> <35C3FAFD.DDA89121@earthlink.net> <1dd4w22.16p27c7en0bswN@dialup119-1-10.swipnet.se> Organization: The Mitre Corp., Bedford, MA. Newsgroups: comp.lang.eiffel,comp.object,comp.software-eng,comp.lang.ada Date: 1998-08-10T00:00:00+00:00 List-Id: In article <1dd4w22.16p27c7en0bswN@dialup119-1-10.swipnet.se> lars.farm@ite.mh.se (Lars Farm) writes: > Are you saying tht GC would introduce a larger risk for incorrect > programs than exceptions? If so, why? When I write software in Ada that requires storage management, part of the testing is that 1) all storage that is allocated is later freed, and 2) it is possible to characterize a limit on maximum memory usage in terms of user understandable parameters. The amount of effort to do this is relatively trivial, or has been every time I have had to consider the issue. Occaisonally I have found "errors" in the form of unrecoverd memory, and that always resulted from an obscure bug such as simultaneous updates where one process violated locking conventions. (In Ada 83, in Ada 95 protected objects seem to have eliminated that type of bug...) If garbage collection was implemented, checking heap usage before and after the program was run would be useless. -- Robert I. Eachus with Standard_Disclaimer; use Standard_Disclaimer; function Message (Text: in Clever_Ideas) return Better_Ideas is...