Very interested in this technology, would like to see some examples created with this technology, more than games. Are there any cpu/gpu heavy applications out there that compile from C++ to asm.js ?
Or any good examples of writing the whole webpage with C++ somehow? All the current examples I've seen utilize webgl canvas and handle the interaction there. How about interaction with a regular HTML interface ?
There are examples of python and lua interpreters being compiled, a pdf renderer, graphviz, a 2d physics engine, and a speech synthesizer. you just need to google it.
Oh right! I almost forgot another cool side project I did last christmas with emscripten: use JSMESS to restore some of my old 8-bit games I wrote as kid in the 80's on an obscure East-German home computer:
Not C++ but C, but I did get a basic port of my program info-beamer running in a few hours. It's a C program that's controlled by Lua scripts and renders to OpenGL. The example scene just shows an image that gets modified by a GLSL shader.
Comments
Very interested in this technology, would like to see some examples created with this technology, more than games. Are there any cpu/gpu heavy applications out there that compile from C++ to asm.js ?
Or any good examples of writing the whole webpage with C++ somehow? All the current examples I've seen utilize webgl canvas and handle the interaction there. How about interaction with a regular HTML interface ?
There are examples of python and lua interpreters being compiled, a pdf renderer, graphviz, a 2d physics engine, and a speech synthesizer. you just need to google it.
I myself have modified an emulator to run aswell.
Oh right! I almost forgot another cool side project I did last christmas with emscripten: use JSMESS to restore some of my old 8-bit games I wrote as kid in the 80's on an obscure East-German home computer:
http://www.flohofwoe.net/history.html
Not C++ but C, but I did get a basic port of my program info-beamer running in a few hours. It's a C program that's controlled by Lua scripts and renders to OpenGL. The example scene just shows an image that gets modified by a GLSL shader.
http://dividuum.de/experiments/info-beamer-js/
ffmpeg - http://bgrins.github.io/videoconverter.js/
As impressive as it is, I think it shows some limitations of the system:
"The ffmpeg.js file is around 24.1 MB or so. It ends up being around 6.1 MB gzipped.
The ffmpeg-all-codecs.js file is around 27.5 MB or so. It ends up being around 6.9 MB gzipped."
EDIT: With a fast connection it´s actually not so bad. https://video-funhouse.herokuapp.com/
I imagine it would be possible to generate a smaller version selecting only a subset of features/codecs.
Has someone tried it ?
It would be interesting to see node.js and meteor working with emscripten. Then you can forget javascript and keep it all in c++.
I wrote this in C++: http://suprsede.com/ Go easy on it!