Hhvm
-
Upload
rafe-kettler -
Category
Technology
-
view
104 -
download
2
Transcript of Hhvm
HHVM(completely rebranded since I got a t-shirt in February)
Thursday, March 27, 14
What it’s like to HHVM
C++11. Like C++, but with basic type inference and 10 more ways to initialize an object
Lots of the standard library is written in PHP or the HHVM dialect of PHP (probably will be Hack in the future)
Mentor: Paul Tarjan, not be confused with the famous researcher Bob Tarjan. Also Fred Emmott.
Thursday, March 27, 14
What is this thing, anyway?
Thursday, March 27, 14
What do I do?Frameworks. There are lots of them that work with Zend PHP but not HHVM. We’ve been asked to pick frameworks and get their test suites to 100% passing on HHVM. Sometimes this involves finding bugs in HHVM, sometimes this involves fixing clowny test cases.
Infrastructure and tools. No one asked me to work on this, but it sucks, so I’ve been trying to make some fixes
Thursday, March 27, 14
What have I done?
Made is_dir support relative paths (first fix!)
Brought a logging library “Monolog” to 100% -- one failing test, PHPUnit was generating classes on the fly with reflection, bug in reflection caused it to generate a fatal error. Class wasn’t reporting itself as final
Spent a long time working on fixing an incompatibility in array iteration only to find that the Zend team has decided for future releases it’s “an implementation detail”
Thursday, March 27, 14
What’s am I still doing?
Fixing the GDB extension included with the project that has pretty-printers for HHVM internal types (https://github.com/facebook/hhvm/pull/2119)
Changing all file functions to accept relative paths and stream URIs (https://github.com/facebook/hhvm/pull/1983)
Thursday, March 27, 14
What am I still doing?
Dogfooding Joel Low’s improvements to the build process (specifically precompiled headers)
I have a PR out on a PHP project (klein.php) fixing some tests that rely on undefined behavior
Thursday, March 27, 14