🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #2596

Re: Report on defect in M2 vs C (Was Modula-2, Modula-3, C or C++)

#2596
From: Mike Rubenstein
Date: Tue, 10 Oct 1995 01:46
49 lines
2577 bytes
Sam Kendall <kendall> wrote:

>ark@research.att.com (Andrew Koenig) wrote:
>>In article <44uccq$lkd@theopolis.orl.mmc.com> Theodore Dennison <dennison@escmail.orl.mmc.com> writes:
>>
>>> Using C:
>>>    Symptom    : Machine 3 locks up.
>>
>>>    Actual Bug : C code on Machine 1 has "off by one" error.
>>
>>Symptom when run under rigorously checking C compiler
>>(of which there are a few commercially available):
>>Code on machine 1 halts with a diagnostic message explaining
>>the problem.

>Well, that assumes you can figure out which program on which machine caused the
>problem.  Then you can rebuild it with a runtime checker, rerun the program,
>and try to reproduce the conditions that caused the crash.  (Even so, your
>checker may miss the error, because most of them miss lots of errors.)

>This all is necessary because almost nobody deploys or ships programs built
>with a C/C++ checker.  Why don't they?  Because checkers impose large space and
>time penalties.  So C/C++ developers wear a life jacket in the harbor and throw
>it away on the open sea.

>--Sam Kendall

>P.S.  The life jacket metaphor isn't mine.  Anyone remember who said it?

	Finally, it is absurd to make elaborate security checks on debugging 
	runs, when no trust is put in the results, and then remove them in 
	production runs, when an erroneous result could be expensive or 
	disasterous.  What would we think of a sailing enthusiast who wears 
	his life-jacket when training on dry land but takes it off as soon as 
	he goes to sea>

From C, A, R, Hoare in "Hints on programming language design" in 

	C Bunyan (ed.); Computer Systems Reliability, State of the art Report
	Vol 20, pp 505-34.

Reprinted in 

	C. A. R. Hoare, C. B. Jones (ed); Essays in Computing Science; 
	Prentice Hall; 1989; ISBN 0-13-283027-8

This is a book every programmer should read.

Michael M Rubenstein
Technical Details
Message-ID: <45cj8d$red@ixnews3.ix.netcom.com>
Path: arc1-ca.pugleaf.net!ix.netcom.com!netnews
References: <44hcri$rsm@theopolis.orl.mmc.com> <44rv1u$dfk@apollo.ekfido.kodak.com> <44uccq$lkd@theopolis.orl.mmc.com> <DFyAJF.KpC@research.att.com> <DG1yzI.8Ln@mv.mv.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!ix.netcom.com!netnews
From: miker3@ix.netcom.com (Mike Rubenstein)
Newsgroups: comp.lang.modula2,comp.lang.modula3,comp.lang.c,comp.lang.c++,comp.lang.ada
Subject: Re: Report on defect in M2 vs C (Was Modula-2, Modula-3, C or C++)
Date: Tue, 10 Oct 1995 01:46:55 GMT
Organization: Netcom
Message-ID: <45cj8d$red@ixnews3.ix.netcom.com>
References: <44hcri$rsm@theopolis.orl.mmc.com> <44rv1u$dfk@apollo.ekfido.kodak.com> <44uccq$lkd@theopolis.orl.mmc.com> <DFyAJF.KpC@research.att.com> <DG1yzI.8Ln@mv.mv.com>
NNTP-Posting-Host: ix-dc11-06.ix.netcom.com
X-NETCOM-Date: Mon Oct 09  6:45:49 PM PDT 1995
X-Newsreader: Forte Free Agent 1.0.82