What’s new in Google's V8 JavaScript engine Credit: Deavmi

What’s new in Google's V8 JavaScript engine

A newly created branch of Google’s V8 JavaScript engine promises to improve compilation of the WebAssembly portable code format via streaming compilation in V8’s WebAssembly API. V8’s Version 6.5 branch is now in beta but expected in the Chrome 65 Stable browser release in a few weeks.

V8 is a staple in both the Chrome browser and the Node.js JavaScript runtime. WebAsembly is also supported in Mozilla Firefox, Apple Safari, and Microsoft Edge, though those browsers do not use V8.

New features in V8 Version 6.5

In V8 Version 6.5’s streaming compliation, WebAssembly modules are compiled while module bytes are still being downloaded. When all bytes of a single function have been downloaded, the function is passed to a background thread for compilation. As a result, WebAssembly compilation in Chrome 65 can maintain a 50Mbps download speed on high-end machines, Google says—meaning that if WebAssembly is downloaded at that speed, compilation finishes as soon as the download is done.

 Other improvements planned for the 6.5 branch include:

  • An untrusted code mode, developed in response to a specualative side-channel Spectre attack. This mode is suitable for applications processing user-generated, untrusted code and is enabled by default.
  • A mechanism to detect and prevent a deoptimization loop. This loop occurs when optimized code deoptimizes and there is no way to find out what went wrong. V8 developers also have inlined many JavaScript builtins that had been excluded because of a side effect between the load of a function to call and the call itself.

Where to download the V8 Version 6.5 branch

You can download the V8 Version 6.5 branch from Google’s Git repo.

IDG Insider

PREVIOUS ARTICLE

«The $799 Surface Laptop makes Microsoft's sleek MacBook Air rival more affordable

NEXT ARTICLE

InfoWorld Technology of the Year Awards promotional information»
author_image
IDG Connect

IDG Connect tackles the tech stories that matter to you

Our Case Studies

IDG Connect delivers full creative solutions to meet all your demand generatlon needs. These cover the full scope of options, from customized content and lead delivery through to fully integrated campaigns.

images

Our Marketing Research

Our in-house analyst and editorial team create a range of insights for the global marketing community. These look at IT buying preferences, the latest soclal media trends and other zeitgeist topics.

images

Poll

Should the government regulate Artificial Intelligence?