Download HipHop for PHP sandbox image (VMWare)

Posted: February 21st, 2010 | Author: admin | Filed under: Benchmark, CodeIgniter and HipHop, Drupal and HipHop, HipHop Compatibility, development, eval, sandbox, ubuntu | 2 Comments »

Once I get HipHop setup on CentOS 5 I will post a download link to the VMWare image for all to download.


HipHop for PHP sandbox work in progress – Patched libcurl and libevent required

Posted: February 21st, 2010 | Author: admin | Filed under: HipHop Compatibility, development, sandbox, ubuntu | 1 Comment »

I’ve been installing my HipHop for PHP sandbox today (on Ubuntu Karmic). Looks like I need to patch libcurl and libevent. Definitely makes more and more sense to build a separate sandbox and not destroy your development (or production! :) ) environment for this.

Current errors galore

-- Looking for curl_multi_select
-- Looking for curl_multi_select - not found
CMake Error at CMake/HPHPFindLibs.cmake:78 (message):
Custom libcurl is required with HipHop patches
Call Stack (most recent call first):
CMake/HPHPSetup.cmake:2 (include)
src/CMakeLists.txt:18 (include)-- Found ICU header files in /usr/include
-- Found ICU libraries: /usr/lib/libicuuc.so
CMake Error at CMake/HPHPFindLibs.cmake:108 (message):
ICU is too old, found 4.0 and we need 4.2
Call Stack (most recent call first):
CMake/HPHPSetup.cmake:2 (include)
src/CMakeLists.txt:18 (include)

-- Found Intel TBB
-- Found mcrypt: /usr/lib/libmcrypt.so
CMake Error at CMake/HPHPFindLibs.cmake:151 (message):
You need to install libcap
Call Stack (most recent call first):
CMake/HPHPSetup.cmake:2 (include)
src/CMakeLists.txt:18 (include)

Issues already handled

CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
Unable to find the Boost header files.  Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.

Call Stack (most recent call first):
CMake/HPHPFindLibs.cmake:20 (find_package)
CMake/HPHPSetup.cmake:2 (include)
src/CMakeLists.txt:18 (include)
CMake Error at CMake/FindMySQL.cmake:112 (MESSAGE):
Cannot find MySQL.  Include dir: MYSQL_INCLUDE_DIR-NOTFOUND library dir:
Call Stack (most recent call first):
CMake/HPHPFindLibs.cmake:30 (find_package)
CMake/HPHPSetup.cmake:2 (include)
src/CMakeLists.txt:18 (include)


The HipHop PHP Wiki: Running HipHop – the Five Modes

Posted: February 14th, 2010 | Author: admin | Filed under: HipHop Compatibility | 1 Comment »

The HipHop Wiki on GitHub already has some documentation on running HipHop: http://wiki.github.com/facebook/hiphop-php/running-hiphop

Interesting facts are for example the five different modes:

  • Mode 1: Compiling HipHop and running it directly.
  • Mode 2: Compiling HipHop in a temporary directory and running the compiled program from the command line.
  • Mode 3: Compiling HipHop in a temporary directory and running the compiled program as a web server.
  • Mode 4: Interpreting HipHop directly.
  • Mode 5: Starting a Web server or daemon and interpreting HipHop on the fly.

Also noteworthy is the documentation on compiling a large codebase.


PHP Goes after B.I.G with HipHop?

Posted: February 8th, 2010 | Author: admin | Filed under: Benchmark, HipHop Compatibility, Zend Framework and HipHop | Tags: , , , , , | 1 Comment »

Readwriteweb.com argues that the announcement of HipHop will take PHP deeper into the enterprise:

The enterprise developer community is dominated by Java and .NET developers. Java is a heavyweight technology. Historically, Microsoft has had a significant hold on the enterprise, primarily due to the hegemony of Microsoft Office, and the enterprise community has scoffed at PHP.

I beg to differ. I believe that even if PHP’s performance would have been one of the reasons it is not “robust” enough for the average enterprise it is not going to change that. The enterprise wants stability and support. Unless FaceBook (very unlikely) or some 3rd party (very likely) will provide a supported version of HipHop this will not change.

In addition the defacto “Enterprise PHP Framework” Zend Framework is unlikely to work with FaceBooks HipHop Implementation right away. And considering that Zend has it’s own Platform (http://www.zend.com/products/platform/) they are unlikely to approve HipHop as a certified platform in the near future. Oh and HipHop will always be a step behind the “real” PHP in terms of features, so so much for a “drop in solution”.

I do, however, think that HipHop will conquer the enterprise via a backdoor. It does seem like a perfect platform to squeeze all you can get from your hardware. Core business applications in the enterprise are generally given enough resources and have support subscriptions, so this is not where I am aiming at…

I believe the backdoor to the enterprise is SAAS. Companies such as Salesforce.com provide tools as a subscription via the web. These companies generally run custom software and have plenty of tech savvy staff. With this combination HipHop might be able to give a player the competitive advantage.

The competetive advantage would naturally be price as you can get the most out of your physical investment. I’d say the average customer does not care which platform you’re running on. As long as the platform is, indeed, running. Not walking. Or crawling.


Michael Wales: What does HipHop PHP mean for CodeIgniter?

Posted: February 8th, 2010 | Author: admin | Filed under: CodeIgniter and HipHop, HipHop Compatibility | No Comments »

This pretty much sums the reality: I’d say 99.9999999% of the sites / web apps out there do NOT need HipHop for PHP. Regular PHP is enough for most of us:

So, what does this mean for the CodeIgniter community? In short, absolutely nothing. Most CodeIgniter developers are building application that will run on shared hosts, virtual private servers or a cloud-based virtualization system. Of that very large group of our community, an extremely small number have the capability to compile the HipHop or alter their configuration in order to serve HipHop pages.

Read the full story at Michaels blog: http://www.michaelwales.com/2010/02/what-does-hiphop-php-mean-for-codeigniter/


The very first post – looking for help

Posted: February 7th, 2010 | Author: admin | Filed under: CodeIgniter and HipHop, Drupal and HipHop, HipHop Compatibility, Joomla and HipHop, WordPress and HipHop, Zend Framework and HipHop, eZ Publish and HipHop | Tags: | 1 Comment »

On February 2nd 2010 FaceBook announced that they’re open sourcing a novel method for accelerating PHP applications. While the method in question could be talked about a lot, I’m going to leave that for others:

  • http://www.facebook.com/news.php?blog=1&story=358
  • http://en.wikipedia.org/wiki/HipHop_(computing)

After the announcement had been I made I went domain shopping and got myself hiphopphp.org . Like for most of my domains I’ve really got no use for it (some collect Stamps, I collect Domains I suppose).

A few days after the announcement I got an idea that I’d set up  a blog to announce what works with HipHop and what does not, providing tips on how to make a certain functionality work, etc. This means popular software such as WordPress, Drupal, eZ Publish, Vanilla Forum, Small Machines Forum and the likes that under certain conditions could really benefit from HipHop.

The acceleration method used is complex and there will undoubtedly be a lot of issues with the Software around. And at the moment it is also compatible with PHP 5.2, so all 5.3 goodness is not available. No GOTO.

I’m a realist and realize that I will not have the time to make this blog relevant. So if you’re interested in participating – feel free to drop me a line at hiphopphp@gmail.com