Menu
Microsoft, Google, Mozilla team to build a faster Web

Microsoft, Google, Mozilla team to build a faster Web

Web Assembly will provide a standardized way to compile Web applications before they run, in order to speed their performance

Web apps and pages may soon get a speed boost to rival the performance of native desktop and mobile applications, thanks to a new standards initiative from Microsoft, Google and Mozilla.

The work, WebAssembly, provides a way to compile the source code for the programmatic parts of Web applications so they can be processed by the browser more quickly.

"I think this is a good evolution trajectory of the Web platform to try and reach the performance ... of native languages on mobile devices," wrote IDC software development analyst Al Hilwa, in an e-mail. "I think it is early days but the Web platform is moving faster than ever these days and so everyone is paying more attention to these developments."

The technology could also facilitate a wide range of applications heretofore have been extremely difficult to run on the Web, such as rich online games, video editing and emulation of full desktop applications.

With WebAssembly, developers compose the program logic of their Web components using a language such as C or C++, and then compile it into a binary object that can be executed by the JavaScript engine on the browser.

WebAssembly's approach is a novel one given that to date most all the program logic that a browser runs is served in plain text. It is almost always JavaScript, except if it is composed using third party plug-ins such as Adobe Flash or Microsoft Silverlight.

WebAssembly's binary objects are smaller in size than plain JavaScript code, thereby speeding delivery times. For instance, loading the Web game AngryBots requires downloading about 19MB of plain text JavaScript code, but only 6.3MB when the code is rendered in binary form.

The browser's JavaScript engine can also execute the object file format more quickly than plain text, further speeding rendering times.

As Web applications grow more sophisticated, companies such as Google and Microsoft, among others, have both been working to equip JavaScript for more complex workloads.

Microsoft has released TypeScript, which is a superset of JavaScript that incorporates advanced features, such as static typing, that make it easier for developers to manage and refine complex codebases. The Google Web Toolkit provides developers with a way to write programs in Java, and then compile them to JavaScript.

Initially, WebAssembly will rely heavily on Mozilla's ASM.js, which is a subset of low-level JavaScript commands. Developers write their programs in C or C++ and then use a compiler to translate them into ASM.js code, which is recognized by all the browsers. Support for additional languages beyond C/C++ will be added in the future.

WebAssembly development is taking place as a community group of the World Wide Web Consortium (W3C), the standards body for the Web. The initial work was done privately by Google, Microsoft and Mozilla in a private effort to reach consensus on the basic outline of the technology. The development team has since moved the codebase to an open GitHub repository.

Joab Jackson covers enterprise software and general technology breaking news for The IDG News Service. Follow Joab on Twitter at @Joab_Jackson. Joab's e-mail address is Joab_Jackson@idg.com

Follow Us

Join the New Zealand Reseller News newsletter!

Error: Please check your email address.

Tags application developmentLanguages and standardsGoogleMicrosoftsoftwaremozilla

Slideshows

Top 50 defining moments of the New Zealand channel in 2016

Top 50 defining moments of the New Zealand channel in 2016

Reseller News looks back on a tumultuous 12 months for the New Zealand channel, assessing the fallout from a year of sizeable industry change. Whether it be local or global mergers and acquisitions, distribution deals or job changes, the channel that started the year differs somewhat to the one set to finish it - Reseller News assesses the key moments that made 2016.​

Top 50 defining moments of the New Zealand channel in 2016
​Hewlett Packard Enterprise honours high achieving NZ channel

​Hewlett Packard Enterprise honours high achieving NZ channel

Hewlett Packard Enterprise honoured its top performing Kiwi partners at the second running of its HPE Partner Awards in New Zealand, held at a glitzy ceremony in Auckland. Recognising excellence across eight categories - from distributors to resellers - the tech giant celebrated its first year as a standalone company, following its official split from HP in 2015.

​Hewlett Packard Enterprise honours high achieving NZ channel
Nutanix treats channel partners to Christmas cruise

Nutanix treats channel partners to Christmas cruise

Nutanix recently took to the seas for a Christmas Cruise around Sydney Harbour with its Australia and New Zealand staff, customers and partners to celebrate a stellar year for the vendor. With the sun out, they were all smiles and mingled over drinks and food.

Nutanix treats channel partners to Christmas cruise
Show Comments