LWN.net Logo

Facebook's "HipHop" PHP translator

Facebook's "HipHop" PHP translator

Posted Feb 3, 2010 15:10 UTC (Wed) by liljencrantz (subscriber, #28458)
In reply to: Facebook's "HipHop" PHP translator by dskoll
Parent article: Facebook's "HipHop" PHP translator

Parsing is done ahead of time, so it is in fact more or less free. The plus operator also works on arrays.


(Log in to post comments)

Facebook's "HipHop" PHP translator

Posted Feb 3, 2010 15:18 UTC (Wed) by dskoll (subscriber, #1630) [Link]

Parsing is done ahead of time, so it is in fact more or less free.

Eh? Not in standard PHP. Parsing is free only if you're using an opcode cache like APC or similar.

The plus operator also works on arrays.

So it does. Still, it's relatively restricted. It doesn't work on strings or objects.

Facebook's "HipHop" PHP translator

Posted Feb 4, 2010 14:17 UTC (Thu) by jond (subscriber, #37669) [Link]

I think it can be assumed a site dealing with "400 billion PHP-based page
views every month" is using an opcode cache already.

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds