Articles tagged “emscripten”
-
Shrinking WebAssembly and JavaScript code sizes in Emscripten
Emscripten is a compiler toolchain for asm.js and WebAssembly which lets you run C and C++ on the web at near-native speed. Emscripten output sizes have decreased a lot recently, especially for smaller programs. Alon Zakai takes a closer look at some of these optimizations and new areas for improvement.
-
Synchronous Execution and Filesystem Access in Emscripten
Emscripten helps port C and C++ code to run on the Web. When doing such porting, we have to work around limitations of the web platform, one of which is that code must be asynchronous: you can’t have long-running code on the Web, it must be split up into events, because other important things – […]
-
Massive: The asm.js Benchmark
asm.js is a subset of JavaScript that is very easy to optimize. Most often it is generated by a compiler, such as Emscripten, from C or C++ code. The result can run at very high speeds, close to that of the same code compiled natively. For that reason, Emscripten and asm.js are useful for things […]
-
Porting "Me & My Shadow" to the Web – C++ to JavaScript/Canvas via Emscripten
Editors note: This is a guest post by Alon Zakai of the Mozilla Emscripten team. Thanks Alon! Me & My Shadow is an open source 2D game, with clever gameplay in which you control not one character but two. I happened to hear about it recently when they released a 0.3 version: Since I’m looking […]