Comment on A possible future of Python in the browserComments−DeathArrow1yWhy can't regular Python code be compiled straight to WebAssembly?−jessekv1yThe design of the language.Regular Python code cannot be compiled, unless cython or mypyc code is considered "regular".−incognito1241yIs this the limitation of the current toolchain or is there some fundamental impossibility in the language itself so there can never be a (eg) .py -> ELF compiler?
Comments
Why can't regular Python code be compiled straight to WebAssembly?
The design of the language.
Regular Python code cannot be compiled, unless cython or mypyc code is considered "regular".
Is this the limitation of the current toolchain or is there some fundamental impossibility in the language itself so there can never be a (eg) .py -> ELF compiler?