WebAssembly (WASM)

Siemens Digital Industries Software

A Windows application JT2Go is able to run on a web browser through the Web-Assembly (WASM) module, which uses the Emscipten compiler to turn the C/C++ code into WASM code consisting of html, js and wasm files. The web app is able to perform the same rendering task of loading a model. The radial engine object courtesy of JT Open models.

WebAssembly Scheme

C/C++ source code compiled into WASM code, which in turn into machine code. Images courtesy of Milica Mihajlija.

Source code needs be compiled multiple times, once for each platform of Windows/MacOS/Linux; whereas the WASM compile is a one-time deal. The WASM compilation also takes less time than the traditional Javascript code.