Feeds

Mainstream Chrome spits ARM, Intel apps on the fly from cross-platform code

Architecture, smarchitecture ... Get .exe speed on the web

The essential guide to IT transformation

Google has shipped the stable release of version 31 of its Chrome web browser, and with it the first generally available version of its Portable Native Client (PNaCl) compiled-code technology for the web.

First unveiled at the Google I/O developer conference earlier this year, PNaCl is an updated version of the Native Client (NaCl) technology that has been present in Chrome since 2011.

NaCl allows developers to write modules for sandboxed web apps in C/C++, rather than JavaScript. These compiled binary modules can then be downloaded by a user's web browser and executed on the local CPU, taking advantage of the full computational power of the user's PC.

Because NaCl modules are essentially binary executables, however, developers must build separate versions of them for each processor architecture, including 32-bit and 64-bit Intel chips, ARM, and so on.

PNaCl (pronounced "pinnacle") eliminates this problem by compiling the modules into an intermediary format instead of executable code, then having the browser complete the final compilation step for whichever architecture it's running on.

The tech is now available in the stable releases of Chrome for Windows, OS X, Linux, and Chrome Frame.

Google wouldn't mind seeing it show up in other browsers, too – it's open source – but don't hold your breath. The Mozilla Foundation, for one, has pooh-poohed the idea of browsers running native code since Google first floated it in 2010. Microsoft, on the other hand, has offered ActiveX as its own take on native code for the web for years now and isn't likely to change gears.

Developers who write PNaCl modules can still have their code run on non-Chrome browsers, however, by compiling them to JavaScript using the Emscripten compiler and Google's pepper.js library.

You can see some PNaCl code in action – both executing natively and via the browser's JavaScript interpreter – by visiting Google's examples gallery (though to run the native versions you'll need to be sure your copy of Chrome is up to date). ®

Secure remote control for conventional and virtual desktops

More from The Register

next story
Apple promises to lift Curse of the Drained iPhone 5 Battery
Have you tried turning it off and...? Never mind, here's a replacement
Mozilla's 'Tiles' ads debut in new Firefox nightlies
You can try turning them off and on again
Linux turns 23 and Linus Torvalds celebrates as only he can
No, not with swearing, but by controlling the release cycle
Scratched PC-dispatch patch patched, hatched in batch rematch
Windows security update fixed after triggering blue screens (and screams) of death
This is how I set about making a fortune with my own startup
Would you leave your well-paid job to chase your dream?
prev story

Whitepapers

Endpoint data privacy in the cloud is easier than you think
Innovations in encryption and storage resolve issues of data privacy and key requirements for companies to look for in a solution.
Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
Advanced data protection for your virtualized environments
Find a natural fit for optimizing protection for the often resource-constrained data protection process found in virtual environments.
Boost IT visibility and business value
How building a great service catalog relieves pressure points and demonstrates the value of IT service management.
Next gen security for virtualised datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.