Native Code on 

web browsers



I want to target all platforms but i don't want to use java!

Yes most of the mobile platforms allow the use of C & C++, but generally this does not result in a noticeable performance improvement.

The Web


Biggest open & standardized platform
Great for reaching people

Why not make our content available for everyone?



i don't do web stuff. html is not even a programming language

I GOT CHA' COVERED!

  • Google's NaCl
    • The Good
      Performance similar to native code.
    • The Bad
      Only works con Chrome
    • Example: Bastion (http://chrome.supergiantgames.com/)

Behind the scenes

(NaCl)


I GOT CHA' COVERED!

  • Mozilla's Emscripten
    • The Good
      Runs everywhere (as long as typed arrays are supported by the JavaScript engine)
    • The Bad 
      Performs between 50%-100% compared to native code.
    • Example: Epic's Citadel (http://www.unrealengine.com/html5/)

behind the scenes

(Emscripten)

What i'll try to achieve




  • Determine which platforms fully support hardware accelerated graphics through the Web Browser.
    • And how to target them 
  • Create a PNaCl / Emscripten build system.
    • Targeting both context's (CanvasRenderingContext2D & WebGL)

demos



Just in case you didn't understand what I just said... Here have some pretty demos

Native Code in Web Browsers!

By Raúl G. Roa Gómez

Native Code in Web Browsers!

  • 456