Previous | Next |
WebAssembly (WASM)
Siemens Digital Industries Software
![](https://kangli.me/_resrc/img/research/projects/WASM_demo_JT2Go_en.jpg)
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
![](https://kangli.me/_resrc/img/research/projects/WASM_scheme_assembly_en.jpg)
C/C++ source code compiled into WASM code, which in turn into machine code. Images courtesy of Milica Mihajlija.
![](https://kangli.me/_resrc/img/research/projects/WASM_scheme_compile_en.jpg)
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.