6.8. WebAssembly¶
It can have some performance issues when we are talking about more intensive use, like 3D games, computer vision, and image editing. WebAssembly is meant to solve this problem.
WebAssembly (abbreviated Wasm) is a binary instruction format for a stack-based virtual machine. Wasm is designed as a portable compilation target for programming languages, enabling deployment on the web for client and server applications.
It means you can compile a code written in C or Rust, for example, and execute it on the browser, at near-native speed.
6.8.1. 参考¶
[入门篇]How To Write A WebAssembly App in Go: https://medium.com/vacatronics/how-to-write-a-webassembly-app-in-go-fd769fa2b64b
[性能篇]WebAssembly in Go vs JavaScript: A Benchmark: https://medium.com/vacatronics/webassembly-in-go-vs-javascript-a-benchmark-6deb28f24e9d