comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <mcondic.auntie.spam@acm.org>
Subject: Re: [Spark] Arrays of Strings
Date: Fri, 11 Apr 2003 08:05:37 -0400
Date: 2003-04-11T12:06:02+00:00	[thread overview]
Message-ID: <b76b3a$slo$1@slb9.atl.mindspring.net> (raw)
In-Reply-To: 3e966fc9$1@baen1673807.greenlnk.net

I can agree with Hyman's point to some extent. Trying to eliminate all
possible sources of errors via language design is not going to work and only
succeeds in making the language less useful in solving problems. (Sort of
like trying to teach a pig to dance - it doesn't work and only succeeds in
annoying the pig. :-) There isn't really any substitute for solid design and
rigorous testing if you want a stable, reliable end product. A "safe"
language can lead developers to find ugly, difficult ways around the safety
features in order to get what the designers wanted out of the system.

OTOH, there is some value in something like SPARK wherein one can substitute
formal proof of correctness for formal verification by testing. Verification
can be very time consuming. Some features can make it difficult or
impossible to to test an end product and have a high level of confidence
that the end product will not break. To the extent that the formal proof is
faster and more dependable than formal verification, it gets you a better
product in a less costly way - hence your point about the value of SPARK for
a large percentage of the code and other verification methods for the
smaller percentage.

Its all a balancing act. I believe that the safety features of Ada are a
good thing and hence I agree that SPARK can be a good thing too. But a
desire for absolute safety can end up hamstringing a language and you'll
never get the absolute safety anyway. One would hope that language designers
would keep this in mind and look to the target audience to see what features
are useful as well as what features are safe.

MDC
--
======================================================================
Marin David Condic
I work for: http://www.belcan.com/
My project is: http://www.jsf.mil/

Send Replies To: m c o n d i c @ a c m . o r g

    "Going cold turkey isn't as delicious as it sounds."
        -- H. Simpson
======================================================================

Phil Thornley <phil.thornley@baesystems.com> wrote in message
news:3e966fc9$1@baen1673807.greenlnk.net...
>
> There must be very few SPARK based systems that don't have to include
> some non-SPARK code. (One whole chapter of the SPARK book is about
> interfacing to such code.)
>
> But to argue that this makes languages such as SPARK wholly useless is
> specious.
>
> If I am writing the code for a safety-critical system then all of that
> code has to be brought to the same integrity level. If 99% of that is
> SPARK code then the effort to validate that code is minimised and I am
> quite content to put a lot of manual analysis (per line of code) into
> bringing the remaining 1% up to the same integrity level.
>






  reply	other threads:[~2003-04-11 12:05 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-08 12:02 [Spark] Arrays of Strings Lutz Donnerhacke
2003-04-08 18:08 ` Martin Krischik
2003-04-09  9:23   ` Lutz Donnerhacke
2003-04-09 12:38     ` Hyman Rosen
2003-04-09 12:47       ` Vinzent Hoefler
2003-04-09 14:27         ` Hyman Rosen
2003-04-09 15:13           ` Vinzent Hoefler
2003-04-09 17:21         ` Hyman Rosen
2003-04-09 18:41           ` Vinzent Hoefler
2003-04-09 21:04           ` Randy Brukardt
2003-04-10 23:21           ` John R. Strohm
2003-04-11 12:19             ` Hyman Rosen
2003-04-11 13:14               ` John R. Strohm
2003-04-09  7:50 ` Eric G. Miller
2003-04-09  8:10   ` Lutz Donnerhacke
2003-04-09 18:23   ` Matthew Heaney
2003-04-09 17:42 ` Matthew Heaney
2003-04-09 21:06   ` Randy Brukardt
2003-04-10  8:23   ` Lutz Donnerhacke
2003-04-10 14:09     ` Matthew Heaney
2003-04-10 14:48       ` Hyman Rosen
2003-04-11  6:20         ` Chad R. Meiners
2003-04-11 12:31           ` Hyman Rosen
2003-04-11 18:27             ` Chad R. Meiners
2003-04-11  7:35         ` Phil Thornley
2003-04-11 12:05           ` Marin David Condic [this message]
2003-04-11 13:19             ` John R. Strohm
2003-04-12 23:09               ` Robert A Duff
2003-04-11 18:47             ` Chad R. Meiners
2003-04-12 23:51         ` Robert A Duff
2003-04-13  5:47           ` Hyman Rosen
2003-04-14  8:05             ` Lutz Donnerhacke
2003-04-10 15:02       ` Lutz Donnerhacke
2003-04-10 15:50         ` Hyman Rosen
2003-04-10 18:32           ` Randy Brukardt
2003-04-11  6:28         ` Chad R. Meiners
2003-04-11  8:11           ` Lutz Donnerhacke
2003-04-11 12:32 ` Rod Chapman
2003-04-11 14:50   ` Peter Amey
2003-04-11 18:41   ` Matthew Heaney
2003-04-11 21:25     ` Chad R. Meiners
2003-04-12 10:08     ` Peter Amey
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox