News for hackers. Stuff that matters.
Re:A cool programming challenge by latk on Friday November 29, 2013 @06:14AM (#6818927)
Different languages get a different amount of execution time for the test cases. A factor is given in the table of available programming languages. It is interesting to see where the languages are grouped:

Compiled Languages (1 × time limit): C, C++, Perl, Clojure, JavaScript, Haskell.

Java (2 × time limit + 2): Java.

Scripting Languages (3 × time limit): Python, Ruby, PHP.

I guess the "+2" for Java tries to account for JVM startup. But if Clojure will also run on the JVM, why doesn't it get the same advantage?

I am also surprised to see Perl being grouped with the compiled languages, as it actually has a performance profile similar to CPython (which I assume will be used for Python – the entries for Python, Java, Ruby, PHP, Clojure don't mention which of the myriad interpreters/VMs will be used).

There are no comments on this comment yet.