I think everyone or every beginner to WASM would be struggling a little bit to understand or make sense of it at the first place. This is including myself by the way.
There are plenty different websites with similar topic as mine here. My goal is to give you guys very brief introduction to WASM. By all means you can refer to the WebAssembly website and learn more. If you like to delve into more technical discussion, refer to the MDN site and navigate to the WebAssembly topic.
If you’ve noticed anything wrong with this post, please leave a comment for me. I would be delighted to read your comments and reply to them.
What is WASM?
WASM is a new type of code. It can be run in any modern browsers. You don’t need to actually write WASM code, instead it’s a compilation target for low-level source languages (WHAT???). On the other hand you compile your code to it. It has a small size, and therefore it’s fast to load and run.
As you know, every programming language gets translated to machine code in order to be executed by the processor. WASM however, has got nothing to do with that, despite its name. It’s only designed for the browser.
Take a look at the below simple diagram. It’s a high level picture of how WASM works:
Why do we need it?