Live data from Hacker News

Experimenting with HHVM at Etsy

codeascraft.com

1–10 of 39 posts

Re: Experimenting with HHVM at Etsy

#2
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't yet support HHVM :(

what editors do people that are using HHVM use?

Re: Experimenting with HHVM at Etsy

#3
post #2

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't yet support HHVM :( what editors do people that are using HHVM use?

HHVM is just a PHP JIT compiler. It's not a different language.

That is Hack.

Re: Experimenting with HHVM at Etsy

#4
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't they get better scalability if they moved that backend logic to something like Play, which would give you NIO on a jvm?

EDIT: Removed mention of "shared-nothing", which I misunderstood.

Re: Experimenting with HHVM at Etsy

#5
post #2

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't yet support HHVM :( what editors do people that are using HHVM use?

PHPStorm supports xdebug and HHVM: https://youtrack.jetbrains.com/issue/WI-18817#comment=27-865...

Re: Experimenting with HHVM at Etsy

#6

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't they get better scalability if they moved that backend logic to something like Play, which would give you NIO on a jvm? EDIT: Removed mention of "shared-nothing", which I misunderstood.

Isn't shared nothing a scalable architecture?

http://en.wikipedia.org/wiki/Shared_nothing_architecture

Re: Experimenting with HHVM at Etsy

#7
post #2

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't yet support HHVM :( what editors do people that are using HHVM use?

HHVM is just a PHP JIT compiler. It's not a different language. That is Hack.

I wasn't clear enough I now realize in my post, I meant supporting Hack language that comes with HHVM (type annotations etc) in PHP Storm

Re: Experimenting with HHVM at Etsy

#8
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.

If you look at the changelog, you can see it really is a beta product that people use in production anyway

https://raw.githubusercontent.com/facebook/hhvm/master/NEWS

"Ditko" 26-Feb-2015 finally solved me having to restart it every several days

I'm very eager to compare PHP7 in production

Re: Experimenting with HHVM at Etsy

#9
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'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't have the resources of an Etsy to try it out.

Re: Experimenting with HHVM at Etsy

#10

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't they get better scalability if they moved that backend logic to something like Play, which would give you NIO on a jvm? EDIT: Removed mention of "shared-nothing", which I misunderstood.

Isn't shared nothing a scalable architecture? http://en.wikipedia.org/wiki/Shared_nothing_architecture

Ok, I hadn't seen that phrase to describe that kind of architecture before, thanks. Still though, it seemed they were describing each node's "build-the-world" process as onerous. Is HHVM thread-per-request?
Post reply on HN