"HipHop for PHP transforms PHP source code into highly optimized C++. It was developed by Facebook and was released as open source in early 2010. HipHop transforms your PHP source code into highly optimized C++ and then compiles it with g++ to build binary files. You keep coding in simpler PHP, then HipHop executes your source code in a semantically equivalent manner and sacrifices some rarely used features – such as eval() – in exchange for improved performance. Facebook sees about a 50% reduction in CPU usage when serving equal amounts of Web traffic when compared to Apache and PHP. Facebook’s API tier can serve twice the traffic using 30% less CPU." - from HipHop wiki Here is home of project - https://github.com/facebook/hiphop-php Reproducible: Always
here is commit for support 32bit https://github.com/sanxiyn/hiphop-php/commit/eb9e4d83a253479950497d38ed8a01cc1eb5df18
Any news or any maintainer for this one? It is very interesting to have this in Gentoo, specially if the server is Gentoo also!
Created attachment 318626 [details] dev-php/hiphop-php-20120714.ebuild Initial ebuild for hiphop, rather dirty, but handles necessary depencencies and patches and gets the job done. Installs itself and custom libraries into /usr/lib/hiphop-php + launcher scripts into /usr/bin. Keyworded as ~amd64 only as Facebook claims it works only on x86_64.
Created attachment 318628 [details] files/hphp
Created attachment 318630 [details] files/hphpi
Created attachment 318632 [details, diff] files/support-curl-7.21.7.patch
Created attachment 318634 [details, diff] files/use_pcre_fullinfo.patch
Created attachment 318636 [details] dev-php/hiphop-php-20120714.ebuild
Created attachment 318642 [details] dev-php/hiphop-php-20120714.ebuild
Created attachment 318644 [details] files/hphp
Created attachment 318646 [details] files/hphpi
Created attachment 318694 [details] dev-php/hiphop-php-20120714.ebuild
Probably best to put this in an overlay. I do not see how we can add those required patches.
From what I can see, HipHop additionally requires net-libs/c-client. I tried to build it via layman -o http://gpo.zugaina.org/lst/gpo-repositories.xml -a bgo-overlay -f emerge hiphop-php The build process fails at 61%, though. Last part of the log: [ 61%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/ext/ext_simplexml.cpp.o [ 61%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/ext/ext_mcrypt.cpp.o [ 61%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/ext/ext_memcache.cpp.o [ 61%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/ext/ext_mb.cpp.o /var/tmp/portage/dev-php/hiphop-php-20120714/work/hiphop-php-20120714/src/runtime/ext/ext_simplexml.cpp: In Elementfunktion »HPHP::Variant HPHP::c_SimpleXMLElement::t_asxml(HPHP::CStrRef)«: /var/tmp/portage/dev-php/hiphop-php-20120714/work/hiphop-php-20120714/src/runtime/ext/ext_simplexml.cpp:433:36: Fehler: falsche Benutzung des unvollständigen Typs »xmlBuf {aka struct _xmlBuf}« /usr/include/libxml2/libxml/tree.h:104:16: Fehler: Vorwärtsdeklaration von »xmlBuf {aka struct _xmlBuf}« /var/tmp/portage/dev-php/hiphop-php-20120714/work/hiphop-php-20120714/src/runtime/ext/ext_simplexml.cpp:433:61: Fehler: falsche Benutzung des unvollständigen Typs »xmlBuf {aka struct _xmlBuf}« /usr/include/libxml2/libxml/tree.h:104:16: Fehler: Vorwärtsdeklaration von »xmlBuf {aka struct _xmlBuf}« [ 61%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/ext/ext_posix.cpp.o make[2]: *** [src/CMakeFiles/hphp_runtime_static.dir/runtime/ext/ext_simplexml.cpp.o] Fehler 1
This project is now hhvm