WebAssembly (Wasm) is becoming well known for letting users run code written in different languages in the browser. Wasm’s portability, speed and security make it a great way for you to create platforms and extensible frameworks that let users compile their code to Wasm and run it in your system quickly.
The C code may use database APIs and implement logic that would be hard to write in procedural SQL languages.
However, there is a way out of this fragmentation nightmare: the WebAssembly System Interface (WASI) and the https://thenewstack.io/webassembly-to-let-developers-combine-languages/.
Wasm Components are wrappers around core Wasm modules, giving us a way to statically link them together and include high-level interfaces and types in the binary.