Facebook的HipHop-它有什么用? [英] Facebook's HipHop - What's it for?

查看:105
本文介绍了Facebook的HipHop-它有什么用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当今PHP世界中的新闻是 Facebook的HipHop ,其中:

The news in the PHP world today is Facebook's HipHop, which:

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.

我的问题是,这实际上对什么类型的Web应用有用?

My question is, what type of web applications is this actually useful for?

似乎无法为典型的数据库绑定Web应用程序提供足够的服务,而CPU绑定应用程序则较少.

Seems like typical database-bound web apps may not be greatly served by this, but rarer CPU-bound apps would.

推荐答案

本文:

http://terrychay.com/article/hiphop-for-faster -php.shtml

用一系列的"if"语句完美地回答了这个问题.

answers this question perfectly with its series of "if" statements.

这篇关于Facebook的HipHop-它有什么用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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