<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>hyperscale.at &#187; php</title>
	<atom:link href="http://asherbond.com/blog/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://asherbond.com/blog</link>
	<description>Service-orientation-as-a-Service, SOA, PaaS, IaaS, and Economies of Autoscale</description>
	<lastBuildDate>Sun, 22 Jan 2012 00:18:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Scalability: Facebook Releases HipHop &#8211; An Open Source PHP to C++ Transformer</title>
		<link>http://asherbond.com/blog/2010/02/02/scalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=scalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer</link>
		<comments>http://asherbond.com/blog/2010/02/02/scalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 19:56:18 +0000</pubDate>
		<dc:creator>Asher Bond</dc:creator>
				<category><![CDATA[software development]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[scalability]]></category>

		<guid isPermaLink="false">http://www.asherbond.com/blog/?p=158</guid>
		<description><![CDATA[Facebook is written mostly in PHP, which generally scales well for most sites. Large scale web sites can greatly reduce memory resource utilization as well as CPU resource utilization by eliminating unused and inefficient code instructions. Although PHP is considered to be a scripting language, PHP&#8217;s parser does in fact compile code before it is [...]]]></description>
			<content:encoded><![CDATA[<p>Facebook is written mostly in PHP, which generally scales well for most sites. Large scale web sites can greatly reduce memory resource utilization as well as CPU resource utilization by eliminating unused and inefficient code instructions.</p>
<p>Although PHP is considered to be a scripting language, PHP&#8217;s parser does in fact compile code before it is processed by the Zend Engine. Opcode caching allows compiled PHP code to be shared and recycled in memory, rather than compiling the PHP source on the fly. Opcode caching is already available in Zend Server&#8217;s community edition and will be available when PHP6 is released.</p>
<p><a href="http://www.facebook.com/facebook/posts/309020463351#/note.php?note_id=280583813919&#038;id=9445547199&#038;ref=nf" target="_fbhiphop">HipHop</a> takes a much more aggressive approach to performance optimization by translating the source code into C++ which can be compiled into more machine specific instructions. Not only does HipHop compile the source code into a more system friendly language, it also rewrites your code to be more efficient. Through static binding, scripty system calls and functions such as eval() are eliminated and loosely defined types are tightened up to meet specific runtime requirements. Here is an illustration of how HipHop optimizes PHP:<br />
<a href="http://www.asherbond.com/image-codes/src/asherbond.com/blog/wp-content/uploads/2010/02/HipHop_transformation_process.png"><img src="http://cdn.asherbond.com/blog/wp-content/uploads/2010/02/HipHop_transformation_process.png" alt="How Facebook HipHop Optimizes PHP"  /></a>

</p>
<p>According to Facebook&#8217;s Senior Engineer Haiping Zhao, HipHop reduced Facebook&#8217;s CPU overhead by 50%!</p>
<p>HipHop will be released tonight under the open PHP license.</p>
Share and Enjoy:<a rel="nofollow" target="_blank"  href="http://www.printfriendly.com/print/new?url=http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/printfriendly.png" class="sociable-img sociable-hovers" title="Print" alt="Print" /></a><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F&amp;title=Scalability%3A%20Facebook%20Releases%20HipHop%20-%20An%20Open%20Source%20PHP%20to%20C%2B%2B%20Transformer&amp;bodytext=Facebook%20is%20written%20mostly%20in%20PHP%2C%20which%20generally%20scales%20well%20for%20most%20sites.%20Large%20scale%20web%20sites%20can%20greatly%20reduce%20memory%20resource%20utilization%20as%20well%20as%20CPU%20resource%20utilization%20by%20eliminating%20unused%20and%20inefficient%20code%20instructions.%0D%0A%0D%0AAlthou" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a><a rel="nofollow" target="_blank"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/sphinn.png" class="sociable-img sociable-hovers" title="Sphinn" alt="Sphinn" /></a><a rel="nofollow" target="_blank"  href="http://delicious.com/post?url=http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F&amp;title=Scalability%3A%20Facebook%20Releases%20HipHop%20-%20An%20Open%20Source%20PHP%20to%20C%2B%2B%20Transformer&amp;notes=Facebook%20is%20written%20mostly%20in%20PHP%2C%20which%20generally%20scales%20well%20for%20most%20sites.%20Large%20scale%20web%20sites%20can%20greatly%20reduce%20memory%20resource%20utilization%20as%20well%20as%20CPU%20resource%20utilization%20by%20eliminating%20unused%20and%20inefficient%20code%20instructions.%0D%0A%0D%0AAlthou" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/delicious.png" class="sociable-img sociable-hovers" title="del.icio.us" alt="del.icio.us" /></a><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F&amp;t=Scalability%3A%20Facebook%20Releases%20HipHop%20-%20An%20Open%20Source%20PHP%20to%20C%2B%2B%20Transformer" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a><a rel="nofollow" target="_blank"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F&amp;title=Scalability%3A%20Facebook%20Releases%20HipHop%20-%20An%20Open%20Source%20PHP%20to%20C%2B%2B%20Transformer" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/mixx.png" class="sociable-img sociable-hovers" title="Mixx" alt="Mixx" /></a><a rel="nofollow" target="_blank"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F&amp;title=Scalability%3A%20Facebook%20Releases%20HipHop%20-%20An%20Open%20Source%20PHP%20to%20C%2B%2B%20Transformer&amp;annotation=Facebook%20is%20written%20mostly%20in%20PHP%2C%20which%20generally%20scales%20well%20for%20most%20sites.%20Large%20scale%20web%20sites%20can%20greatly%20reduce%20memory%20resource%20utilization%20as%20well%20as%20CPU%20resource%20utilization%20by%20eliminating%20unused%20and%20inefficient%20code%20instructions.%0D%0A%0D%0AAlthou" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/googlebookmark.png" class="sociable-img sociable-hovers" title="Google Bookmarks" alt="Google Bookmarks" /></a><a rel="nofollow" target="_blank"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F&amp;title=Scalability%3A%20Facebook%20Releases%20HipHop%20-%20An%20Open%20Source%20PHP%20to%20C%2B%2B%20Transformer&amp;source=hyperscale.at+Service-orientation-as-a-Service%2C+SOA%2C+PaaS%2C+IaaS%2C+and+Economies+of+Autoscale&amp;summary=Facebook%20is%20written%20mostly%20in%20PHP%2C%20which%20generally%20scales%20well%20for%20most%20sites.%20Large%20scale%20web%20sites%20can%20greatly%20reduce%20memory%20resource%20utilization%20as%20well%20as%20CPU%20resource%20utilization%20by%20eliminating%20unused%20and%20inefficient%20code%20instructions.%0D%0A%0D%0AAlthou" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/linkedin.png" class="sociable-img sociable-hovers" title="LinkedIn" alt="LinkedIn" /></a><a rel="nofollow" target="_blank"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F&amp;t=Scalability%3A%20Facebook%20Releases%20HipHop%20-%20An%20Open%20Source%20PHP%20to%20C%2B%2B%20Transformer" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/myspace.png" class="sociable-img sociable-hovers" title="MySpace" alt="MySpace" /></a><a rel="nofollow" target="_blank"  href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F&amp;h=Scalability%3A%20Facebook%20Releases%20HipHop%20-%20An%20Open%20Source%20PHP%20to%20C%2B%2B%20Transformer" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/newsvine.png" class="sociable-img sociable-hovers" title="NewsVine" alt="NewsVine" /></a><a rel="nofollow" target="_blank"  href="http://www.printfriendly.com/print/new?url=http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/pdf.png" class="sociable-img sociable-hovers" title="PDF" alt="PDF" /></a><a rel="nofollow" target="_blank"  href="http://reddit.com/submit?url=http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F&amp;title=Scalability%3A%20Facebook%20Releases%20HipHop%20-%20An%20Open%20Source%20PHP%20to%20C%2B%2B%20Transformer" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/reddit.png" class="sociable-img sociable-hovers" title="Reddit" alt="Reddit" /></a><a rel="nofollow" target="_blank"  href="http://slashdot.org/bookmark.pl?title=Scalability%3A%20Facebook%20Releases%20HipHop%20-%20An%20Open%20Source%20PHP%20to%20C%2B%2B%20Transformer&amp;url=http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/slashdot.png" class="sociable-img sociable-hovers" title="Slashdot" alt="Slashdot" /></a><a rel="nofollow" target="_blank"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F&amp;title=Scalability%3A%20Facebook%20Releases%20HipHop%20-%20An%20Open%20Source%20PHP%20to%20C%2B%2B%20Transformer" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png" class="sociable-img sociable-hovers" title="StumbleUpon" alt="StumbleUpon" /></a><a rel="nofollow" target="_blank"  href="http://twitter.com/home/?status=tip%20@Techmeme%20http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F%20Scalability%3A%20Facebook%20Releases%20HipHop%20-%20An%20Open%20Source%20PHP%20to%20C%2B%2B%20Transformer" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/techmeme.png" class="sociable-img sociable-hovers" title="Suggest to Techmeme via Twitter" alt="Suggest to Techmeme via Twitter" /></a><a rel="nofollow" target="_blank"  href="http://technorati.com/faves?add=http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/technorati.png" class="sociable-img sociable-hovers" title="Technorati" alt="Technorati" /></a><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=Scalability%3A%20Facebook%20Releases%20HipHop%20-%20An%20Open%20Source%20PHP%20to%20C%2B%2B%20Transformer%20-%20http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a><a rel="nofollow" target="_blank"  href="http://www.ekudos.nl/artikel/nieuw?url=http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F&amp;title=Scalability%3A%20Facebook%20Releases%20HipHop%20-%20An%20Open%20Source%20PHP%20to%20C%2B%2B%20Transformer&amp;desc=Facebook%20is%20written%20mostly%20in%20PHP%2C%20which%20generally%20scales%20well%20for%20most%20sites.%20Large%20scale%20web%20sites%20can%20greatly%20reduce%20memory%20resource%20utilization%20as%20well%20as%20CPU%20resource%20utilization%20by%20eliminating%20unused%20and%20inefficient%20code%20instructions.%0D%0A%0D%0AAlthou" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/ekudos.png" class="sociable-img sociable-hovers" title="eKudos" alt="eKudos" /></a><a rel="nofollow" target="_blank"  href="http://www.friendfeed.com/share?title=Scalability%3A%20Facebook%20Releases%20HipHop%20-%20An%20Open%20Source%20PHP%20to%20C%2B%2B%20Transformer&amp;link=http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/friendfeed.png" class="sociable-img sociable-hovers" title="FriendFeed" alt="FriendFeed" /></a><a rel="nofollow" target="_blank"  href="http://www.google.com/reader/link?url=http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F&amp;title=Scalability%3A%20Facebook%20Releases%20HipHop%20-%20An%20Open%20Source%20PHP%20to%20C%2B%2B%20Transformer&amp;srcURL=http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F&amp;srcTitle=hyperscale.at+Service-orientation-as-a-Service%2C+SOA%2C+PaaS%2C+IaaS%2C+and+Economies+of+Autoscale" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/googlebuzz.png" class="sociable-img sociable-hovers" title="Google Buzz" alt="Google Buzz" /></a><a rel="nofollow" target="_blank"  href="http://asherbond.com/blog/feed/" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/rss.png" class="sociable-img sociable-hovers" title="RSS" alt="RSS" /></a><a rel="nofollow" target="_blank"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fasherbond.com%2Fblog%2F2010%2F02%2F02%2Fscalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer%2F&amp;t=Scalability%3A%20Facebook%20Releases%20HipHop%20-%20An%20Open%20Source%20PHP%20to%20C%2B%2B%20Transformer&amp;s=Facebook%20is%20written%20mostly%20in%20PHP%2C%20which%20generally%20scales%20well%20for%20most%20sites.%20Large%20scale%20web%20sites%20can%20greatly%20reduce%20memory%20resource%20utilization%20as%20well%20as%20CPU%20resource%20utilization%20by%20eliminating%20unused%20and%20inefficient%20code%20instructions.%0D%0A%0D%0AAlthou" ><img src="http://asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/tumblr.png" class="sociable-img sociable-hovers" title="Tumblr" alt="Tumblr" /></a><br/><br/>]]></content:encoded>
			<wfw:commentRss>http://asherbond.com/blog/2010/02/02/scalability-facebook-releases-hiphop-an-open-source-php-to-c-transformer/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using memcached
Database Caching using memcached
Object Caching 269/308 objects using memcached
Content Delivery Network via Amazon Web Services: S3: cdn.asherbond.com

Served from: asherbond.com @ 2012-02-04 18:30:23 -->
