hhvm
In a move that surprised most but displeased none, Heroku, the Cloud Application Platform, has added native HHVM support to their cloud.
此举使大多数人感到惊讶,但没有让所有人感到不满意,云应用程序平台Heroku 向其云添加了本机HHVM支持 。
PHP has long been a viable solution for high traffic production apps, and has had one of the best package managers for a while, not to mention the fact that it’s evolved significantly since the days of “simple hacks for small projects”. The PHP “development model” has been anything but “hackish” in the professional circles for a while now. The unfortunate ignorance of Adam Gross aside, this really is some big news.
PHP长期以来一直是高流量生产应用程序的可行解决方案,并且有一段时间以来一直是最佳软件包管理器之一,更不用说它自“小型项目的简单黑客攻击”时代以来就得到了显着发展。 PHP的“开发模型”在专业界已经有些“破旧”了。 除了亚当·格罗斯的不幸无知 ,这确实是个大新闻。
HHVM支持 (HHVM Support)
HHVM has been making new forays in popular library and framework compatibility, with the latest update to 3.1 adding full support for Assetic, Composer, Laravel, Monolog, Guzzle, React and more. The team is now refocusing their efforts on getting the open GitHub issues out of the way, particularly those that block people’s deployment, in order to reach an adoption rate that exceeds simple test suite coverage. Previously, Facebook hosted a Hack Developer Day to spread awareness and introduce people to Hack as a viable alternative for their current production environments.
HHVM一直在进行新的先遣部队在通俗图书馆和框架的兼容性,与最新更新添加3.1完全支持Assetic , 作曲家 , Laravel , 独白 , 狂饮 , 作出React等等。 团队现在将工作重心转移到解决公开的GitHub问题上,尤其是那些阻碍人们部署的问题,以达到超过简单测试套件覆盖率的采用率。 以前 ,Facebook举办了一次Hack Developer Day,以传播意识并向人们介绍Hack作为他们当前生产环境的可行替代方案。
Heroku recognized this potential and bravely dove in head first. If you read my stuff here on SitePoint and elsewhere, you know I’m a sucker for high risk high gain adventures and appreciate such efforts when I see them, so in a community which desperately fears Hack for its future due to its association with Facebook, I was relieved to see a company as strong as Heroku take the lead and push it into production for others.
Heroku意识到了这种潜力,并勇敢地冲入了头脑。 如果您在SitePoint和其他地方阅读我的文章,您就会知道我是高风险高收益冒险的傻瓜,并在看到它们时欣赏这种努力,因此在一个社区中,由于与Facebook的联系,他们非常担心Hack的未来,我很高兴看到像Heroku一样强大的公司率先将其推向其他生产。
Switching between the regular PHP and HHVM on Heroku is trivial. The PHP buildpack supports it completely and can be used today, though it’s worth noting we’re dealing with a beta product still.
在Heroku上的常规PHP和HHVM之间切换很简单 。 PHP buildpack完全支持它,并且可以在今天使用,尽管值得注意的是我们仍在使用beta产品。
The new runtime can also take advantage of Heroku XL, designed for super-high traffic apps. Easily scalable with XL, HHVM makes PHP the most logical choice for web apps of the modern era.
新的运行时还可以利用为超高流量应用程序设计的Heroku XL的优势。 HHVM可通过XL轻松扩展,使PHP成为现代Web应用程序最合乎逻辑的选择。
To get started with creating your first PHP app, see their simple guide.
要开始创建第一个PHP应用程序,请参阅其简单指南 。
结论 (Conclusion)
This HHVM support at Heroku is more than just switching runtime – it brings with itself the support for Hack, the Super-PHP we’ve covered before. This means you can take advantage of it in production mode today – not having to wait for more widespread adoption.
Heroku对HHVM的支持不仅仅是切换运行时–它本身还提供了对Hack(我们之前已经介绍过的Super-PHP)的支持。 这意味着你可以在生产模式的今天利用它的优势-不必等待更广泛地采用。
Hack code gets better with every release and every recompilation, so the resources you’ll save on computing bills will be immense.
每次发布和每次重新编译时,Hack代码都会变得更好,因此,您将在计算账单上节省的资源将是巨大的。
If you’d like to share your Hack (on Heroku or otherwise) work with us, let us know. In particular, we’re looking for Vagrant bootstraps in Ubuntu 14.04. that can kickstart HHVM development locally and are immediately prepared to deploy to Heroku as well as soon as the Vagrant Up procedure finishes. For more specific boxes and Vagrant configurations, stay tuned – tutorials and downloads are coming soon, along with sample apps.
如果您想与我们分享您的Hack(在Heroku上或其他方式)上的工作,请告诉我们。 特别是,我们正在Ubuntu 14.04中寻找Vagrant引导程序。 可以在本地启动HHVM开发,并准备在Vagrant Up过程完成后立即部署到Heroku。 有关更多特定的盒子和Vagrant配置,请继续关注–教程和下载以及示例应用程序即将推出。
hhvm