3 ms·
No because most languages don't just compile to WASM... You need to compile and distribute a runtime or, in the case of dynamic languages, full interpreter wit
by Mikeb85 4y ago
No because most languages don't just compile to WASM... You need to compile and distribute a runtime or, in the case of dynamic languages, full interpreter with the web page. JS is way less code to ship depending on how much interactivity you want...
- berkes 4y ago> You need to compile and distribute a runtime or, in the case of dynamic languages, But for all other languages there are easy compilers. Which is why WASM, apparently, is used with such languages mostly[1] I'd expect that these runtimes can be both distributed with browsers when they become really popular, and can be reduced in size. E.g. Python's runtime is relatively large and ships with a large stdlib. Most of which won't be needed in your code, so I'd expect it to be possible to compile a runtime that only includes what your code really needs, for example. [1] https://blog.scottlogic.com/2022/06/20/state-of-wasm-2022.html https://blog.scottlogic.com/2022/06/20/state-of-wasm-2022.ht...