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, Facebook or Linkedin.

 

Banner


Android 15 Developer Preview Updated
25/03/2024

Google has released Android 15 Developer Preview 2 with changes including better handling of automatic language switching and updates for OpenJDK 17.



ACM Adopts Open Access Publishing Model
05/04/2024

ACM, the Association for Computing Machinery, the professional body for computer scientists, has relaunched Communications of the ACM, the organization’s flagship magazine, as a web-first  [ ... ]


More News

 

raspberry pi books

 

Comments




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

Last Updated ( Monday, 21 May 2018 )