3 ms·
Repl.it has supported python on the browser for a while: http://repl.it/ http://repl.it/ (an an interpreter, not as a translator, though). It also supports rub
by DanielRibeiro 14y ago
Repl.it has supported python on the browser for a while: http://repl.it/ http://repl.it/ (an an interpreter, not as a translator, though).
It also supports ruby, scheme, lua and others[1]
What made it impractical was the slowness. Emscripten seems to work fine for clang[2], not so much for interpreted languages. Maybe the translator path can solve this issue.
[1] http://repl.it/#:languages http://repl.it/#:languages
[2] https://developer.mozilla.org/en-US/demos/detail/bananabread https://developer.mozilla.org/en-US/demos/detail/bananabread
- azakai 14y ago> What made it impractical was the slowness. Much of the slowness was because emscripten was immature at the time that repl.it worked on their port. If someone built python with current-day emscripten it should be much faster. There is a better way, though. We could compile PyPy's generated C implementation and add a JIT to JS to that. That would be the best way to get fast python into the browser. If anyone is interested to hack on that let me know, I would assist from the emscripten side. Note though that this would only give throughput speed, not startup speed. For startup speed, a method like pyjamas or bython will do better - at the cost of not fully supporting the python language, of course.
- jimhefferon 14y ago> What made it impractical was the slowness. Although, speed is way less important when the code is running on lots of browsers out there, compared with running lots of instances on your server.