Faster PHP fo shizzle—HipHop for PHP

[ATTIC: Please ignore]

The skinny

shoutout to me. I’ve been saying for years.

And where its speed is concerned, practically everyone seems to agree that PHP is slow

http://www.fiercecio.com/techwatch/story/facebook-working-improve-php/2010-02-02?utm_medium=nl&utm_source=internal

It’s not a JIT

According to our sources, Facebook has been working on a PHP compiler that will
increase speed by around 80% and offer a just-in-time (JIT) compilation engine that will offer a number of advantages
ReadWriteWeb

JITs are notoriously hard to write. What a JIT is.

HipHop is not a JIT

HipHop builds it’s own server. No Apache.
No support of Windows (currently).

Things that don’t work in HipHop

Runtime questions

http://blog.echolibre.com/2010/02/hiphop-for-php-facebook-unveils-its-magic/

- issue with buffer overflows
- security implications
- how it cometes with phi or roadsent php

Developer questions

Joe Stumps issues about code dump

The hype around this announcement seems over the top. HipHop isn’t going to be used by people looking to speed up something like a WordPress blog. It is going to be a last resort for those who don’t want to give up PHP for some reason.

@Patrick WordPress uses eval all over the place (you can probably pick any other random PHP project and find it used) so it won’t work
Carson McDonald.

@Carson WordPress does not use eval() all over the place. It does use a little eval() here and there. For instance:

HTMLpurifier library uses it for testing code (probably never executed by WordPress)
Smarty uses it (but Smarty dynamically generates PHP code, another no-no. Solution is not to use Smarty.)
The Atom API uses it to evaluate dates. (That’s a bug that probably should be fixed.)
A lot of plugins use it (Those can be coded around and updated.)

But the thing is most people deploying WordPress on a self-hosted are not going to have the capabilities of compiling and deploying their own web-server. HipHop is a project that rewards a large scale site with a large server/power footprint. The point it does is when the developer allocation of that is small relative to the size of the footprint and the benchmark is how much it costs to plan out half of your PHP servers. For most sites, that is minimal since they’re bottlenecked on MySQL, not the webserver (as Rasmus alludes to)

It certainly isn’t a “last resort” IMO. You (and others) make it sound like PHP is inherently slow. It is compared to C, but it’s actually comparable in speed to Python and Perl and faster than Ruby. Scripting development has always been about trading off

http://gigaom.com/2010/02/02/with-hiphop-facebook-gives-php-a-turbo-charge/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+gigaomnetwork+%28The+GigaOM+Network%29

PHP is interpreted on the fly
PHP is not interpreted on the fly (or not unusually so)

X Picture of Andrei
X Picture of Ben Ramsey
X Picture of Chris Jones: http://blogs.oracle.com/opal/2010/02/facebooks_hphp_initial_comment.html
X Picture of Pat Reilly
X Picture of Lion
X Picture of Me
- Picture of Scott
- Picture of Haiping speaking
X Picture of another engineer at FB
- Picture of FB PM
- Picture of Schwag
X Random pictures of facebook
- facebook dinner stuff

Links to read and reference:

http://www.internetnews.com/dev-news/article.php/3862506

http://technosailor.com/2010/02/04/hiphop-php-and-the-evolution-of-language/

http://developers.facebook.com/news.php?blog=1&story=358

http://www.allfacebook.com/2010/02/facebook-formerly-announces-hiphop-for-php/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+allfacebook+%28Facebook+Blog%29

http://ilia.ws/archives/213-My-Thoughts-on-HipHop.html

http://www.brandonsavage.net/hiphop-for-php-who-benefits-who-doesnt/

http://gigaom.com/2010/02/02/with-hiphop-facebook-gives-php-a-turbo-charge/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+gigaomnetwork+%28The+GigaOM+Network%29

http://blogs.zdnet.com/BTL/?p=30331

http://arstechnica.com/open-source/news/2009/03/google-launches-project-to-boost-python-performance-by-5x.ars

http://www.techcrunch.com/2010/02/02/facebook-hiphop-presentation/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Techcrunch+%28TechCrunch%29

http://blogs.oracle.com/opal/2010/02/facebooks_hphp_initial_comment.html

http://blog.echolibre.com/2010/02/hiphop-for-php-facebook-unveils-its-magic/

http://www.websdeveloper.com/community-news-responses-to-the-facebook-hiphop-announcement/

http://blog.roshambo.org/archives/PHPVille-almost-released-today.html

http://www.brandonsavage.net/hiphop-for-php-who-benefits-who-doesnt/

http://withoutscope.com/2010/2/3/hiphop-for-php-is-not-php?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+without_scope+%28without_scope%29

http://sentidoweb.com/2010/02/04/opiniones-sobre-hiphop-de-facebook.php

http://www.landoweb.com/2010/02/04/hiphop-your-way-to-php/

http://radar.oreilly.com/2010/02/what-facebooks-hiphop-means-fo.html

About tychay

light writing, word loving, ❤ coding
This entry was posted in PHP and tagged . Bookmark the permalink. Follow any comments here with the RSS feed for this post.

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.