Page 2 of 2

Re: Why java?

Posted: Sat Jun 19, 2010 1:04 pm
by MELERIX
Java 7 is the future guys ;)

Re: Why java?

Posted: Sat Jun 19, 2010 3:25 pm
by JIV
wonder when it will be out..

Re: Why java?

Posted: Sat Jun 19, 2010 4:15 pm
by Aikimaniac
JIV wrote:wonder when it will be out..
its planned to september 2010 so no idea..maybe xmas ? :)

Re: Why java?

Posted: Sat Jun 19, 2010 4:33 pm
by poltomb
Naminator_X_ wrote:The fact that Java runs in virtual environment makes it slow. That virtualization costs.
Not entirely true.
Wikipedia wrote:One possible optimization, used by Sun's HotSpot Java Virtual Machine, is to combine interpretation and JIT compilation. The application code is initially interpreted, but the JVM monitors which sequences of bytecode are frequently executed and translates them to machine code for direct execution on the hardware. For bytecode which is executed only a few times, this saves the compilation time and reduces the initial latency; for frequently executed bytecode, JIT compilation is used to run at high speed, after an initial phase of slow interpretation. Additionally, since a program spends most time executing a minority of its code, the saved compilation time is big. Finally, during the initial code interpretation, execution statistics can be collected before compilation, which helps to perform better optimization.[2]
Reference, paragraph 2 in that section. If a server has been running long enough (and I have no idea what 'long enough' means) it will have the most used operations compiled to machine code, which is ~as fast as c++ compiled code.