Running C++ in a browser


If you are a c/cpp developer and want to run your code on a web, in browser there is a solution for you.
First make sure that you code is portable ie.: can be compiled on multiple platforms.
Then you can use a compiler called Emscripten that is capable to output asm.js compatible javascript code or webassembly code.
Sounds good? There is more if your code uses OpenGL ES it will cross compile that to WebGL.
Setting up the actual enviroment is a breeze as there is a docker container for that on docker hub.

Comments

Popular posts from this blog

The biggest java security vulnerability of 2021