Why java?

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Why java?

Post by MELERIX »

Java 7 is the future guys ;)
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: Why java?

Post by JIV »

wonder when it will be out..
User avatar
Aikimaniac
L2j Inner Circle
L2j Inner Circle
Posts: 3048
Joined: Sun Aug 07, 2005 11:42 pm
Location: Slovakia

Re: Why java?

Post by Aikimaniac »

JIV wrote:wonder when it will be out..
its planned to september 2010 so no idea..maybe xmas ? :)
Image
User avatar
poltomb
L2j Veteran
L2j Veteran
Posts: 225
Joined: Wed Jul 13, 2005 7:13 am
Location: USA

Re: Why java?

Post 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.
Post Reply