From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA05733; Fri, 18 Jun 2004 10:38:02 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA05721 for ; Fri, 18 Jun 2004 10:38:00 +0200 (MET DST) Received: from tweli.aber.ac.uk (tweli.aber.ac.uk [144.124.16.41]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i5I8bxEV016065 for ; Fri, 18 Jun 2004 10:38:00 +0200 Received: from localhost.localdomain ([127.0.0.1] helo=tweli.aber.ac.uk) by tweli.aber.ac.uk with esmtp (Exim 4.20) id 1BbEsp-0005En-Aq for caml-list@inria.fr; Fri, 18 Jun 2004 09:37:59 +0100 Received: from pcsbf.dcs.aber.ac.uk ([193.60.10.80] helo=aber.ac.uk) by tweli.aber.ac.uk with esmtp (Exim 4.20) id 1BbEsN-0005C9-BE for caml-list@inria.fr; Fri, 18 Jun 2004 09:37:31 +0100 Message-ID: <40D2B7C8.6090900@aber.ac.uk> Date: Fri, 18 Jun 2004 09:37:12 +0000 From: Sebastien Ferre Organization: UWA, Computer Science User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: fr-FR, en MIME-Version: 1.0 To: Ocaml Mailing List Subject: Re: [Caml-list] Great Programming Language Shootout Revived References: <891bd3390406171818585e3edd@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Sophos-Scanned: from sbf@aber.ac.uk virus scanned OK X-UWA-Mid: 1BbEsN-0005C9-BE X-UWA-Originating-IP: 193.60.10.80 X-UWA-Bounce-Filter: m9R4591pxjw X-Miltered: at nez-perce with ID 40D2A9E7.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; aber:99 caml-list:01 shootout:01 yaron:01 minsky:01 2004:99 cdt:99 line-counts:01 shootout:01 indentation:01 disadvantage:01 rank:99 ocaml:01 ocaml:01 ruby:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Yaron Minsky wrote: > On Thu, 17 Jun 2004 13:05:12 -0500 (CDT), Brian Hurt wrote: > > >>What's starting to happen, now that the project has started up again, is >>advocates/supporters of other languages have started to submit improved >>versions of the code for their languages. For example, I notice that >>Ocaml has dropped from it's #1 place in least lines of code to #2, with >>Ruby taking the lead. > > > For what it's worth, the ocaml line-counts in the shootout are > particularly bogus. There are lots of examples where the ocaml code > does things like putting entire for loops (or even nested for loops!) > on a single line. Here's an example: What about counting characters instead (counting several spaces in a row as only one character) ? As most languages just don't mind where you cut the lines, this seems to me a more fair measure. Also, this would give complete freedom on the indentation style without resulting in any disadvantage for the language rank. Just a suggestion :) Sébastien ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners