News for hackers. Stuff that matters.
Re:The Arc Challenge in Ruby by geekles on Sunday December 20, 2009 @07:53AM (#1006077)
The challenge should be LOC total, including the LOC of the libraries used. That is the only possible way to compare apples to apples. Otherwise, what is to stop you from wrapping the entire solution into a "library" and just making a simple call-out to said library.

What is the total LOC of the implementation, period. Remove all ambiguity.

Re:The Arc Challenge in Ruby by xtho on Sunday December 20, 2009 @08:13AM (#1006086)
With respect to ambiguity: Wouldn't the LOC count have to also include the code of the interpreter or how would you compare an interpreted language where some method is "built-in" with another language where the method has to be implemented in a library?

Anyway, LOC count is a fetish that wreakes havoc in language communities like ruby. I'd be more interested in readability and clarity. Show the code to somebody who knows the language only superficially and take the time the person needs to figure out what the code does.

Re:The Arc Challenge in Ruby by notauser on Sunday December 20, 2009 @08:07AM (#1006083)
It would be possible to implement a processor that implemented this as a single assembly language instruction!

How low do you go before you give up? Silicon atom count?

I'd say that 'LoC using a language plus common libraries at least some developers use in real projects' is the most valid thing to measure.