HipHop PHP (was Hyper PHP by Facebook)

2019-02-02 10:40发布

Following this rather comical interview with a Facebook "employee"...

Does anybody have any details on the Hyper PHP (now renamed to HipHop) that those smart as balls Facebook guys have developed?

8条回答
贪生不怕死
2楼-- · 2019-02-02 11:10

From your link...

Facebook employees know better than most the value of privacy.

Oh, really? Do they? Because everything I've ever read about Facebook is that they have no idea what privacy is or ever was.

The article can obviously not be trusted.

查看更多
乱世女痞
3楼-- · 2019-02-02 11:19

The cat is out of the sack now:

http://developers.facebook.com/news.php?blog=1&story=358

HipHop for PHP isn't technically a compiler itself. Rather it is a source code transformer. HipHop programmatically transforms your PHP source code into highly optimized C++ and then uses g++ to compile it. HipHop executes the source code in a semantically equivalent manner and sacrifices some rarely used features — such as eval() — in exchange for improved performance. HipHop includes a code transformer, a reimplementation of PHP's runtime system, and a rewrite of many common PHP Extensions to take advantage of these performance optimizations.

Another article on ReadWrite Web confirms Facebook Gets Faster, Debuts Homegrown PHP Compiler and another one by Marco Tabini describes what you need to know.

查看更多
登录 后发表回答