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 Path: g2news1.google.com!news2.google.com!proxad.net!feeder2-1.proxad.net!news12-e.free.fr!not-for-mail X-Attribution: Jaco Newsgroups: comp.lang.ada Subject: Re: Ada Popularity: Comparison of Ada/Charles with C++ STL (and Perl) References: <338040f8.0409230912.70e3375b@posting.google.com> From: Eric Jacoboni Organization: Rogntutdju & Associates Date: Sat, 25 Sep 2004 02:18:42 +0200 Message-ID: User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (darwin) Cancel-Lock: sha1:B8VJPeqoq3LJQ0m9+9skZ+kgS+U= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 25 Sep 2004 02:18:43 MEST NNTP-Posting-Host: 81.56.238.119 X-Trace: 1096071523 news12-e.free.fr 27296 81.56.238.119:51048 X-Complaints-To: abuse@proxad.net Xref: g2news1.google.com comp.lang.ada:4144 Date: 2004-09-25T02:18:43+02:00 List-Id: kevin.cline@gmail.com (Kevin Cline) writes: > The Ruby implementation lines up with the Perl code almost token for > token, except that I used the Perl <> operator, and I didn't bother > storing the sort result in a variable. Of course, as Ruby is a language of the same high level as Perl. The Perl/Ruby code sticks with the "natural" algorithm to count words... There's no much ways to achieve this problem. The most natural could be "Hey, count the different word of these files" but, unfortunately, it could be done like that (when it will be possible, well, we have to choose another job). > I agree that Ruby is slightly more readable than Perl, but I don't > know about MUCH more readable. I think the use of %, @, and $ in Perl > is not obvious, and the <> operator is pretty magical, but the rest of > the code seems straightforward. For what i know, Ruby code is /always/ more readable than Perl code, for the same level of abstraction. If you can see the difference in this simple example, imagine for scripts of hundred and hundred lines... Readibility, that's my point. Back to Ada, i'm agree with you, your Ada code is not very readable : it's to "heavy", but perhaps because Charles is not adequate here ? I wonder if using such "small" packages as gnat.htable could be more appropriate for this particular example. I'm not fond of always using the same libs for different things. But i admit i don't know Charles very well. -- �ric Jacoboni, n� il y a 1399514759 secondes