News for hackers. Stuff that matters.
Re:Facebook Porting PHP To JVM by jrockway on Sunday August 12, 2012 @07:24PM (#4373952)
Yes. http://shootout.alioth.debian.org/u64q/which-programming-lan...

Note that Java compares very favorably with C. (Of course, the real thing to take away from that chart is: why don't all the JVM users switch to Haskell? It's more concise, safer, and has a better community.)

Re:Facebook Porting PHP To JVM by SkyMarshal on Sunday August 12, 2012 @08:16PM (#4374054)
Many JVM developers for whom programming is craft rather than a day job are definitely looking at both Scala and Haskell. Lots of excellent stuff going on with both, as you point out - concise, safer.
Re:Facebook Porting PHP To JVM by mitjak on Sunday August 12, 2012 @08:45PM (#4374119)
I'll just have to trust you on that I suppose.
Re:Facebook Porting PHP To JVM by code-dog on Monday August 13, 2012 @03:30AM (#4374860)
That is true. As someone who thinks both ways (craft and day job) the issue with Scala (that with which I have the most experience) is the tooling.
Re:Facebook Porting PHP To JVM by tedunangst on Sunday August 12, 2012 @08:40PM (#4374108)
The JVM can be bootstrapped relatively easily compared to Haskell. It's just C++ code. If I gave you a computer with a C and C++ compilers, and the ghc source, what would you do?
Re:Facebook Porting PHP To JVM by jrockway on Monday August 13, 2012 @07:03AM (#4375278)
I'd make a snide comment about receiving a phone call from 1980 asking for their computer back.
Re:Facebook Porting PHP To JVM by tristanj on Sunday August 12, 2012 @09:57PM (#4374277)
Now that benchmark you linked has a hidden bias towards Java. If you read the methodology listed in their FAQ, they mention they ran each benchmark for Java 66 times in the same JVM instance before discarding the first 65 results, which leaves out the initial iterations before JIT has kicked in. For servers, which perform many similar operations for each client and are rarely restarted, the benchmark you posted is probably valid. But for jobs that wouldn't benefit from JIT, Java would perform much more slowly.
Re:Facebook Porting PHP To JVM by igouy on Sunday August 12, 2012 @10:37PM (#4374359)
NOT TRUE.

If you read the methodology listed in their FAQ, they state in bold - "Time measurements include program startup time".

http://shootout.alioth.debian.org/help.php#time

If you read the section "What about Java?" they mention ADDITIONAL measurements, which are only shown on the Help page, and indicate how little difference JVM startup time makes once these programs have run for 5 seconds and 20 seconds.

http://shootout.alioth.debian.org/help.php#java