From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,39f3c359196fe8b4 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-22 05:47:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.airnews.net!cabal12.airnews.net!usenet From: "John R. Strohm" Newsgroups: comp.lang.ada Subject: Re: for x'address or variant Date: Tue, 22 Apr 2003 07:02:10 -0500 Organization: Airnews.net! at Internet America Message-ID: X-Orig-Message-ID: References: <52C30E21B2695ADA.9A5568A9039EC23D.34356CD468622AAC@lp.airnews.net> Abuse-Reports-To: abuse at airmail.net to report improper postings NNTP-Proxy-Relay: library2.airnews.net NNTP-Posting-Time: Tue Apr 22 07:46:14 2003 NNTP-Posting-Host: !\MbE1k-WQm@h\& (Encoded at Airnews!) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Xref: archiver1.google.com comp.lang.ada:36343 Date: 2003-04-22T07:02:10-05:00 List-Id: "kat-Zygfryd" <6667@wp.pl> wrote in message news:b81jc5$4u7$1@news.onet.pl... > "Robert A Duff" 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.