Wikipedia on HHVM
hhvm.com
hhvm.com
Zeev Suraski (one of the original two Zend Engine authors along with Andi Gutmans, also co-founder of Zend, Inc.) did some benchmarks:
http://zsuraski.blogspot.co.uk/2014/07/benchmarking-phpng.ht...
http://zsuraski.blogspot.co.uk/2014/07/benchmarking-phpng-ma...
However, bear in mind that those benchmarks were faked* by Zeev, a Zend Engine proponent. Benchmarks faked* by HHVM engineers might show a larger gap. ;)
* I'm not using "faked" in its normal sense. They probably weren't fraudulent, but I am a believer that we should say "fake a benchmark" and not "make a benchmark" given that they can be so circumstantial and misleading: http://blog.ajf.me/2014-10-23-on-benchmarks
Disclaimer: I am, myself, biased towards the Zend Engine, I'm a php-src committer.
I might say some things about Zeev, but I certainly wouldn't say he's a liar. He's a talented developer.
HHVM and Hack were the impetus for me to learn OCaml, which is a lovely language. It's good to see more and more places picking up HHVM, and it's also great to see PHP5.6 and 7 increasing performance drastically, too!
That said, I agree, Facebook is doing awesome stuff here.
Being completely unaffiliated with Facebook, I think this still counts as 'greater good' for many.
More other businesses using it also makes it harder for people to make the argument against it as "it's just a Facebook thing"
Unless you think it's hard changing the open tag from <?php to <?hh :p
I've done PHP, some Ruby, some .NET, Java and more - coming back to PHP is often fun and a breath of fresh air. Nothing's perfect.
Exactly! Of course we do things to make ourselves feel good. And since helping other people makes us feel good, why shouldn't we be honest about our motives? It's win-win.
In the last several years I've spoken to libertarians, conservatives, progressives, various schools of economics etc. It's become clear to me that when platforms are free, more wealth is created. When Netscape open sourced their codebase, we got Firefox and WebKit. Linux, Webkit, WikiWikiWeb, Git, in fact all those image formats you can display without paying royalties or risking getting sued, obviously led to more wealth creation than proprietary siloed codebases. Eventually even MS opensourced their platform, after years of copying by Mono.
If you aren't visualizing tiny deltas, don't truncate the y-axis. It's misleading.
Also, I partly responded to this above: https://news.ycombinator.com/item?id=8848129
Also, that page points to Apple's YARR, which I didn't know about either (and Chrome's irregexp, which I did).
> using HHVM from GitHub rather than our internal repository.
What editor do Facebook and Wikipedia use for their HHVM/PHP development out of interest?
edit: downvoted? really? for what?
That is substantial, and HHVM should bear to rest some of the claims (trolls) that PHP is not performant.
Yes, with enough engineering effort you can move mountains, but if performance is critical and you don't have a legacy code base like Facebook does, reaching for the php hammer is insanity.
The real reason why performance isn't a big downside with php is that it usually just doesn't matter.
If a php implementation can service 100 req/s, and a Java implementation (an ad absurdum) 100,000 req/s, and your site peaks at 5 req/s, either is just fine.
In other words, "You're probably not Pintrest".
You're talking as if PHP is slow. It isn't, it's very fast, speed is actually one of its advantages (or was historically, anyway). Its alternatives (Python, Ruby) are sometimes marginally slower. With its next release, it will receive a significant performance boost, and minor versions usually include small but significant performance gains.
Yes, it's not as fast as say, C, C++, Java, C#. It doesn't need to be, nor does anyone expect it to be: it's a dynamic language that allows for rapid development. But to talk about it like it's something horribly slow that you'd never use in 2015 is simply wrong. It is competitive.
That said, PHP is (and has been) faster than both Ruby and Python and does some things faster than Perl. It shouldn't be expected to compete with Java or Go.