HHVM 3.26 With New Front End
HHVM 3.26 With New Front End
Written by Kay Ewbank   
Monday, 21 May 2018

The latest version of the HHVM interpreter for PHP/Hack has been released and now uses the HackC compiler front-end. HackC includes a full-fidelity parser (FFP) and bytecode emitter for the Hack and PHP languages.

Other improvements include relicensing of the typechecker and related tools and libraries to MIT, and support for Ubuntu 18.04. HHVM (Hip Hop Virtual Machine) is an open-source virtual machine developed at Facebook and designed for executing programs written in Hack and PHP. HHVM uses just-in-time (JIT) compilation to combine good performance with a flexible development environment. 

Hack is a programming language developed by Facebook for HHVM. It is designed to combine the fast development cycle of a dynamically typed language with the discipline provided by static typing. It does this by offering 'instantaneous type checking'.  Facebook has moved its entire codebase across to Hack, and there is an open source version complete with HHVM.

The full-fidelity parser (FFP) has been used to power several tools, such as Hack’s IDE integration via the Language Server Protocol, hackfmt, and hhast. ; in addition to the runtime, we expect the typechecker (hh_client and hh_server) to use the FFP in the future, leading to a single unified parser for typechecking, execution, IDE services, and other tools.

HackC passes all of HHVM’s tests - including the PHP specification tests - and produces semantically equivalent bytecode.

Another improvement in the new version is the addition of a new dynamic type to Hack’s type system. This is used in Hack to help capture dynamism in the codebase in typed code. The developers say it does this in a more manageable manner than mixed.The advantage this offers is that if a function has dynamism present and uses the dynamic type, the dynamism remains local to the function. This means dynamic behaviors cannot leak into code that doesn’t know about it.

Hack has been relicensed under the MIT license, along with most Hack libraries and tools, including the Hack Standard Library. HHVM itself remains under the PHP and Zend licenses.

The developers say that the decision to relicense to MIT was made to move to a license that is broadly used in the community to ease concerns about compatibility, and to avoid holding back adoption for non-technical reasons.

hhvm

 

More Information

HHVM Site

Related Articles

HHVM 3.25 Defaults To PHP7

HHVM Improves Type Inference 

Facebook Introduces Hack, A Better PHP 

HHVM, Bash And CoffeeScript

PHP At 20

 

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on, Twitter, FacebookGoogle+ or Linkedin.

 

Banner


TypeScript Adds Unused Span Reporting
07/06/2018

The latest release of TypeScript is now available with improvements to the editor including support for unused span reporting; the ability to convert properties to getter/setter; and the choice of mov [ ... ]



The Developer Union Wants To Negotiate Nicely With Apple
21/05/2018

After the publication of an open letter to Apple, asking it to allow free trials for all apps in the App Store by July 2019, developers are flocking to join a newly formed group which aims to campaign [ ... ]


More News

 

justjsquare

 



 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Monday, 21 May 2018 )
 
 

   
Banner
RSS feed of news items only
I Programmer News
Copyright © 2018 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.