GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Programmers: have you tried out Facebook's PHP-to-C compiler? (https://gfy.com/showthread.php?t=1000598)

Davy 12-05-2010 01:31 PM

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" (:1orglaugh) 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!

k0nr4d 12-05-2010 01:34 PM

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

Klen 12-05-2010 04:19 PM

Interesting,this could be used as method of code encoding,since executable code cannot be decoded.

Serge Litehead 12-05-2010 04:58 PM

Quote:

Originally Posted by KlenTelaris (Post 17752163)
Interesting,this could be used as method of code encoding,since executable code cannot be decoded.

do you believe C++ cannot be decompiled?

Klen 12-05-2010 06:13 PM

Quote:

Originally Posted by holograph (Post 17752232)
do you believe C++ cannot be decompiled?

Yes,if it compile it into same machine code like ordinary program.

Zyber 12-06-2010 12:11 AM

Interesting :-)

input 12-06-2010 12:27 AM

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.

Zyber 12-06-2010 12:33 AM

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?


All times are GMT -7. The time now is 05:25 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123