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: 1014db,dab7d920e4340f12 X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,dab7d920e4340f12 X-Google-Attributes: gid103376,public From: Ken Garlington Subject: Re: C is 'better' than Ada because... Date: 1996/07/02 Message-ID: <31D9231E.5AE4@lfwc.lockheed.com>#1/1 X-Deja-AN: 163336753 references: <4q8fbo$701@red.interact.net.au> <31d5bbbb.161236846@netline-fddi.jpl.nasa.gov> <4r573p$1sf@mulga.cs.mu.OZ.AU> <31D7CFB5.15FB7483@mailgw.sanders.lockheed.com> content-type: text/plain; charset=us-ascii organization: Lockheed Martin Tactical Aircraft Systems mime-version: 1.0 newsgroups: comp.lang.ada,comp.lang.c x-mailer: Mozilla 2.02 (Macintosh; I; 68K) Date: 1996-07-02T00:00:00+00:00 List-Id: Mike Roske wrote: > > > As far as I am aware, it's quite possible to do all those things you can > > do in C in Ada too. > > > > Ok, then here's a challenge. Point me at any compress/decompress > package (a la Zip) written in Ada. Actually, I wrote an Ada implementation of Huffman encoding some years ago, just for the fun of it. I'd give it to you, but I never used it for anything real and so I didn't keep it. If you have a "C" implementation of Zip, you can either (1) just interface it with your Ada code, so long as you don't mind maintaining the C fragment, or (2) take the C implementation, extract the algorithm, and implement it in Ada. Both should be straightforward to do. I think you'll find that, if there's already plenty of good implementations of an algorithm in C, FORTRAN, etc., there's not a lot of motivation to recode them. I suspect most Ada programmers want to solve problems that haven't already been solved to death. :) > *-------------------------------------------------------* > * Michael Roske > * Sanders, A Lockheed Martin Company > * mroske@mailgw.sanders.lockheed.com > * (603) 885-9240 > *-------------------------------------------------------* > * "I'd rather be flying RC..." > *-------------------------------------------------------* -- LMTAS - "Our Brand Means Quality"