I was thinking of recording the production requests for x amount of time and replaying them on HHVM so you could see if responses are identical, there are no crashes, state of the database is same afterwards, etc.?
HipHop VM: now at 98.5% PHP framework parity, 16% faster
21–30 of 112 posts
Re: HipHop VM: now at 98.5% PHP framework parity, 16% faster
#22Does anyone have an easy method of testing HHVM on your website? I was thinking of recording the production requests for x amount of time and replaying them on HHVM so you could see if responses are identical, there are no crashes, state of the database is same afterwards, etc.?
Seriously though, I decided that if I had a project that was difficult to test, that I knew had hairy code that used some funky features it was best to just stick to APC. All my new projects are being built on HHVM directly with test suites as I go.
Edit; that was a while back now, though. What frameworks and libraries are you using? Run their test suites through HHVM and if they all pass, you'll be fine. Facebook use it themselves now apparently.
Re: HipHop VM: now at 98.5% PHP framework parity, 16% faster
#23With the recent discussion on the origins of PHP function names, and about what, if anything, can be done to fix PHP without ruining it...I'm curious about what happens at Facebook. Besides HipHop, do they maintain a strict PHP style among their developers? Even if HipHop can handle all of PHPs variations, I imagine there's time saved by writing optimally-designed (for the human) code, too?
For core language features like that, there really is no way to "fix" it. Just pick a better language.
Re: HipHop VM: now at 98.5% PHP framework parity, 16% faster
#24Earlier quoted context omitted.
For core language features like that, there really is no way to "fix" it. Just pick a better language.
Poor choice of function names are the easiest of problems to fix. Write an internal base framework that you use and strongly discourage the use of functions outside of it. Even if the new set of APIs are as simple as just forwarding the call to the standard PHP one with reversed arguments, using one example people complain about all the time. This isn't hard to do, doesn't require a lot of upfront work (add APIs as y…
Re: HipHop VM: now at 98.5% PHP framework parity, 16% faster
#25Other than Facebook, does anybody have HipHop running in production? Any big caveats?
Re: HipHop VM: now at 98.5% PHP framework parity, 16% faster
#26Re: HipHop VM: now at 98.5% PHP framework parity, 16% faster
#27I wonder how hard it would be (for me) to take php and change all function names to be consistent. All PascalCase and spelled out (no awful abbreviations). Then download the documentation and change it there as well.
Re: HipHop VM: now at 98.5% PHP framework parity, 16% faster
#28I see a lot of familiar frameworks and CMSs except one. Wordpress. Any idea why Drupal and Joomla would be listed without WordPress?
https://github.com/facebook/hhvm/blob/master/hphp/test/frame...
Re: HipHop VM: now at 98.5% PHP framework parity, 16% faster
#29I see a lot of familiar frameworks and CMSs except one. Wordpress. Any idea why Drupal and Joomla would be listed without WordPress?
Re: HipHop VM: now at 98.5% PHP framework parity, 16% faster
#30I wonder how hard it would be (for me) to take php and change all function names to be consistent. All PascalCase and spelled out (no awful abbreviations). Then download the documentation and change it there as well.
First you'd have to make sure your string hash function isn't strlen.