HipHop PHP(由Facebook的Hyper PHP) [英] HipHop PHP (was Hyper PHP by Facebook)

查看:142
本文介绍了HipHop PHP(由Facebook的Hyper PHP)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下这段相当滑稽的面试与Facebook员工...

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

有没有任何细节在 Hyper PHP (现在重命名

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

推荐答案

p>现在猫已经脱口而出:

The cat is out of the sack now:

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


HipHop for PHP在技术上不是编译器本身。相反,它是一个源代码变压器。 HipHop以编程方式将您的PHP源代码转换为高度优化的C ++,然后使用g ++编译它。 HipHop以语义相等的方式执行源代码,并牺牲了一些很少使用的功能(例如eval()),以改善性能。 HipHop包括代码转换器,PHP运行时系统的重新实现,以及许多常见PHP扩展程序的重写,以利用这些性能优化。

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.

另一篇关于ReadWrite Web的文章证实了Facebook获得更快,推出本土PHP编译器和另一个由Marco Tabini 描述你需要知道的。

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.

这篇关于HipHop PHP(由Facebook的Hyper PHP)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆