8 ms·
Other than Facebook, does anybody have HipHop running in production? Any big caveats?
by togasystems 13y ago
Other than Facebook, does anybody have HipHop running in production? Any big caveats?
- girvo 13y agoMe! Yeah, it's not 100% compatible, so my app runs all it's tests on HHVM to make sure I haven't run into any edge cases, which hasn't been an issue. I get more mileage out of my smallish VPS from it, with no effort on my part other than knowing what frameworks don't work (very very few now) and testing before deploying to staging (as you should be anyway). I'm pretty happy with it. Is it worth it? Well, if you've got a test suite, run it through HHVM to see if you'll have any issues. If the answer is no, then why turn down free performance :)
- frik 13y agoI run HHVM on a website. I started in June (back then you had to write your config file from scratch and some API functions were missing). I refactored my code to PDO (mysqli was missing back then). It worked fine from the beginning, and the uptime and overall performance is really great. I use Nginx as frontend and direct all dynamic request to HHVM's own webserver (https://github.com/facebook/hhvm/wiki/Using-nginx-as-Front-Server-to-HipHop https://github.com/facebook/hhvm/wiki/Using-nginx-as-Front-S... ) Keep in mind, Facebook runs on HHVM too, so it's rock solid. Btw. the devs are very helpful on the official irc channel!
- deleted 13y ago[deleted]
- frik 13y agoAre they using HHVM? The blog post is about the old FB HpHp (PHP to C++ translator).
- kmavm 13y agoNo. This blog post is about HHVM. The PHP to C++ translator was removed from the HHVM source tree back in February. (I'm an HHVM team alum.)
- frik 13y agoIt was a reply to a now deleted comment! It was about social network from spain. He provided a link to an article that talked about the old HpHp (HipHop C++ translator). I pointed it out, and then the guy deleted the comment entry, as it seems. (edit: this was the article the other guy posted yesterday: http://corporate.tuenti.com/en/dev/blog/the-epic-tale-of-moving-to-hiphop http://corporate.tuenti.com/en/dev/blog/the-epic-tale-of-mov... )
- kmavm 13y agoNo worries, sorry for the confusion.
- ams6110 13y agoOther than Facebook, does anybody need HipHop?
- McGlockenshire 13y agoYou're confusing HipHop with HHVM. HipHop took PHP code and basically turned it into a statically compiled C++ application. The resulting binary acted directly as a web server. It was pretty fast, but very limited. HHVM is an actual JITing virtual machine for PHP. It's still huge (one of the project pages say that the binaries are nearly a hundred megs), but it's now a real-world reimplementation of PHP, capable of doing anything PHP can, including eventually being run by mere mortals with normal code.
- icelancer 13y agoYes, I do. I have a PHP app that can be CPU bound (lots of ML baked into async threads). It has been a godsend.
- Shish2k 13y agoI would if their PDO implementation supported postgres :(
- chucklarge 13y agoWe don't use hphp in production at Etsy but do use it for static analysis in our build. It catches lots of dumb mistakes.