home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 13049 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.6 KB

  1. Path: sparky!uunet!usc!snorkelwacker.mit.edu!ai-lab!life.ai.mit.edu!tmb
  2. From: tmb@arolla.idiap.ch (Thomas M. Breuel)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Garbage Collection for C++
  5. Message-ID: <TMB.92Aug29175419@arolla.idiap.ch>
  6. Date: 29 Aug 92 21:54:19 GMT
  7. References: <DAVEG.92Aug17224359@synaptx.synaptics.com>
  8.     <1992Aug20.213720.16599@microsoft.com> <boehm.714410546@siria>
  9.     <1992Aug25.185458.10190@microsoft.com> <boehm.714847027@siria>
  10. Sender: news@ai.mit.edu
  11. Reply-To: tmb@idiap.ch
  12. Organization: IDIAP (Institut Dalle Molle d'Intelligence Artificielle
  13.     Perceptive)
  14. Lines: 20
  15. In-reply-to: boehm@parc.xerox.com's message of 26 Aug 92 16:37:07 GMT
  16.  
  17. In article <boehm.714847027@siria> boehm@parc.xerox.com (Hans Boehm) writes:
  18.  
  19.    Agreed.  Support for movable objects is a good thing.  But it also has
  20.    a very substantial cost, in that lots of compilers and libraries need to be
  21.    fixed.  Some (nonportable but useful) programming paradigms break (e.g.
  22.    hashing pointers no longer works.  You need an extra counter field per
  23.    allocated object if you want to be able to hash.)  There is a cost (of
  24.    one kind or another) in maintaining enough descriptor information.
  25.  
  26. To inject some real-world data again, fragmentation can be a problem.
  27. I have a machine with about 200M swap space, and a program that only
  28. needed about half that much memory ran out of memory because of
  29. fragmentation.
  30.  
  31. I think movable objects ultimately are very important, but, like so
  32. many things that are very important, support for them seems to be
  33. difficult to add cleanly and efficiently to the C++ programming
  34. language.
  35.  
  36.                     Thomas.
  37.