Developers can now compile native C and C++ code to run in Chrome across different hardware architectures.
Google Barge: 10 Informative Images
(click image for larger view)
As part of its ongoing effort to make Web apps perform as well as native apps, Google on Tuesday released Portable Native Client (PNaCl), a software framework that allows developers to compile native C and C++ code so that it can be embedded in and run from any website.
Native code can take advantage of CPUs and GPUs in a way that Web applications still cannot to enable computationally demanding applications that involve sophisticated graphics.
Portable Native Client differs from Google's Native Client (NaCl) technology in that it creates architecture-independent output. Where native code compiled with NaCl emerges tuned for a specific instruction set, like x86, ARM or MIPS, programs compiled with PNaCl will run on any hardware platform. In other words, they will work on mobile and desktop devices.
PNaCl compiles native code into an intermediate form. The resulting LLVM-bytecode then gets wrapped in a portable executable file that can be served from a website.
"When the site is accessed, Chrome fetches and translates the portable executable into an architecture-specific machine code optimized directly for the underlying device," explains Google engineer David Sehr in a blog post.
While PNaCl may allow developers to create hardware-independent code, it's not quite platform-independent: PNaCl applications require Google Chrome to run, because other browser vendors haven't integrated the technology.
In the near term, PNaCl makes ChromeOS more competitive with OS X and Windows as computing environments suited to computationally demanding applications. Whether Google's technology will benefit the Web in the years to come remains to be seen.
"PNaCl and Pepper are not open standards, and there are not even any proposals on the table to standardize them in any forum," O'Callahan wrote in a blog post. "They have documentation, but for the details one must defer to the large bundle of Chrome code that implements them. Other vendors wishing to support PNaCl or Pepper would have to adopt or reverse-engineer this code."
As for Apple and Microsoft, its hard to see either company going out of its way to help hasten adoption of Google's technology. If Google can encourage enough developers to create compelling PNaCl applications that consumers flock to, perhaps Apple and Microsoft will be forced to adapt. But don't hold your breath; it could take a while.
We welcome your comments on this topic on our social media channels, or [contact us directly] with questions about the site.
2017 State of IT ReportIn today's technology-driven world, "innovation" has become a basic expectation. IT leaders are tasked with making technical magic, improving customer experience, and boosting the bottom line -- yet often without any increase to the IT budget. How are organizations striking the balance between new initiatives and cost control? Download our report to learn about the biggest challenges and how savvy IT executives are overcoming them.
Digital Transformation Myths & TruthsTransformation is on every IT organization's to-do list, but effectively transforming IT means a major shift in technology as well as business models and culture. In this IT Trend Report, we examine some of the misconceptions of digital transformation and look at steps you can take to succeed technically and culturally.