You might find Emscripten interesting: it compiles normal C and C++ code to JavaScript and adds a Posix-compliant wrapper around it. With it you can already run stuff like Python or eSpeak in modern browsers.
Strange...on my desktop Debian install it works brilliantly with ~29050 binary packages.