TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How HHVM Uses Modern C++ for Fun and Profit (2014) [video]

73 pointsby StylifyYourBlogover 10 years ago

4 comments

TazeTSchnitzelover 10 years ago
I don&#x27;t like how C was completely ignored when talking about languages with comparable performance. :p<p>The Zend Engine 3 (aka the stock PHP 7 interpreter) is, according to one HHVM developer, &#x27;embarassingly competitive on the test suites&#x27;, and it&#x27;s written in C.<p>&#x2F;rant<p>C++ is probably much nicer to maintain, though. C ends up being macro hell.
评论 #9036991 未加载
评论 #9036994 未加载
simula67over 10 years ago
I remember someone from Facebook saying that ( can&#x27;t find the link ATM ) when HPHP was being built there was a competing project to trans-compile PHP to Java. In the end they compared the performance and found that the C++ was faster and went with it. Is it true ?<p>If it is, I wonder how they feel now that they have given up speed improvements and built a VM in search of other advantages. At least if they had chosen the JVM they could have taken advantage of interoperability that JVM provides with other languages to convert at least part of their code base to JVM languages, thereby possibly improving maintainability.
评论 #9038325 未加载
TazeTSchnitzelover 10 years ago
I was expecting a talk about how cool C++11 features are. It was actually a talk about how C++ lets you be super close-to-the-metal and do ridiculous performance hacks. Interesting.
peterashfordover 10 years ago
Nobody uses C++ for fun. Unless they&#x27;re a masochist.
评论 #9037097 未加载
评论 #9037124 未加载
评论 #9037653 未加载
评论 #9037003 未加载
评论 #9037473 未加载