Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: nmm1@cus.cam.ac.uk (Nick Maclaren)
Subject: Re: [Reposted due to Enlow UCE cancel]: Re: WAS Re: Final kick at the "Merced Guessing Game"
Date: 1997/10/19	[thread overview]
Message-ID: <62dkeh$7dd$1@lyra.csx.cam.ac.uk> (raw)
In-Reply-To: REPOST-4156.8731384277344.3448BA41.7603@world.std.com


In article <REPOST-4156.8731384277344.3448BA41.7603@world.std.com>,
David Chase  <chase@world.std.com> wrote:
>Nick Maclaren wrote:
>
>> Yes, and I regard this whole mess as a tragedy of the first water.  The
>> point is that there are TWO aspects here:
>> 
>>     1) Are ALL pointer operations checked?
>> 
>>     2) Is there a semi-automatic way of recovering dead space?
>> 
>> The confusion that caused the Maclaren-O'Keefe explosion was due to a
>> misunderstanding over this.  I was stating that I did not like the second
>> and had never seen a good one - but I was NOT stating that I did not want
>> the first!  What I actually want is a language where all pointer uses are
>> checked, and I get an error when I get it wrong, but where the system
>> does not do unspeakable things to my data storage behind my back.
>
>The difficulty here is that without garbage collection, you may
>accidentally do unspeakable things to the type-correctness of your
>program, and the cost of checking all pointer operations goes up in an
>alarming way.  ...

Um.  That isn't entirely true.  There are two major points:

    1) Yes, doing what I propose in most existing languages is a pretty
fair disaster.  But it IS possible to do the checking efficiently, using
use counts or otherwise, IF you design the language with that in mind,
and keep it in mind.

    2) One of the reasons that garbage collection is faster than what I
want is it does so much less checking!  In particular, a great many user
errors will lead to indefinite storage leaks, which are the utterly foul
failures that I was ranting against.

I hope that we are agreed that garbage collection WITHOUT pointer checking
is a recipe for chaos, sooner or later :-)


Nick Maclaren,
University of Cambridge Computer Laboratory,
New Museums Site, Pembroke Street, Cambridge CB2 3QG, England.
Email:  nmm1@cam.ac.uk
Tel.:  +44 1223 334761    Fax:  +44 1223 334679



  reply	other threads:[~1997-10-19  4:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-07  4:00 Final kick at the "Merced Guessing Game" Robert Harley
1997-10-07  4:00 ` Martin Rodgers
1997-10-07  4:00 ` Shankar Unni
1997-10-08  4:00   ` boo
1997-10-09  4:00     ` Patrick F. McGehearty
1997-10-10  4:00       ` Richard A. O'Keefe
1997-10-15  4:00         ` David Chase
1997-10-16  4:00           ` William Clodius
1997-10-17  4:00             ` WAS " David Chase
1997-10-18  4:00               ` Nick Maclaren
1997-10-18  4:00                 ` [Reposted due to Enlow UCE cancel]: " David Chase
1997-10-19  4:00                   ` Nick Maclaren [this message]
1997-10-22  4:00                     ` pointer checking (WAS Re: Final kick at the "Merced Guessing Game") Hans-Juergen Boehm
1997-10-18  4:00                 ` WAS Re: Final kick at the "Merced Guessing Game" David Chase
1997-10-07  4:00 ` Nick Maclaren
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox