From: Ruud Bruijnesteijn <ruud@sds-sportdata.com>
Subject: Re: [++] Tight coding
Date: 1998/03/01 [thread overview]
Message-ID: <34F97152.DBF199BD@sds-sportdata.com> (raw)
In-Reply-To: 6dbgjv$lg$1@andros.cygnus.com
Bill Moyer wrote:
>
> I occasionally wonder if (or when) software will become suf-
> ficiently massive and complex that system performance will be
> dominated by the frequency and time it takes to recover from
> application (or system) crashes. If this happened, upgrading
> to faster hardware would not effectively improve productivity.
I think (hope) some products (notably WinXX, Adobe, Nutscrape) will
reach that state before the end of the century.
<SNIP>
> the more I
> think that techniques discarded in the past for being slow,
> inconvenient, or impractical (memory segmentation with bounds
> checking, strong type checking, compile-time proving of code
> correctness, et al) might be worth another look.
<SNIP>
I think what you are forgetting here is a re-evaluation of the basic
programming principles that were outlined in the 70s and 80s. For some
reason I have the impression that the bulk of so-called programmers have
no notion of what an Invariant is, what Pre- or Postconditions are, and
why these are such important elements in programming.
> Changing the programming language to improve compile-time
> verification of code correctness (with richer and stronger
> types, richer static semantic sets, and compile-time range
> tracking) would locate more bugs at compile-time, reduce the
> number of bugs in a "finished" product, and reduce the overall
> time spent in the development cycle (because finding run-time
> bugs is a much longer and more laborious task than finding
> them at compile-time). It has been proven that the imperative
> languages are not provable (ie, for any turing-complete imper-
> ative language, a program can be written which is not provably
> correct or incorrect), but it is still possible to improve
> provability by degrees, and we can do a lot better than C.
Hmm. I think you're right from a pure theoretical point of view, and in
fact practice is that most programs are impossible to prove. However,
the fact that programs can be written that can not be proven, does not
exclude the possibility that there are programs that can! It's 'a
discipline of programming' ;-)
Algorithms can be proven, (if you can't prove it, it's not an
algorithm!) but the step from algorithm to implementation (the
'mapping') is a sore point. But you're right that all a strickt
language can do to help is to improve the chances to catch an error.
However, Did you take look at the work by Mishra and Mani Chandri in
Austin on the provability of software, and the formal descriptional
method
they call UNITY. Have you looked at Component Pascal (Oberon-2,
BlackBox) for a real neat modern approach? It's not perfect, but it sure
is a step in the right direction, I think.
--
Ruud Bruijnesteijn
SDS Sport.Data.Systems GmbH
http://www.sds-sportdata.com
next prev parent reply other threads:[~1998-03-01 5:00 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-02-23 5:00 Wildfire and NT Robert Harley
1998-02-24 5:00 ` brianh
1998-02-24 5:00 ` Sean Burke
1998-02-25 5:00 ` brianh
1998-02-25 5:00 ` Mike Albaugh
1998-02-25 5:00 ` [++] Tight coding (Was: Re: Wildfire and NT) Terje Mathisen
1998-02-28 5:00 ` Piercarlo Grandi
1998-03-01 5:00 ` [++] Tight coding Bill Moyer
1998-03-01 5:00 ` Ruud Bruijnesteijn [this message]
1998-03-01 5:00 ` scott
1998-03-02 5:00 ` Kaz Kylheku
1998-03-02 5:00 ` Martin Tom Brown
1998-03-02 5:00 ` Terry Moore
1998-03-02 5:00 ` Pete Becker
1998-03-03 5:00 ` Ruud Bruijnesteijn
1998-03-03 5:00 ` Pete Becker
1998-03-04 5:00 ` Terry Moore
1998-03-03 5:00 ` Pete Becker
1998-03-04 5:00 ` Ruud Bruijnesteijn
1998-03-02 5:00 ` Kaz Kylheku
1998-03-01 5:00 ` Larry Kilgallen
1998-03-01 5:00 ` [++] Tight coding (comp.sys.dec-only thread) Bill Moyer
1998-03-02 5:00 ` [++] Tight coding Peter Moylan
1998-03-02 5:00 ` Martin Harvey
1998-03-02 5:00 ` Lawrence Kirby
1998-03-02 5:00 ` Peter Moylan
1998-03-02 5:00 ` Kaz Kylheku
1998-03-02 5:00 ` Ketil Z Malde
1998-03-04 5:00 ` Lyn A Headley
1998-03-03 5:00 ` Lawrence Kirby
1998-03-02 5:00 ` Kaz Kylheku
1998-03-02 5:00 ` Scott Fluhrer
1998-03-03 5:00 ` Larry Kilgallen
1998-02-25 5:00 ` Wildfire and NT Maynard Handley
1998-02-24 5:00 ` Bill Moyer
1998-02-25 5:00 ` Larry Kilgallen
1998-02-25 5:00 ` brianh
1998-02-25 5:00 ` Epiphanies (was: Wildfire and NT) Carlie Coats
1998-02-25 5:00 ` Wildfire and NT John Hascall
1998-02-25 5:00 ` Rob Rodgers
1998-02-24 5:00 ` David Hinds
1998-02-25 5:00 ` brianh
1998-02-25 5:00 ` Del Cecchi
1998-02-25 5:00 ` Bernd Paysan
1998-02-25 5:00 ` brianh
1998-02-26 5:00 ` Bernd Paysan
1998-02-27 5:00 ` brianh
1998-03-01 5:00 ` Ketil Z Malde
1998-02-26 5:00 ` Doug
1998-02-26 5:00 ` Jeffrey S. Dutky
1998-02-27 5:00 ` Paul Kahler
1998-03-02 5:00 ` Joel Gallun
1998-03-02 5:00 ` Przemek Klosowski
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