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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9c86eb13dd395066 X-Google-Attributes: gid103376,public From: John Apa Subject: Re: CRC in Ada? Date: 1997/03/07 Message-ID: <33205A31.3176@delphi.dasd.honeywell.com>#1/1 X-Deja-AN: 223957157 References: <1997Mar2.220652@nova.wright.edu> <331bf6ce.2832564@news.logica.co.uk> Organization: Honeywell DASD Newsgroups: comp.lang.ada Date: 1997-03-07T00:00:00+00:00 List-Id: Stephen Garriga wrote: > snip > _IF_ you are doing the CRC on a file (as I was), I would advise you > to consider performance. I found (exactly the same algorithm) > implemented in C took an order of magnitude seconds less to execute > than the Ada equivalent. Perhaps, but it so happens that I also implemented a crc algorithm in both c and ada. I found that the ada was slightly faster (sun & i960, using gnat for both) when running on disk files, and about even when running against memory sections. Hmm. IMVHO: Any broad statement (C faster than Ada, or the converse) will be found to have counter examples. Results may vary, as has been shown in this group time and again. Choosing c or ada without looking at the results from your particular implementations is simply bad engineering. If you have a good compiler and knowledge of the language, you can write very good/fast/safe/_understandable_ code. Ada95 has added many features which will assist in this for a variety of situations and systems. To those who don't think ada95 is the best thing out there right now, read the Rationale for this ANSI/ISO/IEC standard. It should change your mind. You could read the one for c++, but only if you're a physic. ;-) John > > Steve Garriga garriga@logica.com > type OPINION is access PERSONAL_THOUGHTS_AND_BIAS; > OPINION_STATED : new OPINION := not LOGICA.OPINION; > Logica UK Ltd. +44 171 637 9111 http://www.logica.com -- *********************************** That's my opinion, not Honeywell's. John Thomas Apa Honeywell Defense Avionics Systems Albuquerque, New Mexico. ***********************************