HHVM extension framework using PHP and the Mongo C Driver via C++ • Create PHP Mongo-specific types ◦ MongoDate, MongoID, MongoTimestamp • Create PHP testing suite for our driver
(C++) and which to do in PHP • Decision: Write C++ methods only when absolutely necessary (need to contact DB) ◦ Insert, remove, update, run a query ◦ Benefits: Easier to catch errors, elegant!