PHP to C++ compiler from Facebook - HipHop

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

PHP to C++ compiler from Facebook - HipHop

Post by Christopher »

News scoop kind of article says that Facebook is going to announce some new, faster version of PHP on Tuesday. New runtime? Compiler?

http://www.sdtimes.com/blog/post/2010/0 ... ntime.aspx

Facebook announcement:

http://developers.facebook.com/news.php ... &story=358
(#10850)
User avatar
it2051229
Forum Contributor
Posts: 312
Joined: Tue Dec 25, 2007 8:34 pm

Re: New PHP from Facebook?

Post by it2051229 »

cool.. what's next.. there own operating system?
stuartshields
Forum Newbie
Posts: 10
Joined: Sat Jan 30, 2010 8:59 pm
Location: Toowoomba

Re: New PHP from Facebook?

Post by stuartshields »

Lol like Google did? But they released Google Chrome OS Beta before they announced Google Go
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: New PHP from Facebook?

Post by Benjamin »

With the exception of a few of the heavy frameworks and content management systems which are comprised of purely OO code, I would say that the bottleneck is usually MySQL on sites with heavy traffic. But, if this cuts down on the time it takes for those frameworks to spit out a page I'm all for it.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: New PHP from Facebook?

Post by Weirdan »

astions wrote:I would say that the bottleneck is usually MySQL on sites with heavy traffic.
Not really true. On a website with heavy traffic slow selects is the least of your problems, as they are ridiculously easy to cache. Most pages don't even hit the MySQL at all.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: New PHP from Facebook?

Post by Eran »

Those are really generalizations, as it really depends on the type of site. Media heavy sites, such as movie hosting sites (youtube, vimeo etc) have scaling issues with bandwidth, CPU (for encoding) and storage. Highly dynamic sites that facilitate data manipulation and creation usually have problems scaling their database structure and data. Heavy content sites usually have the least of the problem, dealing mainly with scaling the number of HTTP requests. No one solution fits all, but if Facebook have something in store that helped them scale, I would like to see it.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: New PHP from Facebook?

Post by Benjamin »

Weirdan wrote:
astions wrote:I would say that the bottleneck is usually MySQL on sites with heavy traffic.
Not really true. On a website with heavy traffic slow selects is the least of your problems, as they are ridiculously easy to cache. Most pages don't even hit the MySQL at all.
Well I've been working on some pretty unique sites. My job would be a walk in the park if that was all I needed to be concerned about.
User avatar
arjan.top
Forum Contributor
Posts: 305
Joined: Sun Oct 14, 2007 4:36 am
Location: Hoče, Slovenia

Re: New PHP from Facebook?

Post by arjan.top »

JVM based php? that would be great
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Re: New PHP from Facebook?

Post by Jenk »

arjan.top wrote:JVM based php? that would be great
That would be horrendous. :)
User avatar
arjan.top
Forum Contributor
Posts: 305
Joined: Sun Oct 14, 2007 4:36 am
Location: Hoče, Slovenia

Re: New PHP from Facebook?

Post by arjan.top »

Jenk wrote: That would be horrendous. :)
why? =)
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: New PHP from Facebook?

Post by alex.barylski »

why? =)
I'm taking a wild guess here, but PHP is slow-ish because it's an interpreted language, if it were done in JVM (Java Virtual Machine) I assume that adds another significant layer of abstraction which would really slow PHP down. Anything Java drags like a fishing net through molassess :)
User avatar
arjan.top
Forum Contributor
Posts: 305
Joined: Sun Oct 14, 2007 4:36 am
Location: Hoče, Slovenia

Re: New PHP from Facebook?

Post by arjan.top »

java has close to C performance, so that's not it

edit: jruby is faster than the "official" ruby interpreter
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: New PHP from Facebook?

Post by alex.barylski »

java has close to C performance, so that's not it
'close' or 'almost' are so vague when comparing benchmark performance. It's widely accepted that a native C application will out perform a Java equivelant anytime. I think high use, daemon systems will remain developed in C for a long while.
edit: jruby is faster than the "official" ruby interpreter
Maybe, but all that that proves, is it's possible to build faster software using more abstraction, if the original software is poorly implemented.

I'm not a fan of Java, so I admit I'm being biased, but everything Java built seems really sluggish, buggy and slow to respond. Just look at Eclipse compared to a native Windows editor. :P

Cheers,
Alex
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: New PHP from Facebook?

Post by josh »

LiteSpeed claims to cut 30% off load time by switching from Apache

If I don't have to change anything to use this new facebook php then that's cool in my book. I don't see how it can stay as PHP though. I mean eventually PHP will add new features, is the facebook team and the PHP team going to duplicate each others efforts or will they merge code at some point is my question?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: New PHP from Facebook?

Post by Christopher »

We will find out tomorrow! ;)
(#10850)
Post Reply