40 ms·
Why not just something like this? https://transcrypt.org/ https://transcrypt.org/ It's Python to JS in a way that makes sense to me at least. JavaScript and Py
by no_wizard 9y ago
Why not just something like this? https://transcrypt.org/ https://transcrypt.org/
It's Python to JS in a way that makes sense to me at least. JavaScript and Python have a lot of similarities in the languages imo especially around classes and functions
- sametmax 9y agoBecause it's a joke. It's just not Python. Not half of the Python libs work on those things. You don't have serious introspection, most of the stdlib is missing, the stack trace doesn't work as expected, you can forget about async / await and yield from, etc. To run Python in the browser correctly, you need the entire 3Mo Python VM. Transpiling is not enough because Python semantics are complicated as it is very, very rich. Comparatively, js is incredibly basic.