comp.lang.ada
 help / color / mirror / Atom feed
From: "Tom Hargraves" <tharg@vtcinet.com>
Subject: Re: The best thing/greatest feature summary
Date: Tue, 31 Oct 2000 18:13:15 -0800
Date: 2000-10-31T18:13:15-08:00	[thread overview]
Message-ID: <39ff792d@rsl2.rslnet.net> (raw)
In-Reply-To: 39FF1DBD.74184FDC@worldnet.att.net

Good point James.
All these ease-of-programming features come at a cost.

But what is the cost here? A few strings can hardly be much of a cost
nowadays. I'm not asking for a 1Mbyte dynamic .GIF icon to popup, just a
routine name...

These 256 byte strings could live quite happily in the corner of the xMbyte
proms and nobody would even know they where there ;-)

(OK, so I'm setting myself up here. There's bound to be a space shuttle
designer out there who knows the weight of a byte of memory and how much it
costs to put it in orbit...)

Regards,
Tom H.

"James Rogers" <jimmaureenrogers@worldnet.att.net> wrote in message
news:39FF1DBD.74184FDC@worldnet.att.net...
>
>
> Tom Hargraves wrote:
> >
> > Let
> >  X := Ada
> >  Y := Java
> >
> > then the wish is
> >
> > to add java.lang.reflect 'style' routines to the ada language
> >
> > Here's a simple example where I'd find it useful:
> >
> > Quite often in user written Ada error handling packages, it is nice to
be
> > able to increase the detail in the error message, and be able to print
or
> > log the name of the routine or class in which it occured. A 'debug' mode
so
> > to speak.
> >
> > In ada I've seen this done by declaring constant strings which match (at
the
> > time of writing) the text to be displayed or logged. However there is
> > nothing to link the content of these strings to the items they refer, so
> > during the life of an application mismatches can occur.
> >
> > java.lang.reflect has getName, getDeclaringClass, to name but two.
> >
>
> The java.lang.reflect 'style' of routines rely on the fact that Java
> creates
> a "Class" object for each class defined in a program. This "Class"
> object
> contains the name of the class, the name of the Super for the class, and
> several other pieces of information. I, for one, do not want this extra
> overhead
> in realtime programs. Realtime systems are frequently constrained by
> memory as well as by timing. The extra overhead of such shadow data
> structures
> is easily overlooked by developers. In realtime systems the consequences
> of
> such errors can be disasterous.
>
> If an Ada developer wants such a capability, then all you need is a
> simple
> generic package with parameters for all the items you want to identify.
>
> Each package can instantiate the generic with appropriate parameter
> values.
> The generic package would declare the "getName", "getDeclaringClass",
> and
> other java-like subprograms as needed.
>
> Jim Rogers
> Colorado Springs, Colorado





  reply	other threads:[~2000-11-01  2:13 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <39DCB9E3.EAE8F426@ftw.rsc.raytheon.com>
2000-10-27 22:08 ` The best thing/greatest feature summary Wes Groleau
2000-10-28  1:01   ` Lothar Scholz
2000-11-24  2:15     ` Peter Horan
2000-11-24  0:00       ` Lothar Scholz
2000-11-24  0:00         ` Friedrich Dominicus
2000-10-28  1:03   ` Lothar Scholz
2000-10-31 14:44     ` Tom Hargraves
2000-10-31 18:07       ` tmoran
2000-10-31 19:58         ` Larry Kilgallen
2000-11-01  1:56         ` Tom Hargraves
2000-10-31 19:28       ` James Rogers
2000-11-01  2:13         ` Tom Hargraves [this message]
2000-11-01  3:27           ` James Rogers
2000-11-01 12:48             ` Ken Garlington
2000-11-01 14:03               ` Pat Rogers
2000-11-01 15:30               ` James Rogers
2000-11-01 22:12                 ` Tom Hargraves
2000-11-01 22:44                   ` Ted Dennison
2000-11-01 22:54                   ` Pat Rogers
2000-11-01 23:47                     ` James Rogers
2000-11-02  5:25                       ` Pat Rogers
2000-11-02  5:28                       ` Pat Rogers
2000-11-02 22:00                       ` Wes Groleau
2000-11-02  3:45                 ` Reflection (was: Re: The best thing/greatest feature summary) Jeff Carter
2000-11-02  6:57                   ` Ray Blaak
2000-11-02  8:42                     ` tmoran
2000-11-02 11:19                       ` David C. Hoos, Sr.
2000-11-02 18:09                         ` tmoran
2000-11-02 12:51                       ` David C. Hoos, Sr.
2000-11-03  2:26                         ` Jeff Carter
2000-11-02 14:33                     ` Tucker Taft
2000-11-02 16:02                     ` Ted Dennison
2000-11-04  0:00                       ` Florian Weimer
2000-11-03  2:23                     ` Jeff Carter
2000-11-03  5:05                   ` Randy Brukardt
2000-11-03  5:28                     ` Ken Garlington
2000-11-04  4:13                     ` Jeff Carter
2000-11-10  0:00       ` The best thing/greatest feature summary jacob navia
2000-10-31 21:01   ` Wes Groleau
2000-10-30 20:19 ` Roger Browne
2000-10-31 16:24   ` Greg
2000-10-31 16:55   ` Roger Browne
replies disabled

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