Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-05-2010, 01:31 PM   #1
Davy
Confirmed User
 
Davy's Avatar
 
Industry Role:
Join Date: Apr 2006
Location: Germany
Posts: 4,323
Programmers: have you tried out Facebook's PHP-to-C compiler?

A small group of developers at facebook has programmed a compiler that converts php code into C programs. They named it "Hip Hop" () and say it reduces the CPU load by 50%.
Quote:
HipHop is a source code transformer which transforms PHP source code into highly optimized C++ and then compiles it using g++.
https://github.com/facebook/hiphop-php

Anybody tried it out? Sounds very interesting!
__________________
---
ICQ 14-76-98 <-- I don't use this at all
Davy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-05-2010, 01:34 PM   #2
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
This really wouldn't help the vast majority of php scripts. It's usually unoptimized mysql queries and over-use that causes load problems, not php. The actual PHP on most scripts has negligable impact on cpu usage...
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-05-2010, 04:19 PM   #3
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Interesting,this could be used as method of code encoding,since executable code cannot be decoded.
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-05-2010, 04:58 PM   #4
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
Quote:
Originally Posted by KlenTelaris View Post
Interesting,this could be used as method of code encoding,since executable code cannot be decoded.
do you believe C++ cannot be decompiled?
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-05-2010, 06:13 PM   #5
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Quote:
Originally Posted by holograph View Post
do you believe C++ cannot be decompiled?
Yes,if it compile it into same machine code like ordinary program.
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2010, 12:11 AM   #6
Zyber
Confirmed User
 
Industry Role:
Join Date: Aug 2001
Posts: 832
Interesting :-)
Zyber is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2010, 12:27 AM   #7
input
Registered User
 
Industry Role:
Join Date: Nov 2010
Posts: 41
That looks really interesting - to be able to run a script as a server daemon certainly has its advantages. Going to check it out on a single index.php file where the index.php is the framework launching block to see if I can get a whole app to run as a daemon.
input is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2010, 12:33 AM   #8
Zyber
Confirmed User
 
Industry Role:
Join Date: Aug 2001
Posts: 832
Good that the source code is also available for inspection.
Better take a look to see if it contains any nasty spying functions. Running an executable from Facebook directly on your server requires some trust. Do you trust Facebook?
Zyber is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.