|
Posted by Lew on 11/14/07 18:33
Steve wrote:
> not a fully compiled language. just like msil that is executed by the .net
> framework, java [sic] need jre [sic]. not much of a greater advantage there.
Actually, Java JVMs are quite effective at runtime code optimizations.
"Wojtek" <nowhere@a.com> wrote in message
>> The server reads the byte code and uses the Java Runtime Environment (JRE)
>> to run it.
> ...
>> - The JRE will inspect the code execution path and will optimize it on the
>> fly.
Steve wrote:
> NO DIFFERENT THAN [sic] PHP. you need to quantify and qualify 'optimize'.
Actually, it's quite different, for most JVMs. JVMs perform inlining, loop
unrolling, enregistering, escape analysis, common-code refactoring,
just-in-time adaptive compilation and various forms of run-time analysis that
static-compilation tools are hard-pressed to achieve. While it's certainly
possible to do these things with PHP, most interpreters don't.
The various optimizations in the JVM achieve at least a ten-fold increase over
strictly interpreted bytecode, according to articles I've read. I saw that
simply switching a major enterprise server at a job site from "-client" to
"-server" doubled its throughput.
If I may be so bold, resorting to /ad hominem/ remarks in your exposition
redounded to its detriment.
--
Lew
Navigation:
[Reply to this message]
|