Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Great Programming Language Shootout Revived
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-06-18 (15:39)
From: Brian Hurt <bhurt@s...>
Subject: Re: [Caml-list] Great Programming Language Shootout Revived
On Fri, 18 Jun 2004, Sebastien Ferre wrote:

> 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 :)

Actually, the idea I like is to pick a standard compression algorithm- say 
gzip, or bzip2- and compress the files.  This actually gives you a decent 
approximation of the amount of information the soure code contains- and 
entire sidesteps a lot of issues.  In addition to newlines and indenting, 
it also minimizes the effect of variable name length.  For example, the 
average name length for ocaml programs is probably a lot shorter than the 
average name length for java programs.

"Usenet is like a herd of performing elephants with diarrhea -- massive,
difficult to redirect, awe-inspiring, entertaining, and a source of
mind-boggling amounts of excrement when you least expect it."
                                - Gene Spafford 

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: