Here's what we have in a nutshell:
. Scripts or lack of Garbage Collector
The application lifecycle should either be very short (start -> execute -> kill) because there's no built-in GC yet, or have no GC at all (RUST, C, Zig).
For example, terminal utilities, custom DB functions, and serverless.
. Cross-execution
WASM runs on any computer, becoming a universal platform for creating terminal utilities in absolutely any language. To run them, you'll only need to install WASM on your computer once (which sooner or later will likely be built into all OSs). This will replace language interpreters and allow you to run scripts from all languages.
. Cross-compilation
This allows you to build an application on any system that will run on WASM on any other system. At the same time, the size and startup speed of such applications are minimal (smaller than default builds).
. PaaS
Since WASM is an "interpreter," you can run third-party code in a sandbox mode, controlling its access, resources, and runtime. This is convenient for creating PaaS platforms. Considering the optimization in terms of size and speed, WASM seems to be the ideal evolution for Serverless (although it's already being tagged as an "Edge" technology, it's in the same domain).
My prediction:
โ The future of Serverless and Edge belongs to WASM.
โ WASM will be integrated into OSs, allowing you to write scripts in any language and run them on any OS from a single binary (this will be simply great).
โ It will continue to be actively integrated into databases to enable the execution of functions written in any programming language.
โ Various GC implementations for WASM will emerge, and they will gradually start allowing the migration of languages with GC to it. This will then lead to the development of Serverless Containers on WASM.
โ If the transition is seamless for non-system programmers (they'll just need to compile and run via WASM), then the entire web will jump to WASM.
P.S.
I also found an interesting project: wasmer โ what's interesting is that they already offer running Django (I still don't understand how this will work without GC) and Wordpress on WASM (PHP is already a scripting language, so I believe it).