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

Join the Good Gear Guide newsletter!

Error: Please check your email address.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection

Tags application developmentLanguages and standardsGoogleMicrosoftsoftwaremozilla

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Joab Jackson

IDG News Service
Show Comments

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Matthew Stivala

HP OfficeJet 250 Mobile Printer

The HP OfficeJet 250 Mobile Printer is a great device that fits perfectly into my fast paced and mobile lifestyle. My first impression of the printer itself was how incredibly compact and sleek the device was.

Armand Abogado

HP OfficeJet 250 Mobile Printer

Wireless printing from my iPhone was also a handy feature, the whole experience was quick and seamless with no setup requirements - accessed through the default iOS printing menu options.

Azadeh Williams

HP OfficeJet Pro 8730

A smarter way to print for busy small business owners, combining speedy printing with scanning and copying, making it easier to produce high quality documents and images at a touch of a button.

Andrew Grant

HP OfficeJet Pro 8730

I've had a multifunction printer in the office going on 10 years now. It was a neat bit of kit back in the day -- print, copy, scan, fax -- when printing over WiFi felt a bit like magic. It’s seen better days though and an upgrade’s well overdue. This HP OfficeJet Pro 8730 looks like it ticks all the same boxes: print, copy, scan, and fax. (Really? Does anyone fax anything any more? I guess it's good to know the facility’s there, just in case.) Printing over WiFi is more-or- less standard these days.

Ed Dawson

HP OfficeJet Pro 8730

As a freelance writer who is always on the go, I like my technology to be both efficient and effective so I can do my job well. The HP OfficeJet Pro 8730 Inkjet Printer ticks all the boxes in terms of form factor, performance and user interface.

Michael Hargreaves

Windows 10 for Business / Dell XPS 13

I’d happily recommend this touchscreen laptop and Windows 10 as a great way to get serious work done at a desk or on the road.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?