3 ms·
Why would you even think of compiling C or C++ to Javascript for any "big web app"? You may have a graphics engine that will be made like this, but definitely n
by nnq 13y ago
Why would you even think of compiling C or C++ to Javascript for any "big web app"? You may have a graphics engine that will be made like this, but definitely not the rest of your app...
This is the realm of Dart and TypeScript and maybe others, but not of C++ -> Javascript compilers!
- neilxdsouza 13y agoMy survey compiler compiles surveys to c++. Using emscripten I was able to compile and run the survey in a browser. You can include a web framework - I used Dojo and got it to work quite easily. I then used Dojo mobile - and was able to get that to work to (but may need some tweaking as Im neither a JavaScript nor Dojo Expert). I am able to easily access the DOM and I am able to pass data back to my c++ functions too (responses to the survey to be stored). However it's not ASM.js that is the novelty for me, but being able to target the browser with almost the same c++ runtime code.