PHP to C++ compiler from Facebook - HipHop
Moderator: General Moderators
- 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
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
http://www.sdtimes.com/blog/post/2010/0 ... ntime.aspx
Facebook announcement:
http://developers.facebook.com/news.php ... &story=358
(#10850)
Re: New PHP from Facebook?
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?
Lol like Google did? But they released Google Chrome OS Beta before they announced Google Go
Re: New PHP from Facebook?
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.
Re: New PHP from Facebook?
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.astions wrote:I would say that the bottleneck is usually MySQL on sites with heavy traffic.
Re: New PHP from Facebook?
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.
Re: New PHP from Facebook?
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.Weirdan wrote: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.astions wrote:I would say that the bottleneck is usually MySQL on sites with heavy traffic.
Re: New PHP from Facebook?
JVM based php? that would be great
Re: New PHP from Facebook?
That would be horrendous.arjan.top wrote:JVM based php? that would be great
Re: New PHP from Facebook?
why? =)Jenk wrote: That would be horrendous.
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: New PHP from Facebook?
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 molassesswhy? =)
Re: New PHP from Facebook?
java has close to C performance, so that's not it
edit: jruby is faster than the "official" ruby interpreter
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?
'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.java has close to C performance, so that's not it
Maybe, but all that that proves, is it's possible to build faster software using more abstraction, if the original software is poorly implemented.edit: jruby is faster than the "official" ruby interpreter
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.
Cheers,
Alex
Re: New PHP from Facebook?
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?
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?
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US