Hip Hop for PHP An Introduction HPHP Migration
- Slides: 26
Hip. Hop for PHP An Introduction
HPHP
Migration Attempts • Python (FAIL) • C++ (FAIL) • Java (FAIL) • Python (Again) (FAIL)
Credit: http: //terrychay. com/article/hiphop-for-faster-php. shtml/4
Credit: http: //terrychay. com/article/hiphop-for-faster-php. shtml/4
http: //wiki. github. com/facebook/hiphop-php/
Similar Projects • APC/XCache/e. Accelerator • Roadsend • Quercus • Raven • Project Zero • Phalanger • PHC
Issues?
What Isn’t Supported?
“If eval() is the answer, you’re almost certainly asking the wrong question. ” - Rasmus
Other methods of dynamic code generation (writing PHP code on the fly, Smarty, etc. )
$varname = “yellow”; $yellow = “Hello, World!n”; echo $$varname;
Others. . . create_function() preg_replace(‘/. */e’) *_exists($something) + conditional
So, who benefits from HPHP?
• Applications using > 2 servers to serve dynamic content • PHP applications that need source obfuscated • Use for code analysis to improve performance, even w/o HPHP deployment
Who does not benefit from HPHP?
• Sites w/ minimal traffic • Shared hosting • “PHP is rarely the bottleneck” - Rasmus • Most OSS project developers • Apps using PHP 5. 3 • Apps on 32 -bit systems • Windows users
Getting HPHP running is NOT easy!
Some suggestions if you want to use HPHP. . .
• Plan for crashes! • Use nginx in front of HPHP • Refresh your C++ knowledge • Be willing to help port extensions • Create your own build scripts • Use distcc if you can • Pay attention to known issues!
And now. . . the demo!
- Hip hop hip to the hippity
- Old school rap quiz
- Hip hop referat
- Hip hop hip to the hippity
- Hip hop php
- Hip hop php
- Hop by hop choke packet
- What are the general principles of congestion control
- Hop by hop choke packet
- Hop by hop choke packet
- Hop to hop
- Hop on hop off delhi
- Hip hop prezentace
- Shakespeare flocabulary answers
- Curiosidades do hip hop
- Hip-hop history timeline
- Hiphop magazine
- Father of hip hop
- Spreschen
- Hip hop presentation
- Hip hop turkeys
- Elementos constitutivos do movimento
- O hip hop tem sua filosofia propria com valores
- Bronkse
- Hip hop questions to ask
- Task force hip hop group
- Www.facebook.com.php