Linked by Thom Holwerda on Thu 14th May 2009 15:39 UTC
Java This article explains how to develop and implement trees in the Standard Widget Toolkit. Learn how an SWT tree is created and populated with data, how columns can be used to categorize data, how a tree can be extended to support row sorting, and how the tree's content can be searched.
Thread beginning with comment 363759
To view parent comment, click here.
To read all comments associated with this story, please click here.
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

RE[8]: Article in time,
by dleskov on Mon 18th May 2009 09:04 in reply to "RE[7]: Article in time,"
dleskov Member since:

> Java IS slower than C/C++

Not quite true:

Reply Parent Score: 1