News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
A Look at Hack, the PHP Replacement in HHVM
February 20, 2014 @ 10:43:27

On the SitePoint PHP blog today Victor Berchet introduces HACK, the "replacement" for PHP inside the HHVM (HipHop Virtual Machine) from Facebook's development group. This is part two in the HACK/HHVM series.

HACK is an evolution of the PHP language designed to be safer, to enable better performance and to improve developer efficiency. Note that both HACK and PHP are equally supported by the HHVM. Despite the fact that HACK is in use at Facebook on all the production servers, only little info has leaked for now. In a nutshell, HACK is Facebook's PHP6 - it proposes to fix most of what's wrong with PHP today, while adding some new features like static typing along the way.

He starts with a look at typing and the static typing HACK uses instead of the dynamic typing of the normal PHP language. He mentions the "gradual typing" functionality, strict mode and the use of annotations. He also talks about XHP, the PHP extension that allows XML fragments to be translated into valid PHP (example included). He finishes off the post looking at a few other topics including asynchronous code execution, FastCGI support and the integrated debugger.

0 comments voice your opinion now!
hack facebook hhvm language introduction replacement

Link: http://www.sitepoint.com/look-hack-php-replacement-hhvm

blog comments powered by Disqus

Similar Posts

The PEAR Blog: PEAR communities (LinkedIn & Facebook)

Inviqa techPortal: Create a RESTful API with Apigility

SitePoint PHP Blog: PHP Streaming and Output Buffering Explained

PHPKitchen: Getting Zend Debugger Working on a Macbook Pro

PHPMaster.com: REST - Can You do More than Spell It? Part 1


Community Events

Don't see your event here?
Let us know!


development opinion community release extension interview conference laravel voicesoftheelephpant podcast api middleware language laravel5 library series introduction unittest wordpress framework

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework