🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #2618

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

#2618
From: Viet-Trung Luu
Date: Fri, 13 Oct 1995 23:48
37 lines
2509 bytes
On 10 Oct 1995, Robert Dewar wrote:

> 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).

Perhaps then "external" checking code would be a solution. (Well, not 
completely external...) Using such "external" checking (from another 
program, library, whatever) would reduce the interdependency between the 
real code and the checking code and would also make it easier to remove 
the checking code.

> 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.

Majority voting on different types of computers, running different OSes, 
running applications programmed in different programming languages, 
programmed by different teams, using different approaches and different 
algorithms -- that would be pretty much ideal. (Defence again hardware 
flaws -- like Pentium divide errors, OS bugs, language/compiler flaws, 
programmer error, and faulty algorithms!!!)

> 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.

It wouldn't surprise me if the three computers were running programs 
written in different languages!

- Trung
Technical Details
Message-ID: <Pine.SUN.3.91.951013025601.27595A-100000-100000-100000@lagrange.uwaterloo.ca>
Path: arc1-ca.pugleaf.net!lagrange.uwaterloo.ca!vluu

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.modula2,comp.lang.modula3,comp.lang.c,comp.lang.c++,comp.lang.ada
Path: arc1-ca.pugleaf.net!lagrange.uwaterloo.ca!vluu
From: Viet-Trung Luu <vluu@lagrange.uwaterloo.ca>
Subject: Re: Report on defect in M2 vs C (Was Modula-2, Modula-3, C or C++) 
Sender: news@undergrad.math.uwaterloo.ca (news spool owner)
Message-ID: <Pine.SUN.3.91.951013025601.27595A-100000-100000-100000@lagrange.uwaterloo.ca>
In-Reply-To: <dewar.813336138@schonberg> 
Date: Fri, 13 Oct 1995 23:48:18 GMT
Content-Type: TEXT/PLAIN; charset=US-ASCII
Nntp-Posting-Host: lagrange.uwaterloo.ca
Mime-Version: 1.0
Organization: University of Waterloo