WebAssembly is a virtual assembly language for the browser. When we say virtual, it means that it cannot be run natively on the underlying hardware. Since the browser can be running on any architecture, it is not possible for the browser to run WebAssembly directly on the underlying hardware.
In this tutorial, we will cross compile a Go application to WebAssembly and run it on the browser. The article then describes following:
- What is WebAssembly?
- What are we developing?
- Hello World WebAssembly program cross compiled from Go
- Coding the JSON formatter
… and more. Plenty of code examples together with excellent explanation what is happening in the code. The source code for this tutorial is available here and there is part 2 odf this article available, too. Very insightful![Read More]