comp.lang.ada
 help / color / mirror / Atom feed
From: "John R. Strohm" <strohm@airmail.net>
Subject: Re: for x'address or variant
Date: Tue, 22 Apr 2003 07:02:10 -0500
Date: 2003-04-22T07:02:10-05:00	[thread overview]
Message-ID: <D231D45460F9F835.76AAD2894F78B365.84CA5753DC08490A@lp.airnews.net> (raw)
In-Reply-To: b81jc5$4u7$1@news.onet.pl


"kat-Zygfryd" <6667@wp.pl> wrote in message
news:b81jc5$4u7$1@news.onet.pl...
> "Robert A Duff" <bobduff@shell01.TheWorld.com> wrote in message
> news:wccfzob6384.fsf@shell01.TheWorld.com...
> > I was trying to help, but I need to understand what you're trying to do.
> > I'm not willing to download and read all the LIBAVL code.
> > I looked for it briefly, and it's too much hassle.
> >
> > I'm guessing you've got some C code, and you want to know how to do
> > similar things in Ada.  So post some simple examples in C.
> > If that's what you're after, please explain.
>
> Not really, I have code in C which is easily translatable to Ada,
> I just wanted to know how to perform the thing I was talking
> about (it isn't nessessary for this code, just a bit helpful)
>
> > I'm not interested in discussing your *skills*.
> > But you seem to be asking about Ada *style*, so...
> >
> > - Bob
>
> Oh I didn't mean you, but mr. Strohm.

I stand by my statement.  Until you have correct, RUNNING code, in your
target language, it is premature to worry about "efficiency".  You should
give thought to choosing the appropriate algorithm, but trying to make
micro-optimizations before the code is known to be correct and working is
the wrong approach.

Furthermore, many years of study have shown conclusively that human
programmers are very poor at finding the real "hot spots" where optimization
can really help.  Profiling the actual execution time, mapping out where the
program is actually spending the cycles, is absolutely critical.





      parent reply	other threads:[~2003-04-22 12:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-20 11:50 for x'address or variant kat-Zygfryd
2003-04-20 14:05 ` James S. Rogers
2003-04-20 15:17 ` Steve
2003-04-20 16:19 ` Nick Roberts
2003-04-20 16:57   ` kat-Zygfryd
2003-04-20 16:17     ` Simon Wright
2003-04-20 18:07       ` kat-Zygfryd
2003-04-20 19:39         ` Robert A Duff
2003-04-20 21:17           ` kat-Zygfryd
2003-04-21  2:25             ` John R. Strohm
2003-04-21 10:26               ` kat-Zygfryd
2003-04-21 12:59                 ` Robert A Duff
2003-04-21 16:29                   ` kat-Zygfryd
2003-04-21 17:25                     ` tmoran
2003-04-21 19:48                     ` Robert A Duff
2003-04-21 20:12                       ` kat-Zygfryd
2003-04-21 20:55                         ` Robert A Duff
2003-04-22 12:02                         ` John R. Strohm [this message]
replies disabled

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