Type tracing in particular is the big win, and with a dynamic languages you simply can't prove enough to do it ahead of time. There's also startup time that you're paying with AOT and avoiding with JIT.
> Type tracing in particular is the big win, and with a dynamic languages you simply can't prove enough to do it ahead of time.
The post I originally replied to brought this up in the context of TypeScript with the aside that TypeScript is basically JavaScript. Do you think that using TypeScript's static typing and compiling to wasm could/would be faster than JIT-compiled JavaScript?
All of the "just-in-time" optimizations can be done ahead of time. Which saves [that much run time x that many users] in computer time.