https://webassembly.org/, also known as Wasm, is a binary format for representing executable code, designed to be easily embedded into other projects. It turns out that Wasm is also a perfect candidate for user-defined functions (UDFs) on the backend, thanks to its ease of integration, performance and popularity.

WebAssembly is a format for executable code designed first and foremost to be portable and embeddable.

Wasm is a binary format, but it also specifies a human-readable text format called https://webassembly.github.io/spec/core/text/index.html or WAT.

To create a user-defined function in WebAssembly, we first need to write or compile a function to Wasm text format.

Related Articles