comp.lang.ada
 help / color / mirror / Atom feed
From: Jacob Sparre Andersen <jacob@jacob-sparre.dk>
Subject: SPARK vs. Ada 2012 for static analysis (Was: Ada 2012 talk at DANSAS'13)
Date: Thu, 15 Aug 2013 15:02:17 +0200
Date: 2013-08-15T15:02:17+02:00	[thread overview]
Message-ID: <87eh9vxg2u.fsf_-_@adaheads.sparre-andersen.dk> (raw)
In-Reply-To: 7xzjsjckgf.fsf@ruckus.brouhaha.com

Paul Rubin wrote:

> Does SPARK-2014 help?  I'm not sure if it exists yet, but I gather
> GNATProve (which is out there) is some kind of precursor to it.

SPARK would of course give compile/analysis-time checking, but we don't
consider it appropriate for the project.  The cost of implementing
sockets and containers in SPARK alone would probably kill that idea.

I'm not sure SPARK-2014 wasn't announced when we started the project,
and I don't consider it ready for real-life use yet, as tasking isn't
covered yet.

We want as much static analysis as we can get, but we are at the same
time working in a context where the value of making an "absolutely
perfect" application isn't that much bigger than writing a "definitely
above average reliability" application.  The whole system also depends
on other parts, which may fail too.  As long as we have a few orders of
magnitude fewer failures than the other parts, we are quite happy.

As I see things, the important place for complete static analysis
(i.e. SPARK) is in components which have a unique possibility of
breaking your system.  One obvious example is a PRNG used for
cryptography; if it is broken, your whole system is broken, and nothing
else can break the system in quite the same way.

Greetings,

Jacob
-- 
»You know the world has gone crazy when the best rapper is a
 white guy, the best golfer is a black guy, the swiss hold
 the America's cup, France is accusing the U.S. of
 arrogance, and Germany doesn't want to go to war«

  reply	other threads:[~2013-08-15 13:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-15  8:39 Ada 2012 talk at DANSAS'13 Jacob Sparre Andersen
2013-08-15 10:33 ` Paul Rubin
2013-08-15 13:02   ` Jacob Sparre Andersen [this message]
2013-08-15 14:01     ` SPARK vs. Ada 2012 for static analysis (Was: Ada 2012 talk at DANSAS'13) Shark8
2013-08-15 17:18     ` SPARK vs. Ada 2012 for static analysis Paul Rubin
replies disabled

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