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.

Experimenting with HHVM at Etsy

150 pointsby jazzdanabout 10 years ago

14 comments

steakejjsabout 10 years ago
The new stuff happening in the PHP space is really really awesome.<p>HHVM + HACK + XHP is an entirely different experience compared to writing PHP. Code can actually be very clean and lots of bugs can be found that may have previously gone unnoticed + performance benefits.<p>Just wanted to say FB is doing an exceptional job with these projects.
revelationabout 10 years ago
Calling setlocale because the user you&#x27;re currently processing has a different locale? What the..?<p>Notice: what works in UNIX utilities is not what works for web apps serving many users simultaneously. In fact, I&#x27;m pretty sure this doesn&#x27;t work for UNIX utilities either and is just something you should never touch with your libc. It&#x27;s like calling non-reentrant strtok, some of this stuff just doesn&#x27;t exactly fit into todays world.
评论 #9332216 未加载
评论 #9332199 未加载
ck2about 10 years ago
The good news about hhvm is that with the newest builds from the past few months you can finally run it longer than a week without memory leaks and crashing under high loads.<p>If you look at the changelog, you can see it really is a beta product that people use in production anyway<p><a href="https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;facebook&#x2F;hhvm&#x2F;master&#x2F;NEWS" rel="nofollow">https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;facebook&#x2F;hhvm&#x2F;master&#x2F;NEWS</a><p><i>&quot;Ditko&quot; 26-Feb-2015</i> finally solved me having to restart it every several days<p>I&#x27;m very eager to compare PHP7 in production
评论 #9331329 未加载
caipreabout 10 years ago
Shameless self promotion: I wrote hussar[0], a tool that uses HHVM for PHP static analysis in projects that can&#x27;t run HHVM directly. Etsy says &quot;getting [their] code to run on HHVM was relatively easy&quot;, but my experience has been the opposite. Previous discussion on HN here: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9071854" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9071854</a><p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;wayfair&#x2F;hussar" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;wayfair&#x2F;hussar</a>
datashovelabout 10 years ago
This is a great write up. I have been skeptical of converting to HHVM for a while because of a bad experience I had several years ago. I&#x27;ve been following the HHVM project off and on for a while now, but it really sounds like it may be ready for some smaller projects who don&#x27;t have the resources of an Etsy to try it out.
farresitoabout 10 years ago
And later this year, PHP 7 is coming, which should bring huge performance improvements.
评论 #9332509 未加载
tunesmithabout 10 years ago
bespoke endpoints sound like a good compromise, but I wonder why they stick with php for the general apis that the bespoke endpoints consume? Wouldn&#x27;t they get better scalability if they moved that backend logic to something like Play, which would give you NIO on a jvm?<p>EDIT: Removed mention of &quot;shared-nothing&quot;, which I misunderstood.
评论 #9330103 未加载
评论 #9331388 未加载
评论 #9330540 未加载
lsof1about 10 years ago
Ported 200k+ line app to Go over a year ago. Happiest day of my life removing any traces of PHP from my systems.
jszymborskiabout 10 years ago
I guess the question I&#x27;ve been having is that if I want to begin a new project with performance as a main priority, should I use HHVM+PHP or HHVM+Hack over something like Java or Go, or is it more for making existing PHP codebases more performant.
评论 #9331729 未加载
评论 #9331159 未加载
评论 #9331392 未加载
评论 #9332181 未加载
评论 #9331110 未加载
icelancerabout 10 years ago
This is great. After being one of the early contributors to documentation and clearing up the (admittedly ridiculous) on-ramping guides for what was then HipHopPHP, I&#x27;m really happy to see it get more traction. I deploy it in production for a webapp that is more or less simple CRUD on the outside but does some relatively expensive scheduled batch processing of number crunching. The differences are huge and allow me to keep it to a single - albeit big - dedicated machine.<p>It&#x27;s come a long way and I&#x27;m excited to see further improvements.
ZeroGravitasabout 10 years ago
Is a comprehensive test suite for PHP a byproduct if this?<p>Last time I checked PHPs own tests only had about 30% coverage, and with a famously idiosyncratic language like PHP, which apparently needs a massive internal overhaul to increase speed, that seems less than optimal.<p>I thought the test suite was one of the best things to come our of multiple ruby implementations, though I read recently that core Ruby ignore it and so regularly introduce bugs that it would catch.
Kabacaruabout 10 years ago
There&#x27;s a talk Dan gave on this same topic at PHP UK 2015 that&#x27;s worth watching.<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=75j1RRxxARI" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=75j1RRxxARI</a>
aikahabout 10 years ago
Be aware that while HHVM is more or less compatible with PHP now, there is no guarantee it will be in the future,and Hack is definitely not backward compatible with PHP. Not even talking about PHP C extensions.
yc1010about 10 years ago
I would love to move onto HHVM and since mostly run own PHP code 3rd party code compatibility is not a problem, BUT unfortunately the editor I use (PHP Storm) doesn&#x27;t yet support HHVM :(<p>what editors do people that are using HHVM use?
评论 #9330000 未加载
评论 #9330011 未加载