From: billm@cygnus.com (Bill Moyer)
Subject: Re: [++] Tight coding
Date: 1998/03/01 [thread overview]
Message-ID: <6dbgjv$lg$1@andros.cygnus.com> (raw)
In-Reply-To: 34F49435.B6307838@hda.hydro.com
Sean Burke wrote:
>
>Sean> system is so popular today. Perhaps our code will in turn be
>Sean> described as "lean-n-mean" by those who follow us. But don't
>Sean> bet on it. In the Mac world, the term "byte-squeaking pinheadery"
>Sean> has been applied to some of the brilliant coding that enabled
>Sean> the original MacOS to run in 128K.
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.
There have already been some halfhearted attempts to solve
the problems of increasing program complexity by application
of object-oriented techniques, but the more I see the object
oriented style fail to live up to its promises, 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. Run-time
bounds checking increases the processor power required to run
applications, but applications which are bottlenecked by crash
frequency (eg, programmer error in pointer arithmetic) would
benefit from it. Use of memory segmentation would help pin-
point which data structure (or catagory of data structures)
was corrupted, and allow recovery routines to perhaps repair
the damage and continue with application execution; this
would be a big improvement over "Segmentation Fault; core
dumped" or "GPF 314159".
Relying on run-time capture and correction of errors bugs
the hell out of me. Like most programmers, I believe that
programming errors should be caught and corrected before a
product ships, but the current practice of shipping products
with dozens or hundreds of *known* bugs does not show any
sign of changing.
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.
-- Bill Moyer
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 ` 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 ` Bill Moyer [this message]
1998-03-01 5:00 ` [++] Tight coding Larry Kilgallen
1998-03-01 5:00 ` [++] Tight coding (comp.sys.dec-only thread) Bill Moyer
1998-03-01 5:00 ` [++] Tight coding Ruud Bruijnesteijn
1998-03-01 5:00 ` scott
1998-03-02 5:00 ` Kaz Kylheku
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-02 5:00 ` Martin Tom Brown
1998-03-02 5:00 ` Peter Moylan
1998-03-02 5:00 ` Martin Harvey
1998-03-02 5:00 ` Kaz Kylheku
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 ` Scott Fluhrer
1998-03-03 5:00 ` Larry Kilgallen
1998-02-25 5:00 ` Wildfire and NT Maynard Handley
1998-02-25 5:00 ` brianh
1998-02-24 5:00 ` David Hinds
1998-02-25 5:00 ` brianh
1998-02-25 5:00 ` Del Cecchi
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-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