home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / std / cplus / 1908 < prev    next >
Encoding:
Text File  |  1992-12-24  |  1.6 KB  |  32 lines

  1. Newsgroups: comp.std.c++
  2. Path: sparky!uunet!microsoft!hexnut!jimad
  3. From: jimad@microsoft.com (Jim Adcock)
  4. Subject: Re: Zero-length structures and pointer comparisons
  5. Message-ID: <1992Dec24.004534.1152@microsoft.com>
  6. Date: 24 Dec 92 00:45:34 GMT
  7. Organization: Microsoft Corporation
  8. References: <BzCG7K.2sG@frumious.uucp> <1992Dec18.192202.17023@ucc.su.OZ.AU> <1992Dec18.204337.3084@lth.se>
  9. Lines: 21
  10.  
  11. In article <1992Dec18.204337.3084@lth.se> dag@bellman.control.lth.se (Dag Bruck) writes:
  12. |In <comp.std.c++> maxtal@extro.ucc.su.OZ.AU (John MAX Skaller) writes:
  13. |>
  14. |>In fact, p==q iff objects equal is unimplementable on some machines.
  15. |>That is, even the existing ARM requirement is unworkable.
  16. |
  17. |No, some machines are unworkable :-).
  18.  
  19. Agreed -- we just disagree on what machines.  The implementors of Smalltalk, 
  20. Smalltalk machines, the Mac systems, The Windows systems, OODBMSs, and I,  
  21. believe that machines with immovable objects, paging in 4K chunks, 
  22. are "unworkable" for serious object oriented work.  The basic problem is 
  23. that objects are typically about 100 bytes, implying an average of 40 
  24. objects per 4K page.  The 40 objects do not typically consistently remain 
  25. to the same temporal working set.  Thus paging needs finer granulaty, 
  26. or objects must be moveable.  Objects cannot in general be moveable to
  27. an appropriate current temporal working set and simultaneously retain their
  28. global address space orderings in memory.  Unless one had hardware paging
  29. in much smaller chunks than 4K -- which in fact 386/486 machines DO support
  30. in one addressing mode -- not commonly used in typical OS's.
  31.  
  32.