HTML and CSS Reference
In-Depth Information
Predicting the Future
Compiling C++ to high-performance JavaScript is cutting edge. We can't predict exactly how the next decade will play
out, but since Emscripten and asm.js are very new, it's easy to imagine significant performance and code generation
improvements. However, the biggest room for improvement comes from new and richer web browser APIs. As of
now, WebGL exposes the least common denominator of graphics APIs: OpenGL ES 2. When a version of WebGL that
exposes OpenGL ES 3 is available, games can take advantage of increased graphical fidelity and capabilities.
When WebCL (a JavaScript API for GPU computing via OpenCL) is widespread, games can offload arbitrary
computation to the GPU. WebCL could also make it possible to access any idle CPU cores and vector units, making
better use of overall system resources.
I'm not sure that Emscripten itself will remain the dominant toolchain for compiling to JavaScript, but, if not,
something else will take its place. Compiling to JavaScript isn't going away anytime soon. The fact that you can run
your compiled code in all browsers, even if they don't specially optimize for asm.js, is too powerful.
If you have a C++ game and you want your players to download and play it securely, with no friction, in a web
browser, give Emscripten a chance.
Search WWH ::

Custom Search