HHVM and MongoDB
At the start of 2015 we began work on an HHVM driver for MongoDB, as part of our project to renew our PHP driver. Back then, HHVM was in its ascendancy and outperforming PHP 5.6 two to one. With such a huge performance difference it was reasonable to assume that many users would be switching over.
Around the start of 2016 I wrote a series of blog posts when we released the brand new drivers for PHP and HHVM. However, by then, PHP 7.0 had been released. PHP 7's performance is on par with HHVM making it less useful for users to move from PHP to HHVM. HHVM still offers a more strongly typed PHP syntax through Hack, and some other features, but its main attraction, speed, was mostly gone.
Writing an extension for HHVM is very different than doing so for PHP. PHP extensions, of which there are plenty, are written in C. HHVM extensions are written in C++, with very few third party extensions existing. At the same time, although PHP's APIs are not particularly well documented, there is a large group of people to ask for help. PHP also has a clearly defined internal API which is stable across minor versions. HHVM does not have this, and APIs kept changing often, although it wasn't always clear whether we were using an internal API.
Writing an HHVM extension is a very different experience for extension developers compared to PHP extensions. There is even less documentation, and virtually no third party extensions to look at for "inspiration". At the same time, it was much harder to get help from the developers, and much harder to debug as HHVM is many times more complex than PHP.
With PHP 7 released, we saw very little use of the HHVM driver for MongoDB. Some months ago I did a twitter poll, where very few people were indicating that they were using HHVM—and even if they were, they would likely not choose to switch to HHVM given the current climate.
Some of the feedback on the poll was not very assuring either:
With few users, frequent API breaks, and curious bugs we came to the conclusion that supporting the HHVM driver for MongoDB no longer makes good use of our engineering time. With Doctrine and Symfony 4 also no longer supporting HHVM, we have decided to discontinue the MongoDB driver for HHVM.
If anyone is interested in assuming ownership of the HHVM driver, please drop me a line and we can discuss the process in more detail.
Life Line
I walked 8.0km in 1h30m48s
Footpath connectivity (and removing some useless/wrong ones)
Merged pull request #1063
Add 'make test-frankenphp' which also sets the current PHP version
Fixed issue #2403: Reinit debugger for requests in FrankenPHP worker …
Just stood outside for a few minutes and I got some actual rain drops on my head! The first in like two months. 🌧️ #ukrain
Updated a pub
I walked 0.8km in 10m30s
I walked 7.7km in 1h30m26s
I walked 6.7km in 1h7m37s
As I said yesterday, I never saw a Kingfisher hovering, but here is (some slightly blurry) evidence of one doing so.
#BirdPhotography #Birds #BirdsOfFediverse #Photography #Nature #NaturePhotography
Kingfisher Caught Its Lunch
This lovely chap caught a fish right in front of us, after hovering for a while.
It seemed pleased with itself, and instead of flying away to feed it to its kids, it ate it.
#BirdPhotography #Birds #BirdsOfFediverse #Photography #Nature #NaturePhotography
Looking at my photos from RSPB Rye Meads from yesterday, and literally the first one is of a Kingfisher projectile-pooing.
Such glamorous birds :-D Luckily, better photos were taken, and I'll share those soon.
I walked 11.1km in 2h5m53s
TIL that Kingfishers can hover just like hummingbird. I'll hopefully have some reasonable shots after I've gone through my nearly thousand shots today...
I hiked 9.8km in 3h40m47s
Updated a restaurant
Updated a vacant business
I walked 7.1km in 1h16m56s
I walked 3.9km in 45m56s
I walked 1.1km in 10m47s
I think this was my favourite photo of the set that I took. It's not at maximum coverage, but it does have a sun spot group (4508) just on the cusp of the terminator.
#eclipse #eclipse2026 #SolarEclipse #London #Astronomy #AstroPhotography #Photography
No totality here in London, but still had a great evening out in the local park and taking some snaps.
I did have a nice Solar Filter that I made for my lens, and had many conversations with people from different backgrounds. Kids loves to look through my filter after I was done (ran out of battery power).
More photos later...
I walked 0.9km in 9m28s
I walked 1.2km in 19m05s






Shortlink
This article has a short URL available: https://drck.me/hhvm-mongo-da6