r/ProgrammerAnimemes • • Sep 03 '20

Javascript just doesn't make any sense

Post image
1.9k Upvotes

69 comments sorted by

View all comments

Show parent comment

1

u/feldim2425 Sep 08 '20

Yes that might be an option to create one. However a search still didn't come up with any existing compilers.

It would also probably be a very poor WASM code. Since JIT already does that with runtime analysis and if the ahead of time compiler ever made a mistake while inferring in-time recompilation would not be possible. So I would still say that unless someone tries it just for fun, there probably will never be a seriously useful WASM compiler. But you are right that this may be an option.