Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

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.

[ Go deeper at InfoWorld: Beyond jQuery: An expert guide to JavaScript frameworks • The complete guide to Node.js frameworks • The 10 essential JavaScript developer tools • The 6 best JavaScript IDEs and 10 best JavaScript editors. | Keep up with hot topics in programming with InfoWorld’s App Dev Report newsletter. ]

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.

https://www.infoworld.com/article/3252818/web-development/whats-new-in-googles-v8-javascript-engine.html#tk.rss_applicationdevelopment



This post first appeared on Getskills, please read the originial post: here

Share the post

What’s new in Google’s V8 JavaScript engine

×

Subscribe to Getskills

Get updates delivered right to your inbox!

Thank you for your subscription

×