comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Reference-oriented language and high-integrity software
Date: Fri, 03 Nov 2006 09:58:51 +0100
Date: 2006-11-03T09:58:51+01:00	[thread overview]
Message-ID: <87mz78zz1w.fsf@ludovic-brenta.org> (raw)
In-Reply-To: eiet3r$2on$1@cernne03.cern.ch

Maciej Sobczak <no.spam@no.spam.com> writes:
> Taking into account that JB also wrote a book about SPARK, some
> reasoning can be found there and my understanding (simplified) is that
> reference-oriented language implies a heavy use of dynamic memory,
> which makes it impractical/impossible to perform any static analysis
> of memory consumption. Garbage collectors add their own factors to the
> problem.
>
> Is the above a reasonable explanation? Is it the only one? What else
> makes the reference-oriented languages inappropriate for
> high-integrity software?

The other part of the explanation, AFAIU, is that a reference can go
wrong, i.e. point to deallocated memory, to unallocated memory, or to
the wrong piece of memory.  References also introduce aliasing,
i.e. two references can point to the same item.  All these make it
almost impossible to statically prove that no unintended side effects
ever occur in the program (correctness means: do what you're supposed
to do; safety means: do not do what you're not supposed to do.  It is
this latter part that matters to the present discussion).

-- 
Ludovic Brenta.



  reply	other threads:[~2006-11-03  8:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-03  8:03 Reference-oriented language and high-integrity software Maciej Sobczak
2006-11-03  8:58 ` Ludovic Brenta [this message]
2006-11-03  9:06   ` Maciej Sobczak
2006-11-03  9:43     ` roderick.chapman
2006-11-03 11:25       ` Georg Bauhaus
2006-11-03 11:15     ` Ludovic Brenta
2006-11-03 11:59       ` Georg Bauhaus
2006-11-03 12:37 ` Peter Amey
2006-11-03 14:44   ` Martin Krischik
2006-11-03 15:27   ` Dr. Adrian Wrigley
2006-11-03 16:17     ` Simon Wright
2006-11-03 17:30     ` Jean-Pierre Rosen
2006-11-06  7:14     ` Martin Krischik
replies disabled

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