Home United States USA — software What’s new in Google's V8 JavaScript engine

What’s new in Google's V8 JavaScript engine

350
0
SHARE

WebAssembly gets a boost with streaming compilation in the upcoming branch
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.
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:
You can download the V8 Version 6.5 branch from Google’s Git repo.

Continue reading...