News for hackers. Stuff that matters.
Re:If Java Is Dying, It Sure Looks Awfully Healthy by danieldk on Thursday October 10, 2013 @02:24AM (#6525995)
The JVM compiler compiles for the JVM, which is written in C. So, how again can something written in C perform faster than...something written in C?

Well, first of all, the JVM generates machine code, not C.

Apart from that, you can easily be shown to be wrong. If you are compiling a binary with C, you are compiling for the lowest common denominator. Say, if you are compiling for x86_64, you are probably compiling for all x86_64 CPUs. You can optimize for newer instances of x86_64 (say Core i3), but you cannot use any instructions that are not available on e.g. Core 2, if that is the lowest common denominator that you support.

The Java VM could, on the other hand, decide to use instructions during the compilation of hot spots which are available on a Core i3 and not on a Core 2, when it detects that the CPU is a Core i3.

There are no comments on this comment yet.