3 ms·
There's also rapydscript-ng by the author of Calibre https://github.com/kovidgoyal/rapydscript-ng/ https://github.com/kovidgoyal/rapydscript-ng/
by rsi_oww 11y ago
There's also rapydscript-ng by the author of Calibre
https://github.com/kovidgoyal/rapydscript-ng/ https://github.com/kovidgoyal/rapydscript-ng/
- AnkhMorporkian 11y agoRapydscript is neat, but it's not exactly python. If I wanted to import a python package from PyPi into Rapydscript, I'd be SOL.
- rsi_oww 11y agoBut you can't do that with Transcrypt, either. Both are "not quite python" and won't run regular python code. There is very little difference between the goal of the two projects.
- AnkhMorporkian 11y agoYes, you can. As long as the import is pure python code, it'll handle the import just fine. Edit: Within reason. Anything involving the sys module is out, since there's no system to back it.
- rsi_oww 11y ago"Known restrictions...No standard libs...Not all methods of builtin types are there by default...No iterator, generator, xrange stuff." There's also the fact that everything is still, at the core, pure javascript. For example you can't print("string" * 10) or even iterate over a dictionary. I'm not saying this to put down the project - I am very interested in it - but it cannot parse pure python, and that isn't the goal of the project.
- AnkhMorporkian 11y agoGranted, there are restrictions. However, a lot of those restrictions have disappeared in recent releases, and more are disappearing all the time. Iterators, generators, xrange, I expect those all to be included in due time. Additionally, re: the standard library, there is a project called Ouroboros[1] that replicates the standard library in pure python, and there was discussion regarding integrating that into Transcrypt. You're right, it's not there yet, and I'm interested in it for purely theoretical reasons (I personally don't think I'd ever use Transcrypt for anything in production), but I think it holds great potential. [1]: https://github.com/pybee/ouroboros/tree/master/ouroboros https://github.com/pybee/ouroboros/tree/master/ouroboros