aboutcode-org / aboutcode-org/license-expression

Deploy an online tool

Đang mở
#18 5 bình luận 0 reaction 1 người được giao Được @alisianoi nhận Xem trên GitHub
Ngôn ngữ chính
Python
Star
73
Fork
33
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

This issue will capture progress on making `license-expression` and `boolean.py` into online tools.

Transpiling tools that did not quite work:

1. RapydScript https://github.com/atsepkov/RapydScript
Lacks support for importing things (like, `import __future__`), its list of importable modules [is here][1]

2. Batavia https://github.com/pybee/batavia
The idea here is to compile python to its bytecode and then run it in a javascript vm. Because python bytecode changes from version to version, `batavia` currently supports `3.4.4` and possibly `3.5.x` (their docs state many things). My problem was compiling those pythons on Archlinux and when I finally did a) their test suite [did not quite pass][4] and b) it chocked on `import __future__`.

3. PyPyJS https://github.com/pypyjs/pypyjs
The whole thing is complicated and I failed to make it work. Main demotivator: the website offers python `2.7.9` and there is a [github issue][2] that indicates `python 3` support is stalling.

Transpiling tools that look promising:

1. Transcrypt https://github.com/qquick/Transcrypt and http://transcrypt.org
This is currently the only candidate that has a distinct transpiling step (you actually see the `.js` files as a result) that could be made to work. However, there are problems which are [summarized on SO][3].

2. Brython https://github.com/brython-dev/brython
The most laid-back approach: just works, delivers results but sometimes the resulting boolean expressions come out wrong (runtime error).

Transpiling tools that look promising but not yet tried:

1. Skulpt http://www.skulpt.org/
It looks similar to Brython, which is why untried.

1. flexx https://github.com/zoofIO/flexx

1. https://github.com/alehander42/pseudo-python
1. https://github.com/alehander42/pseudo

[1]: https://github.com/atsepkov/RapydScript/tree/master/src/lib
[2]: https://github.com/pypyjs/pypyjs/issues/172
[3]: https://stackoverflow.com/questions/44463861/transpiling-boolean-py-package-to-javascript-with-transcrypt
[4]: https://github.com/pybee/batavia/issues/578

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.