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-Thread: 103376,21960280f1d61e84 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.net!prodigy.net!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!edtnps82.POSTED!023a3d7c!not-for-mail Sender: blaak@METROID Newsgroups: comp.lang.ada Subject: Re: in defense of GC (was Re: How come Ada isn't more popular?) References: <1169531612.200010.153120@38g2000cwa.googlegroups.com> <1mahvxskejxe1$.tx7bjdqyo2oj$.dlg@40tude.net> <2tfy9vgph3.fsf@hod.lan.m-e-leypold.de> <1g7m33bys8v4p.6p9cpsh3k031$.dlg@40tude.net> <14hm72xd3b0bq$.axktv523vay8$.dlg@40tude.net> <4zwt33xm4b.fsf@hod.lan.m-e-leypold.de> <1j7neot6h1udi$.14vp2aos6z9l8.dlg@40tude.net> <1pzx3y7d2pide.y744copm0ejb$.dlg@40tude.net> From: Ray Blaak Organization: The Transcend Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 02 Feb 2007 18:15:05 GMT NNTP-Posting-Host: 208.66.252.228 X-Trace: edtnps82 1170440105 208.66.252.228 (Fri, 02 Feb 2007 11:15:05 MST) NNTP-Posting-Date: Fri, 02 Feb 2007 11:15:05 MST Xref: g2news2.google.com comp.lang.ada:8844 Date: 2007-02-02T18:15:05+00:00 List-Id: "Dmitry A. Kazakov" writes: > On Fri, 02 Feb 2007 01:37:26 GMT, Ray Blaak wrote: > > Modern GC systems simply do a better job at it them people do. > > Maybe, but that does not explain why such GC should be hard-wired. Note you > are talking about systems (plural), but wired could be only one. Why do you > want to forbid me to use my GC? Well, I am not forbidding anyone. Certainly there are times where it is justified to disable GC, as I already pointed out. So, presumably a fully general language environment would be able to run with it disabled if necessary. If nothing else, you are free choose the language you like. Currently that means Ada. For me, that would be C#. The original context of this thread is about the popularity of Ada. My position is that Ada would be a better fit for general use if GC was the default, not the exception. > > [...] > > The point is that the programmer is freed from the error prone tedium of > > explicitly managing memory. > > This is a misconception. There are two fundamentally different issues: > > 1. Object scopes > 2. Memory management > > The second issue is less and less relevant as Randy pointed out. The first > issue is always relevant. It is a good design to consider where an object > exists. GC [and upward closures] is an attitude of making everything > potentially global. In fact it is worse than just global. It is "I don't > know where I need that damn thing." GC does not affect visibility or scoping. That is an orthogonal issue, and still quite properly under the control of the programmer. Upward closures do not make an object more global unless the closure explicitly exposes the object for external use. All GC is really about is reclaiming objects that are no longer in use. As to memory management being less relevant, I am clearly disagreeing with Randy. As long as memory is finite, it matters. We have huge memories on our computers today as compared to, say, the 80's. Memory management matters more than ever. -- Cheers, The Rhythm is around me, The Rhythm has control. Ray Blaak The Rhythm is inside me, rAYblaaK@STRIPCAPStelus.net The Rhythm has my soul.