comp.lang.ada
 help / color / mirror / Atom feed
From: Ken Garlington <73672.2025@COMPUSERVE.COM>
Subject: Ada 9X features
Date: Thu, 8 Sep 1994 19:12:45 EDT
Date: 1994-09-08T19:12:45-04:00	[thread overview]
Message-ID: <940908231244_73672.2025_DHR48-1@CompuServe.COM> (raw)

I would disagree with Bevin Brett's assessment of Ada 9X requirements bloat in
one area: the ability to have access values that don't reference the heap. We
have a number of constant data structures where the use of access values
greatly simplifies the data description and the corresponding algorithms. In
the "good" old JOVIAL days, it was pretty simple to get the compiler/linker to
build this as a static structure in ROM. (From what I understand, this can also
be done in C.)

We can use Ada 83 access types, which are much clearer to read and understand
than the JOVIAL equivalent. However, we just can't afford the elaboration time,
nor the extra memory, needed to copy these large data structure into the heap.
So, we have to do nasty tricks with UNCHECKED_CONVERSION and SYSTEM.ADDRESS to
get the data structure the way we want.

When we, as a most decidedly non-academic group of Ada practitioners, were
asked what we would want in Ada 9X, we wrote MRs that discussed our problems in
this area, fully expecting to be told, "Oh, there's a simple way to do that in
Ada 83 - you just..." or "Well, you just don't have an Ada mindset..." However,
neither of these happened. Even more to our surprise, an implementation has
been proposed for Ada 9X which looks like it will work perfectly.

I can't say that I will use everything in Ada 9X. I can't defend everything
that's been added. But I hope that those features that were added based on
inputs from the "grunts" in the field are treated with the same importance as
those proposed by the vendors, even if they aren't quite as interesting...



             reply	other threads:[~1994-09-08 23:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-09-08 23:12 Ken Garlington [this message]
1994-09-09 13:22 ` Ada 9X features Robert Dewar
1994-09-09 23:52 ` Bevin R. Brett
1994-09-12 13:23   ` Robert I. Eachus
     [not found] <940908231244_73672.2025_DHR48-1@compuserve.com>
1994-09-11 17:26 ` Michael Feldman
replies disabled

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