> I think it's a bit simplistic to assume native, already compiled code is the only payload worth considering.
WASM IS compiled code
> The portability of wasm will be pretty excellent, and over time there may be a great cross-language ecosystem surrounding wasm that native may not match.
1. They said that about java too.
2. Problem is...you need to compile something to WASM, and currently a lot more somethings are compileable to native than to wasm, and i doubt this will ever change, since compiling to wasm is a strict superset of compiling to native, in terms of work involved in making a compiler. (this is not true for old esoteric architectures, but i do not see you offering me a WASM runtime for the 8051 either)
> Wasm otoh might actually be able to jit/aot compile down
You know what else does that? Any compiled language ... to native code... In fact, we "AOT" it from the start in a process we call ... compilation. Your local free copy of gcc can do this for you. Check it out.
> And likely will have more invested in the ecosystem in doing optimizations in general.
You know what else does good optimization for a given target? You local free copy of gcc. Check out the "march", "mcu", and "O" flags
Point is: I buy the use of interpreted code on IoT: so people who cannot program can still make a light blink. But as soon as you go to compiled code, might as well compile for your actual target, and not a pointless IL (which is what WASM is until you show me your HDL for a WASM cpu)