<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: PHP to Java bytecode</title>
	<atom:link href="http://www.sitepoint.com/blogs/2005/12/21/php-to-java-bytecode/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2005/12/21/php-to-java-bytecode/</link>
	<description></description>
	<pubDate>Thu, 21 Aug 2008 23:22:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Dennis</title>
		<link>http://www.sitepoint.com/blogs/2005/12/21/php-to-java-bytecode/#comment-41517</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Mon, 31 Jul 2006 03:47:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1359#comment-41517</guid>
		<description>This project is great for Caucho users, but completely useless for the larger Java and PHP communities.</description>
		<content:encoded><![CDATA[<p>This project is great for Caucho users, but completely useless for the larger Java and PHP communities.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.sitepoint.com/blogs/2005/12/21/php-to-java-bytecode/#comment-12438</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 05 Jan 2006 12:23:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1359#comment-12438</guid>
		<description>&lt;strong&gt;dfffdrf&lt;/strong&gt;&lt;em&gt;dddddd&lt;/em&gt;dddddd&lt;blockquote&gt;&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p><strong>dfffdrf</strong><em>dddddd</em>dddddd<br />
<blockquote></blockquote></p>]]></content:encoded>
	</item>
	<item>
		<title>By: mlemos</title>
		<link>http://www.sitepoint.com/blogs/2005/12/21/php-to-java-bytecode/#comment-12307</link>
		<dc:creator>mlemos</dc:creator>
		<pubDate>Mon, 26 Dec 2005 20:52:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1359#comment-12307</guid>
		<description>If you read again, maybe you notice I said &lt;strong&gt;some Java fans&lt;/strong&gt;. However, it seems did not see that. What do you call somebody that does not see? Never mind. Maybe I just need glasses! ;-)</description>
		<content:encoded><![CDATA[<p>If you read again, maybe you notice I said <strong>some Java fans</strong>. However, it seems did not see that. What do you call somebody that does not see? Never mind. Maybe I just need glasses! ;-)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: bonefry</title>
		<link>http://www.sitepoint.com/blogs/2005/12/21/php-to-java-bytecode/#comment-12305</link>
		<dc:creator>bonefry</dc:creator>
		<pubDate>Mon, 26 Dec 2005 20:16:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1359#comment-12305</guid>
		<description>&#62; Therefore, making claims that PHP compiled to Java is 6 times faster, is 
&#62; wishful thinking. They should try real world scripts instead of HelloWorld 
&#62; snippets before making any serious performance claims.

LOL

&#62; It seems that for some Java fans, admiting that PHP can be as good or better 
&#62; than Java is a great humilliation. Pride and arrogance are not uncommon in the 
&#62; Java world.

Caucho has added PHP support to their Resin server to broaden their offerings.
PHP can act as a glue language for Java now instead of C.

But I see your arrogance blinds you. And yet I won't say that *all* PHP fans are blinded by arrogance, just because you are ;)</description>
		<content:encoded><![CDATA[<p>&gt; Therefore, making claims that PHP compiled to Java is 6 times faster, is<br />
&gt; wishful thinking. They should try real world scripts instead of HelloWorld<br />
&gt; snippets before making any serious performance claims.</p>
<p>LOL</p>
<p>&gt; It seems that for some Java fans, admiting that PHP can be as good or better<br />
&gt; than Java is a great humilliation. Pride and arrogance are not uncommon in the<br />
&gt; Java world.</p>
<p>Caucho has added PHP support to their Resin server to broaden their offerings.<br />
PHP can act as a glue language for Java now instead of C.</p>
<p>But I see your arrogance blinds you. And yet I won&#8217;t say that *all* PHP fans are blinded by arrogance, just because you are ;)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: mlemos</title>
		<link>http://www.sitepoint.com/blogs/2005/12/21/php-to-java-bytecode/#comment-12205</link>
		<dc:creator>mlemos</dc:creator>
		<pubDate>Wed, 21 Dec 2005 17:03:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1359#comment-12205</guid>
		<description>PHP is a glue language. It means that most of the time it is calling external libraries hand-written in C. So, when somebody compares the speed of PHP with Java or anything else, they should be comparing with the speed of the external libraries because most of time of executing CPU intensive tasks is spent on such libraries.

For instance, if you want to use cryptography algorithms, you use mcrypt/mhash functions. If you want to use regular expressions, you use preg functions, etc..

Furthemore, great part of the time that a PHP scripts take to execute is on waiting: waiting for receiving data from the Web browser or Web server, waiting for sending or receiving data from a database server, etc..

Therefore, making claims that PHP compiled to Java is 6 times faster, is wishful thinking. They should try real world scripts instead of HelloWorld snippets before making any serious performance claims.

It seems that for some Java fans, admiting that PHP can be as good or better than Java is a great humilliation. Pride and arrogance are not uncommon in the Java world.

However, a good professional should stay away from passions that blind people, so they choose a language more appropriate according to their current needs. Sometimes PHP is better, other times Java or something else is more convinient. I am sure that most of the times performance is not the issue that makes developers with a clue decide.

On a related subject, AFAIK &lt;a href="http://www.roadsend.com/" rel="nofollow"&gt;Roadsend&lt;/a&gt; can not only compile PHP code into native code, but also perform JIT. This means that you can mix compiled code with PHP source code. The PHP source code is compiled Just-In-Time before executing. So, JIT compilers are not a privilege of the Java world.

There is also the &lt;a href="http://www.phpcompiler.org/" rel="nofollow"&gt;PHPCompiler&lt;/a&gt; project that is Open Source and seems to promise similar goals to RoadSend.</description>
		<content:encoded><![CDATA[<p>PHP is a glue language. It means that most of the time it is calling external libraries hand-written in C. So, when somebody compares the speed of PHP with Java or anything else, they should be comparing with the speed of the external libraries because most of time of executing CPU intensive tasks is spent on such libraries.</p>
<p>For instance, if you want to use cryptography algorithms, you use mcrypt/mhash functions. If you want to use regular expressions, you use preg functions, etc..</p>
<p>Furthemore, great part of the time that a PHP scripts take to execute is on waiting: waiting for receiving data from the Web browser or Web server, waiting for sending or receiving data from a database server, etc..</p>
<p>Therefore, making claims that PHP compiled to Java is 6 times faster, is wishful thinking. They should try real world scripts instead of HelloWorld snippets before making any serious performance claims.</p>
<p>It seems that for some Java fans, admiting that PHP can be as good or better than Java is a great humilliation. Pride and arrogance are not uncommon in the Java world.</p>
<p>However, a good professional should stay away from passions that blind people, so they choose a language more appropriate according to their current needs. Sometimes PHP is better, other times Java or something else is more convinient. I am sure that most of the times performance is not the issue that makes developers with a clue decide.</p>
<p>On a related subject, AFAIK <a href="http://www.roadsend.com/" rel="nofollow">Roadsend</a> can not only compile PHP code into native code, but also perform JIT. This means that you can mix compiled code with PHP source code. The PHP source code is compiled Just-In-Time before executing. So, JIT compilers are not a privilege of the Java world.</p>
<p>There is also the <a href="http://www.phpcompiler.org/" rel="nofollow">PHPCompiler</a> project that is Open Source and seems to promise similar goals to RoadSend.</p>]]></content:encoded>
	</item>
</channel>
</rss>
