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-Thread: 103376,243dc2fb696a49cd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Cesar Rabak Newsgroups: comp.lang.ada Subject: Re: Ada Popularity: Comparison of Ada/Charles with C++ STL (and Perl) Date: Wed, 22 Sep 2004 12:16:22 -0300 Message-ID: <41519746.8040801@acm.org> References: <11b4d.3849$d5.30042@newsb.telia.net> <1095860313.176522@yasure> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de waYrRCO6rdcAoFWX8nmungzv1kGF3MJbCa4fKA+I0Wm4RApyI= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: pt-br, pt Xref: g2news1.google.com comp.lang.ada:3944 Date: 2004-09-22T12:16:22-03:00 List-Id: Benjamin Ketcham escreveu: > Bj?rn Persson wrote: > >>Kevin Cline wrote: >> >> >>>Ada/Charles 158 lines, 9 files >>>C++ 76 lines >>>Perl 14 lines >> >>Neat. Now let's take three identical persons who haven't seen this >>program before, give them one version each, and see how long it takes >>them to understand it. >> >>In other words: What matters is how easy the program is to read and >>maintain. The line count is interesting only to the extent that it >>affects the readability. > > > Well, the line count affects readability rather profoundly, in > this example! Not being an expert in any of the languages > concerned, I can take a more objective view of readability > perhaps; and I can say that if I had to figure out and maintain > any of these programs, the one that easily fits in entirety > on an 80x24 screen wins my approval. I.e., this > might not scale to larger projects: I'm not at all sure I'd > rather read a 1400-line Perl program than a 7600-line C++ > program or a 15800-line Ada program. Actually, "none of the > above" sounds most appealing. I was wondering this. Thanks for this report Benjamin! > > OTOH, it does not appear that the three programs actually > implement the same spec. E.g., error messages are different > (and missing in the Perl version), and if I'm not mistaken > the Perl version reads input from stdin, the other two take > a file argument -- or is while(<>) in Perl smart/twisted enough > to read from a filename in argv[] if present, else stdin? I > certainly recall that it has extensively overloaded behaviour. > Anyway, this is not even a vaguely fair test until all three > actually have the same behaviour in detail. I second this. And for a quick and dirty comparison we have to figure out some (unique for all implementations) test suite, so we can check the overall behaviour (not only performance). -- Cesar Rabak > > --Benjamin >