[ATTIC: Please ignore]
shoutout to me. I’ve been saying for years.
And where its speed is concerned, practically everyone seems to agree that PHP is slow
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
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
– issue with buffer overflows
– security implications
– how it cometes with phi or roadsent php
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 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
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: