TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-02-2010, 10:41 PM   #1 (permalink)
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default HipHop PHP Compiler

I assume you guys have heard about it? If not then here you go:
> http://developers.facebook.com/news....og=1&story=358

It's not really a PHP compiler, but it turns PHP into C code and then compiles that. If successful, this could really be the death call of many other server-side web languages.
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
Old 02-02-2010, 10:54 PM   #2 (permalink)
The Addict
 
adamdecaf's Avatar
 
Join Date: May 2009
Posts: 287
Thanks: 5
adamdecaf is on a distinguished road
Default

Did you happen to see a link to download the code? The project looks neat, but I don't think it will catch on.
__________________
My Site
adamdecaf is offline  
Reply With Quote
Old 02-02-2010, 11:10 PM   #3 (permalink)
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default

I haven't seen any download link yet. I don't think they have posted it yet. I think it will catch on if it's as good as they say it is. There was quite a buzz about it earlier today on twitter.
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
Old 02-03-2010, 02:38 AM   #4 (permalink)
The Contributor
 
ryanmr's Avatar
 
Join Date: Jun 2008
Location: Twin Cities, Minnesota, USA
Posts: 44
Thanks: 3
ryanmr is on a distinguished road
Default

I read about it on the Facebook Developers blog. It is taking PHP source code, inspecting it, transforming into optimized C++ code and then compiling it. I don't think it is doing it "Just in Time". I think it seems like a step you do upon deployment.


I'm really interested in seeing this specially optimized c++ source code.
__________________
blog twitter ifupdown
ryanmr is offline  
Reply With Quote
Old 02-03-2010, 02:39 AM   #5 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,296
Thanks: 17
Village Idiot is on a distinguished road
Default

I'm skeptical about exactly how well it will work. Too early to make any real predictions though.
__________________

Village Idiot is offline  
Reply With Quote
Old 02-03-2010, 02:40 AM   #6 (permalink)
The Addict
 
Enfernikus's Avatar
 
Join Date: Jun 2008
Posts: 335
Thanks: 2
Enfernikus is on a distinguished road
Default

It isn't going to change anything for the daily developer but for the websites that take millions upon millions of hits this could represent a drastic change in resource management.
__________________
My Blog
Enfernikus is offline  
Reply With Quote
Old 02-03-2010, 02:43 AM   #7 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,296
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by Enfernikus View Post
It isn't going to change anything for the daily developer but for the websites that take millions upon millions of hits this could represent a drastic change in resource management.
-Disregard-
__________________

Village Idiot is offline  
Reply With Quote
Old 02-03-2010, 02:45 AM   #8 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,296
Thanks: 17
Village Idiot is on a distinguished road
Default

After reading though it again, a few of my concerns are lifted. I did not realize that face book had been making this and that they have been using it. Disregard my previous posts.
__________________

Village Idiot is offline  
Reply With Quote
Old 02-03-2010, 10:21 PM   #9 (permalink)
The Addict
 
Enfernikus's Avatar
 
Join Date: Jun 2008
Posts: 335
Thanks: 2
Enfernikus is on a distinguished road
Default

I've let my coworkers know about this. We're all waiting with great anticipation for a beta release. Right now we are sort of using PHP as glue code but if this works as expect it would greatly expand development as most of our guys are PHP developers ( obviously any good developer can switch languages rather quickly but every language has their quirks ). Especially with the outward facing API system.
__________________
My Blog
Enfernikus is offline  
Reply With Quote
Old 02-04-2010, 05:40 PM   #10 (permalink)
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default

They say eval won't work with it, which is actually not a bad thing, but I'm wondering what else isn't supported just yet.
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
Old 02-04-2010, 11:17 PM   #11 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

1. Eval
2. create_function
3. preg_replace when using /e

Its all in this: http://www.ustream.tv/recorded/4409735
(about 22 mins in)

As far as I can tell, it doesnt work with Apache (they have written their own server, for whatever reason), but they say they hope to bring support for it.

Another upside is that it does mean that you can sell PHP scripts without the extra expense of a PHP obfuscator
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)

Last edited by sketchMedia : 02-04-2010 at 11:20 PM. Reason: updated video time
sketchMedia is offline  
Reply With Quote
Old 02-05-2010, 12:28 AM   #12 (permalink)
The Addict
 
adamdecaf's Avatar
 
Join Date: May 2009
Posts: 287
Thanks: 5
adamdecaf is on a distinguished road
Default

If I remember correctly, they wrote Tornado which is a web server.
__________________
My Site
adamdecaf is offline  
Reply With Quote
Old 02-05-2010, 03:20 AM   #13 (permalink)
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default

What exactly does the /e flag do? I can't recall ever using it.

@adam, yes they did create tornado.
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
Old 02-05-2010, 09:21 AM   #14 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

The 'e' modifier allows you to have executable code within your replace (hence why its closely related to eval())
PHP Code:
$text 'This cheese was well expensive! It cost about £30';
echo 
preg_replace('/([ewc]+?)/e'"strtoupper(\\1)"$text);

//result This ChEEsE Was WEll ExpEnsivE! It Cost about 30 
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
10 PHP Myths Dispelled Wildhoney General 9 06-15-2009 07:55 AM
Can't get PHP 5. to work? Newbie windows PHP guy DotNetTim Absolute Beginners 6 02-07-2009 10:25 AM
PHP Compressor Kalle Script Giveaway 8 05-28-2008 01:14 AM
what are all the subjects in php? sarmenhb General 7 01-21-2008 05:41 PM


All times are GMT. The time now is 05:58 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design