Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!rex!uflorida!travis!tom From: tom@ssd.csd.harris.com (Tom Horsley) Newsgroups: comp.lang.c++ Subject: Re: Smart pointers and stupid people (was: garbage collection...) Message-ID: Date: 12 Feb 91 11:53:16 GMT References: <3344@lupine.NCD.COM> <4174@osc.COM> <3779@lupine.NCD.COM> <70606@microsoft.UUCP> Sender: news@travis.csd.harris.com Distribution: comp Organization: Harris Computer Systems Division Lines: 35 In-reply-to: jimad@microsoft.UUCP's message of 11 Feb 91 20:51:37 GMT >>>>> Regarding Re: Smart pointers and stupid people (was: garbage collection...); jimad@microsoft.UUCP (Jim ADCOCK) adds: jimad> In article <3779@lupine.NCD.COM> rfg@NCD.COM (Ron Guilmette) writes: |Remember, C++ objects don't move. jimad> Essentially, GC proposals for C++ fall into two camps: jimad> 1) Those GC techniques that don't move C++ objects. jimad> 2) Those GC techniques that do move C++ objects. jimad> Clearly, moving C++ objects either represents [depending on your point jimad> of view] a change in the language, or a hack performed on a particular jimad> implementation of the language. Still, I don't see how this prevents jimad> one from considering the ramifications of performing GC on C++ with jimad> moveable objects. Yep. Mark-and-sweep type algorithms can leave objects in their original location, but copy collecting algorithms move them around (in fact, the way most simple copy collectors are implemented, they *always* move an object when GC is run). If you examine the literature on garbage collection, you will find that the performance is generally vastly superior for variations of copy collectors. This is the main reason a lot of people are interested in GC schemes in which objects *do* move. -- ====================================================================== domain: tahorsley@csd.harris.com USMail: Tom Horsley uucp: ...!uunet!hcx1!tahorsley 511 Kingbird Circle Delray Beach, FL 33444 +==== Censorship is the only form of Obscenity ======================+ | (Wait, I forgot government tobacco subsidies...) | +====================================================================+