From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public 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 Message-ID: <62dkeh$7dd$1@lyra.csx.cam.ac.uk>#1/1 X-Deja-AN: 281812945 References: <61cqkc$9r@news-rocq.inria.fr> <3447D55B.1CDE@world.std.com> <62a0f5$9p8$1@lyra.csx.cam.ac.uk> Organization: University of Cambridge, England Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec In article , David Chase 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