Thread View: comp.sw.components
3 messages
3 total messages
Started by Jan Steinman
Tue, 26 Sep 1989 00:50
Re: Garbage Collection & ADTs
Author: Jan Steinman
Date: Tue, 26 Sep 1989 00:50
Date: Tue, 26 Sep 1989 00:50
46 lines
2798 bytes
2798 bytes
<62342@tut.cis.ohio-state.edu (Golden Richard)> <<wright@hsi.UUCP (Gary Wright)>> <...I can't imagine a properly designed application where storage management is so complicated that the usual techniques for programmer-managed storage reclamation aren't adequate. If the programmer can't define when a certain object can go poof, I suspect a serious lack of understanding of the problem at hand.> One who cannot imagine a need for garbage collection other than to correct for programmer deficiencies simply lacks imagination. The situation is not so simple in dynamic-bound systems. Are you claiming that Smalltalk, Lisp, Eiffel, Objective C, Gnu Emacs, et. al. have garbage collectors simply because those who program in them lack serious understanding of their problems? In particular, systems designed for rapid prototyping may have storage systems that have completely non deterministic usage patterns. I'm certain those who have used non-GC systems to build things similar to the NeXT InterfaceBuilder or the Smalltalk Browser have come to appreciate the need for GC. To bring it back to the newsgroup, the problem of reusable components is intimately concerned with automatic storage management. The need to document storage procedures is yet another reason truly reusable components are rare. I really agree with Gary: <If our criteria for deciding whether GC is better than explicit memory management is based on absolutes, we will never come to a conclusion.> Once the religious give up their stubborn, blind opposition to GC, we can all begin to discover when to use it, when not to, and how to control it so that it stays out of the way when not used. I can pound most nails with the handle of a screwdriver, but I'm a fool if I declare there will never be a hammer in my toolbox! In particular, I don't think the combination of asynchronous GC with programmer storage handling has been adequately explored. Creation and destruction of many data can be handled by a compiler, and most real-time systems can have scheduled "idle time" in which to perform overhead activities. (A SONAR project I worked on performed GC during the few milliseconds then the beam was sweeping through the hull.) Jan Steinman - N7JDB Electronic Systems Laboratory Box 500, MS 50-370, Beaverton, OR 97077 (w)503/627-5881 (h)503/657-7703
Re: Garbage Collection & ADTs
Author: Golden Richard
Date: Tue, 26 Sep 1989 03:44
Date: Tue, 26 Sep 1989 03:44
29 lines
1914 bytes
1914 bytes
In article <5995@tekgvs.LABS.TEK.COM> jans@tekgvs.LABS.TEK.COM (Jan Steinman) writes: ><62342@tut.cis.ohio-state.edu (Golden Richard)> [stuff deleted] >The situation is not so simple in dynamic-bound systems. Are you claiming that >Smalltalk, Lisp, Eiffel, Objective C, Gnu Emacs, et. al. have garbage >collectors simply because those who program in them lack serious understanding >of their problems? > I am claiming no such thing. In languages where the choice for GC has been made *for* the programmer, little other choice remains. As a matter of fact, I do not even intend to say that GC is inferior to programmer-managed storage reclamation. The fact that I am relatively ignorant of applications best suited to using GC is why I'm asking the pro-GC spokespersons to please give a concrete example where one would truly need or want GC over the alternative. I'm certainly not of the "assembly language" school that believes that everything should be explicitly and intricately hacked out by the programmer. In particular, automatic scope entry/exit creation/destruction is a godsend. I just don't see the point in making things more complicated than they need to be. -=- Golden Richard III OSU Department of Computer and Information Science grichard@cis.ohio-state.edu "I'm absolutely positive! ...or not."
Re: Garbage Collection & ADTs
Author: Golden Richard
Date: Tue, 26 Sep 1989 03:48
Date: Tue, 26 Sep 1989 03:48
7 lines
960 bytes
960 bytes
If anyone received multiple (somewhat mangled and incomplete) copies of my previous article, I would appreciate email. I was having some technical problems. Thanks in advance. ...and now back to the storage wars... -=- Golden Richard III OSU Department of Computer and Information Science grichard@cis.ohio-state.edu "I'm absolutely positive! ...or not."
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads