From: Maciej Sobczak <no.spam@no.spam.com>
Subject: Re: Reference-oriented language and high-integrity software
Date: Fri, 03 Nov 2006 10:06:38 +0100
Date: 2006-11-03T10:06:38+01:00 [thread overview]
Message-ID: <eif0qu$4k8$1@cernne03.cern.ch> (raw)
In-Reply-To: <87mz78zz1w.fsf@ludovic-brenta.org>
Ludovic Brenta wrote:
> 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.
This can be rebutted on the basis that those languages ensure that
nothing like this happens (no pointer arithmetic + garbage collector).
> 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
This makes sense in case of Java, but one could also argued that
immutability of objects - a common feature in some reference-oriented
languages - can make it less severe.
So - let's imagine a language, which is reference-oriented with all
objects immutable. Apart from dynamic memory, is there any problem?
--
Maciej Sobczak : http://www.msobczak.com/
Programming : http://www.msobczak.com/prog/
next prev parent reply other threads:[~2006-11-03 9:06 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
2006-11-03 9:06 ` Maciej Sobczak [this message]
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