You are here: Re: PHP compared to Java/J2EE « PHP Programming Language « IT news, forums, messages
Re: PHP compared to Java/J2EE

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация