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.1 required=5.0 tests=BAYES_00,INVALID_MSGID, TO_NO_BRKTS_PCNT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,60fc398daa7dd9cf X-Google-Attributes: gid103376,public From: "Robert I. Eachus" Subject: Re: KSLOC estimates Ada vs C++ Date: 1999/05/28 Message-ID: <374EE907.5F961B37@mitre.org>#1/1 X-Deja-AN: 483213967 Content-Transfer-Encoding: 7bit Organization: The MITRE Corporation X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-05-28T00:00:00+00:00 List-Id: I'll echo what has already been said, but make two additional comments. First, if you implement the same algorithm in both Ada and C++, the usual result is that if you deal with the possible error conditions, the Ada code is smaller, otherwise the C++ wins. But we are talking a very small (order of 10% either way) effect. Second, the major difference you are likely to see is where the application specific libraries (packages or classes) are available in one language and not the other, or the library is more suited to the actual problem statement. For example, when doing this type of comparison, you often have to be willing to edit the requirements in the area of terminal or screen IO. Neither language is obviously better in this area, but you have to be willing to accept the langauge defaults. Take a program that reads in floating point numbers. Ada and C++ have different rules for things like non-base ten values. You would have to do a lot of extra work to get C++ to accept 16#FFFF.FFFF#E-23, and some extra work to get Ada to reject it. -- Robert I. Eachus with Standard_Disclaimer; use Standard_Disclaimer; function Message (Text: in Clever_Ideas) return Better_Ideas is...