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 363744
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[5]: Article in time,
by pmarin on Fri 15th May 2009 07:01 UTC in reply to "RE[4]: Article in time,"
pmarin
Member since:
2006-12-30

Probably your computer is toooooooo fast also ;)

Reply Parent Score: 1

RE[6]: Article in time,
by boulabiar on Fri 15th May 2009 07:41 in reply to "RE[5]: Article in time,"
boulabiar Member since:
2009-04-18

OK OK, Java is Faaaaaasst (Forward)

Why there is no java made OS ?
why they use C ?

Reply Parent Score: 1

RE[7]: Article in time,
by Matzon on Fri 15th May 2009 08:55 in reply to "RE[6]: Article in time,"
Matzon Member since:
2005-07-06

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: http://www.jnode.org/

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[7]: Article in time,
by giddie on Fri 15th May 2009 09:06 in reply to "RE[6]: Article in time,"
giddie Member since:
2008-04-29

Why there is no java made OS ?
why they use C ?


Don't you think that's a little petty?

* C is a relatively low-level language, which makes it ideal for OS internals.
* C++ is a middle-level language, but inherits all the low-level bits from C.
* Java is a pure middle-level language that completely abstracts away OS details.

We need to accept that different languages are useful for different things. Personally, I don't like Java at all, but I must accept that it has its uses!

Edited 2009-05-15 09:11 UTC

Reply Parent Score: 1

RE[7]: Article in time,
by marcelkoopman on Sat 16th May 2009 08:26 in reply to "RE[6]: Article in time,"
marcelkoopman Member since:
2007-03-23

OK OK, Java is Faaaaaasst (Forward)

Why there is no java made OS ?
why they use C ?

Java OS is jNode.
http://jnode.org/

Reply Parent Score: 1