hiphop

Facebook揭秘HipHop项目 PHP程序大提速

怎甘沉沦 提交于 2019-12-05 22:53:42
编程效率高是PHP语言最大的特点,但是作为脚本语言,一直存在着CPU和内存使用效率不高的问题,直到HipHop for PHP的出现。Facebook神秘的PHP项目HipHop for PHP终于揭开面纱。这个项目由一个PHP到C++的转换程序,一个重新实现的PHP运行库,和许多常用PHP扩展的重写版本构成,目的是旨在加速和优化 PHP。 用Facebook官方博客(无法直接访问)上项目负责人赵海平(北大1987届遗传与分子生物专业,普林斯顿计算机科学博士)的话 说,HipHop项目对Facebook影响巨大。它目前已经支撑了Facebook 90%的Web流量。由于HipHop,Facebook Web服务器上的CPU使用平均减少了50%,从而大大减少了服务器的需求。为了让这一改进也惠及社区,他们决定将之开源,希望能够进一步帮助提高更多大 型复杂PHP网站的可伸缩性。 PHP和Facebook的问题 众所周知,Facebook的前端主要是用PHP写的。赵海平说,过去六年Facebook从 PHP语言 的进展上获益良多。PHP非常简单,易学易用,好读好调试,因此新工程师成长很快,有利地促进了Facebook的更快的创新。 PHP是一种脚本语言,其好处是编程效率高,能够支持产品的快速迭代。但是与传统的编译语言相比,脚本语言的CPU和内存使用效率不好。随着 Ajax技术的广泛采用

HipHop instead of XCache?

☆樱花仙子☆ 提交于 2019-12-05 06:43:21
Would it make sense to switch to HipHop instead of XCache? Is HipHop ready for primetime or should we wait several months before implementing it? Edit: we are interesting in testing the configuration on a server running vBulletin. Let me clear up a misconception you might have about Hiphop and Xcache. XCache works by adding Opcode caching to ZEND's PHP implementation (like APC and friends), while Facebook's HipHop allows for PHP code to be transformed into C++ code and then compiled using g++. It's not possible to run XCache with HipHop as HipHop doesn't depend on Zend interpreter (and doesn't

where can i download Facebook's source code transformer HipHop for PHP [closed]

这一生的挚爱 提交于 2019-12-04 07:24:41
Where can I download HipHop for PHP? See this message on the mailing list: On Feb 5, 12:00 pm, Dan wrote: Hey, Just wondering, I'm sure you've been asked a lot already... but when is the Github project going to be opened? We're in the process of opening the list and approving members to the group. Code will follow soon after any recent cherges have been merged to the branch and we're sure that anything Facebook specific is removed. Scott MacVicar Scott MacVicar is the Open Source Developer Advocate at Facebook. The github project they are referring to will be located at http://github.com

Problems building libcurl 7.21.2 on Ubuntu 11.10 (Hiphop)

随声附和 提交于 2019-12-03 22:14:59
I'm following this Hiphop installation guide: https://github.com/facebook/hiphop-php/wiki/Building-and-installing-on-ubuntu-10.10 And when I try to make it, I get the following errors: ../lib/.libs/libcurl.so: undefined reference to `SSLv2_client_method' I've found this Server Fault ticket, but the merged change from the linked Github pull request didn't seem to fix the problem. https://superuser.com/questions/339932/compiling-curl-with-hiphop-for-php-patch I'm running Ubuntu 11.10, but I doubt that's the issue. Thanks for any help you can provide! EDIT: Adding Hiphop Cmake errors: Here are

Facebook's HipHop - What's it for?

北慕城南 提交于 2019-12-03 13:34:40
问题 The news in the PHP world today is Facebook's HipHop, which: 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

Facebook's HipHop - What's it for?

余生长醉 提交于 2019-12-03 03:32:10
The news in the PHP world today is Facebook's HipHop , which: 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

how to install hiphop for php?

家住魔仙堡 提交于 2019-12-02 17:20:06
The most of devepolers know something about Facebook's Hiphop for php, I want to use it in my scripts but have no idea where to start. Should I speak with my server provider? or Do I need to add some codes into my scripts? Alasdair HipHop is very difficult to install, but luckily for you I've just been through it! You need a dedicated server, easiest to install on Red Hat or CentOS, or Amazon Linux. You cannot install it on a shared host, you need root access. It's also easier to install on a clean server (just the OS). I recommend you get a clean Instance from Amazon Web Services and install

Facebook HipHop virtual machine for PHP?

≯℡__Kan透↙ 提交于 2019-12-01 11:17:41
I've looked at this article- HipHop PHP (was Hyper PHP by Facebook) However, recently come across this Facebook Speeds Development With “HipHop Virtual Machine”, A 60% Faster PHP Executor Does anyone have details on this? Is it worth exploring for a PHP developer? You can find the details in the article linked in the article you linked: https://www.facebook.com/notes/facebook-engineering/the-hiphop-virtual-machine/10150415177928920 hphpc is in essence a traditional static compiler that converts PHP→AST→C++→x64. We have long been keenly aware of the limitations to static analysis imposed by

Using Hiphop for PHP extension development

我的未来我决定 提交于 2019-11-28 05:51:02
问题 Hiphop converts PHP into C++ code, did anyone used it for PHP extension development? I have found following link to write PHP extensions using C++ http://devzone.zend.com/article/4486-Wrapping-C-Classes-in-a-PHP-Extension I want to write some PHP classes and convert them into C++ and use it in PHP extension. Please let me know if anyone did that and also any thoughts are welcomed. 回答1: As far as I know, the point of HipHop is to bypass PHP's Virtual Machine known as Zend Engine. In order to