久久精品精选,精品九九视频,www久久只有这里有精品,亚洲熟女乱色综合一区
    分享

    HipHop for PHP

     quasiceo 2014-01-16

    HipHop for PHP

    From Wikipedia, the free encyclopedia
    Jump to: navigation, search
    HipHop
    Stylized white 'h' character on a blue background with a darker blue border on the character's edges.
    Developer(s) Facebook
    Initial release February 2, 2010; 3 years ago
    Stable release 2.2.0 / October 17, 2013; 2 months ago
    Development status Active
    Written in C++, C, PHP
    License Free software (PHP License)
    Website github.com/facebook/hhvm
    /hphp
    www.
    As of May 2013

    HipHop for PHP (shortened as HipHop) describes a series of PHP execution engines and improvements created by Facebook. The original motivation of HipHop was to save resources on Facebook servers, given the large PHP codebase of . As development of HipHop progressed, it was realized that HipHop could substantially increase the speed of PHP applications in general. Increases in web page generation throughput by factors of up to 6 have been observed over Zend PHP.[1][2][3][4][5] A stated goal of HipHop is to provide a high level of compatibility for Zend PHP, where most Zend-based PHP programs run unmodified on HipHop.[3] HipHop was originally open-sourced in early 2010.[6]

    The current version of HipHop, known as HHVM (or the HipHop Virtual Machine) was open-sourced in late 2011.[7]

    HipHop is currently around 2.7 million lines[Note 1] of mostly C++, C and PHP source code and is distributed as open source and free software on GitHub (under the terms of version 3.01 of the PHP License).

    History Before HHVM[edit]

    HipHop (known as HPHP) is an execution engine for PHP. Beginning in 2008, Facebook engineers began working on HPHP. The original release of HPHP was as a PHP to C++ compiler, known as HPHPc. PHP code was written and, when run through HPHPc, was transformed into C++, compiled into a binary and run as an executable (as opposed to being compiled to opcodes and interpreted). At the peak of HPHPc, PHP code showed dramatic performance improvements (up to 6x) compared to Zend PHP.[1][2][3]

    As an adjunct to HPHPc, Facebook engineers also created a "developer mode" of HipHop (known as HPHPi) and the HipHop debugger (known as HPHPd). This allowed developers to run PHP code through the same logic provided by HPHPc while, at the same time, allowing them to interactively debug PHP code. Developers could set watches, breakpoints, etc. Of course, the code run through HPHPi was not as performant as the code run through HPHPc, but the developer benefits were, at the time, worth having to maintain these two execution engines for production and development. HPHPc, HPHPi and HPHPd were all open-sourced in 2010.[6]

    By many accounts, HPHPc was a huge success, especially within Facebook as it allowed to run much faster, using less resources. However, in early 2013, Facebook deprecated HPHPc.[8] There were many reasons for this. For all the performance gains that HPHPc provided, the curve for further performance improvements had flattened. HPHPc did not fully support the PHP language, including the create_function() and eval() constructs. HPHPc required a very different push process, requiring an over 1GB binary to be compiled and distributed to many machines in short order. HPHPc did not support HPHPd, and, given the amount of lines of code that made up , HPHPi was becoming slow for development. Plus, maintaining HPHPc and HPHPi in parallel (as they needed to be for production and development consistency) was becoming cumbersome. Finally, it was not a drop in replacement for Zend as external customers would have to change their whole development and build process to use HPHPc.

    HipHop Virtual Machine (HHVM)[edit]

    To solve the issues brought about by HPHPc, Facebook decided to create a PHP virtual machine. Foreshadowing the possible issues arising with HPHPc, development on the HipHop virtual machine (known as the HHVM) began in early 2010. HHVM builds on top of HPHPc, using the same runtime and extension function implementations. HHVM converts PHP code into a high-level bytecode (commonly known as an intermediate language). This bytecode is then translated into x64 machine code dynamically at runtime by a just-in-time (JIT) compiler. In these respects, HHVM has similarties to virtual machines for other languages including C#/CLR and Java/JVM.

    HHVM brings with it many benefits over HPHPc. There is near full support for the entire 5.4 PHP language (including the create_function() and eval() functions).[9][10] There is one execution engine for both production and development (i.e., no need to maintain HPHPi any longer). There is both production and development integration with HPHPd. And the push process becomes much simpler; no more lengthy binary build time that existed with HPHPc.

    However, the key question is around performance. As a virtual machine, HHVM has the ability to use live type information to produce more efficient native code, leading to higher webserver throughput and lower latency. In Q4 2012, the performance of running on HHVM achieved parity with HPHPc.[11] In Q1 2013, the production version of started running on HHVM, replacing HPHPc.

    See also[edit]

    Notes[edit]

    1. Jump up ^ After cloning the source from GitHub, running "git diff --stat 4b825dc642cb6eb9a060e54bf8d69288fbee4904" will provide the number of insertions from when a project was empty.

    References[edit]

    External links[edit]

      本站是提供個人知識管理的網絡存儲空間,所有內容均由用戶發(fā)布,不代表本站觀點。請注意甄別內容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權內容,請點擊一鍵舉報。
      轉藏 分享 獻花(0

      0條評論

      發(fā)表

      請遵守用戶 評論公約

      類似文章 更多

      主站蜘蛛池模板: 国产精品青青在线观看爽香蕉 | 亚洲熟妇AV一区二区三区宅男 | 女人张开腿让男人桶爽| 国产精品午夜福利91| 国产精品爽黄69天堂A| 日韩精品人妻av一区二区三区| 亚洲高潮喷水无码AV电影| 饥渴的少妇2中文字幕| 国产精品午夜福利资源| 精品午夜福利在线观看| 亚洲精品日本一区二区| 久久伊人精品青青草原APP | 少妇被黑人到高潮喷出白浆| 婷婷六月综合缴情在线| 伊人久久大香线蕉亚洲五月天| 五月天天天综合精品无码| 美女裸体无遮挡免费视频网站| 亚洲精品久久久久久婷婷| 国产AV无区亚洲AV麻豆| 欧美亚洲高清国产| 亚洲VA无码专区国产乱码| 国产在线精品一区二区夜色| 好深好湿好硬顶到了好爽| 国产成人MV视频在线观看| 国产一区日韩二区欧美三区| 国产高潮抽搐喷水高清| 国产线播放免费人成视频播放| 红杏亚洲影院一区二区三区 | 377P欧洲日本亚洲大胆| 欧美亚洲一区二区三区| 99精品国产一区二区电影| 2021亚洲国产精品无码| 99久久免费精品国产72精品九九 | 人妻系列中文字幕精品| 国产精品亚洲LV粉色| 国产精品爆乳在线播放第一人称 | 亚洲国产无套无码AV电影| 国产乱子伦视频在线播放| 亚洲国产超清无码专区| 成人区人妻精品一区二区不卡 | 国语精品自产拍在线观看网站|