Exploring the WebAssembly text format
Machines understand a bunch of 1s and 0s. We optimize the binary to make it run faster and more efficiently. The more concise and optimal the instructions are, the more efficient and performant the machine will be. But for people, it is difficult to contextually analyze and understand a huge blob of 1s and 0s. That is the very reason why we started abstracting and creating high-level programming languages.
In the WebAssembly world, we convert human-readable programming languages, such as Rust, Go, and C/C++, into binary code. These binaries are a bunch of instructions with opcodes and operands. These instructions make the machine highly efficient but contextually make it difficult for us to understand.
Why should we worry about the readability of the binary generated? Because it helps us to understand the code, which helps while debugging the code.
WebAssembly provides the WebAssembly text format, WAST or WAT. WAST is a human-readable...