
Permalink for comment 363759
RE[7]: Article in time,
by Matzon on Fri 15th May 2009 08:55 UTC in reply to "RE[6]: Article in time,"
Member since:

come on - read up on things!

There is no pure C/C++ OS either - they all need (some) ASM (I am not aware of register level access from within C - but I could easily be wrong).

Java has no way to execute asm code directly, however it can execute native code via JNI.

Thus you need a VM + JNI to create a Java OS - which is done by the JNode project:

However, all this aside - creating an OS in a language is not a requirement to prove its performance.

Java IS slower than C/C++ - however, it all depends on the compiler. Java has Hotspot which can do RUNTIME (jit) optimization whereas C/C++ has Ahead of Time compilers/optimizers. This means that c/c++ code will typically be optimized from the beginning whereas java needs some investigations to create the optimum path. This means that during an applications life-span it should (and often do) perform faster in Java.

This is basically what the LLVM project is doing for c/c++ - which means that c/c++ should get much faster, and gain some of the Java-jit benefits.

Reply Parent Score: 3