These are still NIFs as we know them, just relying on the rust compiler to do the heavy lifting. I guess a future step could be to teach OTP directly to speak WASM, so you could just pull in an OTP library with a wasm binary and it would Just Work?
I agree, I think there could be significant gains in exploring this possibility.
I just don’t know if things like syscalls (network mostly) could be addressed with WASM given the current state of WASI. But I’m sure not all NIF´s depend on it to work.
The user experience I was imagining was very similar to that of NIFs today, only the programmer would provide a .wasm file rather than a .so file. This would require quite a lot of tooling, but it was exciting to think about what that would be like.