The more whitespace you have indented your code the slower it gets, as the interpreter for loops over each character to arrive to the next instruction to execute, you can optimize this by converting to tabs or port to python's compiled variant Fixed Layout FORTRAN 77.
Name:
F r o z e n V o i d !!mJCwdV5J0Xy2A212011-12-12 10:22
I've hacked enough examples from that "shootout" to understand its written by retards who don't know how to optimize anything.
You can say "Java is faster than Fortran"(its in the data), because someone didn't bother optimizing the Fortran versions.
Racket is only 4 times slower than C. Seems about right. As far as I'm concerned if the number is less than 20, it's worth using the language instead of C.
Of course, now that C++11 is here, all languages that aren't C++ have been rendered totally obsolete.
>>22
I do. I was writing multi-expression lambdas in chained method calls in JS today. I stopped short of using combinators when I realized other staff members might have a hard time following it if they needed to make changes (it wasn't saving me much anyway.)
I chose it over 4 other popular languages I had the option of using for this particular problem.
Name:
Anonymous2011-12-12 20:47
>>23
awesome. javascript is the future; no other scripting language even comes close to harmony's feature set
>>24
I am not 100% certain about that, as long as we're talking about pre-production languages. There's a few in the works I'd like to explore. But if I had to pick two to keep I would not hesitate to choose JS as one of them.
Nothing much happened - it's a statistical artifact.
That simple approach to approximate averages doesn't work for every task, and coincidentally where the approach does work the Java programs perform somewhat better, and the result is another example why the median is a more sensible choice of descriptive statistic than the geometric mean.