Article View: comp.lang.modula2
Article #2604Re: Report on defect in M2 vs C (Was Modula-2, Modula-3, C or C++)
From: Robert Dewar
Date: Tue, 10 Oct 1995 14:46
Date: Tue, 10 Oct 1995 14:46
29 lines
2252 bytes
2252 bytes
" 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>"
While generally I would agree, there is one obvious exception.
If you are writing a safety critical program where a failure of a check
indicates a total system failure and is a calamity, then clearly you
have to prove that your system generates no exceptions. Once such a
proof is complete, checks not only can be removed, but generally must
be removed, because otherwise they complicate coverage verfication,
where the check handling becomes deactivated code, for which special
procedures are often necessary (and some environments simply do not
premit deactivated code).
If you are in a space shuttle, it is not much help to see
"Constraint Error at line 34, program Reentry_Guidance aborted"
Now of course in some environments, exception handlers are added anyway
as a defence against hardware errors, but there are other more complete
and reliable methods (e.g. majority voting with separate computers) for
dealing with hardware errors, and in fact the space shuttle uses exactly
that approach.
So it would no surprise me or shock me to learn that if the Space Shuttle
software was coded in Ada, it was compiled with checks off.
Technical Details
Message-ID:
<dewar.813336138@schonberg>Path:
arc1-ca.pugleaf.net!news.mathworks.com!panix!cmcl2!schonberg!dewarReferences:
<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> <45cj8d$red@ixnews3.ix.netcom.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.mathworks.com!panix!cmcl2!schonberg!dewar From: dewar@cs.nyu.edu (Robert Dewar) 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: 10 Oct 1995 10:46:28 -0400 Organization: Courant Institute of Mathematical Sciences Message-ID: <dewar.813336138@schonberg> 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> <45cj8d$red@ixnews3.ix.netcom.com> NNTP-Posting-Host: schonberg.cs.nyu.edu X-Newsreader: NN version 6.5.0 (NOV)