Small example of WebGL rendering with Emscripten & WebAssembly
Run in terminal:
cd ~
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install sdk-upstream-master-64bit
./emsdk activate sdk-upstream-master-64bit
source ./emsdk_env.sh
cd ~
git clone https://github.com/juj/webgl_render_test.git
cd webgl_render_test
mkdir build
cd build
emcmake cmake ..
cmake --build .
# Now should have produced webgl_render_test.html you can open in Firefox
# For Chrome, run `python SimpleHTTPServer`, or `emrun --no_browser .` to host an ad hoc web server in current working directory,
# then navigate to `http://localhost:8000/` or `http://localhost:6931/`