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=0.5 required=5.0 tests=BAYES_05,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,243dc2fb696a49cd,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews1.google.com!not-for-mail From: kevin.cline@gmail.com (Kevin Cline) Newsgroups: comp.lang.ada Subject: Ada Popularity: Comparison of Ada/Charles with C++ STL (and Perl) Date: 21 Sep 2004 17:21:38 -0700 Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 198.23.5.11 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1095812529 5102 127.0.0.1 (22 Sep 2004 00:22:09 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 22 Sep 2004 00:22:09 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:3911 Date: 2004-09-21T17:21:38-07:00 List-Id: As promised in the Ada popularity thread, I have taken one of the Charles examples and reimplemented it in C++. I used only the standard C++ language and libraries. The Ada/CHARLES main program body is 118 (non-blank) lines of code, plus an additional 40 lines of instantiations in eight other specification files, for a total of 158 lines and 9 files. The C++ implementation is 76 (non-blank) lines of code in a single file. For grins, I also wrote the program in Perl. That took 14 lines. Summary: Ada/Charles 158 lines, 9 files C++ 76 lines Perl 14 lines You can compare the implementations at http://www.geocities.com/kc0a/wordcount.html