HHVM and MongoDB — the perfect combination
summary
An HHVM extension for MongoDB exists that mimics the PHP extension API, backed by a C driver for connection and BSON handling, plus a composer-ready PHP library on top that reimplements the old driver API. The PHP-layer code runs nearly the same speed as C++, benchmarks show ~25% faster for HHVM versus PHP5 and comparable to PHP7; builds work but HHVM extension development has hard-to-debug crashes, long compile times and a lingering memory issue that slows some test runs.
AI-written summary · about
chapters (22)
- 0:00HHVM and MongoDB talk
- 1:07What is MongoDB
- 2:57MongoDB PHP driver history
- 3:58Goals for new driver
- 7:11HHVM architecture
- 10:47HipHop to HHVM evolution
- 13:16Deploying HHVM in production
- 14:21HHVM vs PHP 5.6
- 15:25Hack language intro
- 17:32New MongoDB driver design
- 20:01PHP extension in Hack/C++
- 27:25MongoDB PHP library
- 29:12Standardizing driver APIs
- 30:15Writing HHVM extensions
- 33:05Compiling HHVM extensions
- 35:36Debugging MongoDB driver
- 36:17HHVM driver status
- 37:02HHVM vs PHP 7
- 38:51Benchmarking issues
- 40:17PHP driver performance
- 41:21HHVM extension challenges
- 42:24Q&A








