Friday, 20 January 2017

WebAssembly: A project for making Web Browsers Faster

The web have seen a lot of innovation in terms of performance and functionality. But there are many skeptics who think the web can see faster web browsers. And, they are right. Currently, the four giants, Google, Apple, Microsoft and Mozilla are teaming up to make web browsers faster.

The project, known as WebAssembly is an attempt by the team to make web browsers as fast as 20 times their current speed. The earlier prototypes are showing promise and the reason for this faster performance is credited to the use of bytecode, an approach that web developers and programmers are aware of.

The performance gains are done because of the direct interaction of bytecode with the processor, increasing the processing power and generating results way faster than JavaScript.

On the other hand, JavaScript has seen a lot of evolution in terms of both performance and features. Now, the developers can make fully interactive games in the web browsers. The performance part is also controlled by loading content using a minimalistic JavaScript library, asm.js, which works similar to bytecode based systems on other programming languages.

WebAssembly, aka Wasm, in short,  is the answer to those who were seeking an increase in web performance apps on any machine. The use of bytecode will enable web browsers to use machine capabilities, increasing the performance of the web apps by as much as 20 times (early reports estimation.)

The biggest threat to the project is no availability of Wasm supported browsers. Early plans from the team working behind the project reveals the use of asm.js to transfer the code into bytecode understood by the browser.

With the main focus on performance as well as features, the future can be in the hands of WebAssembly and how it gets developed by the team united for the only cause.

Has anything to add to the story? Comment below and let us know!

Source: ArsTechnica