comp.lang.ada
 help / color / mirror / Atom feed
From: Rod Chapman <roderick.chapman@googlemail.com>
Subject: Re: SPARK and unbounded tree structures
Date: Thu, 11 Jun 2009 00:35:37 -0700 (PDT)
Date: 2009-06-11T00:35:37-07:00	[thread overview]
Message-ID: <015c9570-0f07-492a-85aa-2289a477e2b0@x5g2000yqk.googlegroups.com> (raw)
In-Reply-To: 06f0b9ca-3c00-44e8-9a52-63c840ed0abe@21g2000vbk.googlegroups.com

On Jun 10, 5:52 pm, xorquew...@googlemail.com wrote:
> Are there any real world examples of using SPARK in situations that
> involve large dynamic data structures?

Only the SPARK Examiner itself, and in that even the data
structures are ultimately bounded.

Remember - SPARK is principally designed for the construction
of hard real-time and embedded systems, where the "size"
of the problem domain is known well in advance - hence
most SPARK system use data-structures with a fixed upper
limit.

You also need to consider that SPARK is non-recurive, so
walking and building such data structures nees to be
done with wholly iterative algorithms, which is an unusual
programming style to say the least.

In short: it sounds like SPARK is unlikely to be a good
choice for this style of application. If you _really_ want
to see how it's done, then see the Examiner sources - data structures
like stree.ads and heap.ads, and the tree-walking algorithms in
sem-compunit.adb for example.

Yours,
 Rod Chapman, SPARK Team



  reply	other threads:[~2009-06-11  7:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-10 16:52 SPARK and unbounded tree structures xorquewasp
2009-06-11  7:35 ` Rod Chapman [this message]
2009-06-11  8:28   ` Phil Thornley
2009-06-11  8:43     ` xorque
2009-06-11 10:31 ` Stephen Leake
replies disabled

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