Sign in with
Sign up | Sign in

Google Enables Developers to Connect C Code to HTML5

By - Source: Tom's Guide US | B 15 comments

Google has just added native client (NaCl) support in Chrome 14 beta, which enables developers to leverage C and C++ interfaces for their web applications.

NaCl is integrated as a sandboxing technology, which allows the browser to safely execute platform independent and untrusted code without being a threat to the browser itself, even if the software may be harmful.

NaCl was integrated for the first time in Chrome 5 behind a flag and is enabled via Pepper, a collection of APIs that can connect C and C++ code to modern websites that run HTML5 technologies. "This means that once you’ve ported your code to Native Client, it will work across different operating systems, and you only need to maintain one code base," Google said.

According to the company, NaCl supports Pepper APIs for 2D graphics, stereo audio, URL fetching, sandboxed local file access, and asynchronous message passing to and from JavaScript. Down the road, Google plans to add support for hardware accelerated 3D graphics (OpenGL ES 2.0), fullscreen mode, and networking such as WebSockets and peer-to-peer connections.

Ask a Category Expert

Create a new thread in the Streaming Video & TVs forum about this subject

Example: Notebook, Android, SSD hard drive

This thread is closed for comments
  • 0 Hide
    icepick314 , August 19, 2011 6:41 PM

    am I reading April 1st edition of the article?
  • 0 Hide
    dstigue , August 19, 2011 6:47 PM
    Ice you probably wish you were. This has been out there for a while. Not sure why it's hitting Tom's now. They are so far behind. Let the hacking begin.
  • 0 Hide
    CaedenV , August 19, 2011 8:18 PM
    ya, Toms covered this a month ago it seems. Odd that they recycled it
  • Display all 15 comments.
  • -2 Hide
    Anonymous , August 19, 2011 8:20 PM
    Munch on this: Native Quake in the browser, no plugin.


  • -1 Hide
    JamesSneed , August 19, 2011 8:23 PM
    Déjà vu http://www.tomsguide.com/us/Chrome-Beta-Native-Client-Web-Audio-API-Dev-Channel,news-12158.html
  • 1 Hide
    alidan , August 19, 2011 9:00 PM
    hello viruses, how i missed you...

    seriously, there a way to block c code from html5?
  • 0 Hide
    vittau , August 19, 2011 9:16 PM
    We can only hope it runs in a VERY good sandbox...
  • 2 Hide
    Camikazi , August 19, 2011 9:45 PM
    Captn CorruptMunch on this: Native Quake in the browser, no plugin.http://nacl-quake.appspot.comEnjoy.

    Why is that page telling me I am missing a Plugin?
  • 0 Hide
    kartu , August 19, 2011 10:24 PM
    Sandboxed NATIVE code eh? Are you kidding me....
  • 1 Hide
    Anonymous , August 19, 2011 11:17 PM
    NaCl... also means sodium chloride. Salty client I suppose? :p 
  • 0 Hide
    K-zon , August 19, 2011 11:48 PM
    Should maintain a place of differenec within common usage and place an end there, so the coding of either don't place themselves anymore together they would be.

    On ideas of interest of rather "porting" from or the other is an issue then this would be a limit of just its use more then, saying the use is the only one there.

    More of ideas of a cross-platform again, but still. What seems to work the most might just be it. Usually in terms left with liimted cross-platform use, like saving formats of something the most. Can work with one format but can't save the other.
  • 4 Hide
    agnickolov , August 20, 2011 12:21 AM
    In other words: Google reinvents ActiveX.

    Don't get me wrong, I'm a C++ developer myself so this is great news for me :) .
  • 0 Hide
    Anonymous , August 20, 2011 5:30 AM
    oh,so it means you can embed windows into the browser,and open a browser in that embeded windows,can go on that looooop forever if your spec is good enough..LOL
  • 1 Hide
    eddieroolz , August 21, 2011 6:32 PM
    Should i be ashamed since I read that as sodium chloride?
  • 0 Hide
    therogerwilco , August 23, 2011 6:26 PM
    I read that as sodium chloride too lol
Tom’s guide in the world
  • Germany
  • France
  • Italy
  • Ireland
  • UK
Follow Tom’s guide
Subscribe to our newsletter
  • add to twitter
  • add to facebook
  • ajouter un flux RSS