Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternatives to RustPython? #32

Open
michaelwooley opened this issue Apr 27, 2022 · 3 comments
Open

Alternatives to RustPython? #32

michaelwooley opened this issue Apr 27, 2022 · 3 comments

Comments

@michaelwooley
Copy link
Owner

michaelwooley commented Apr 27, 2022

Do we really need to have python reimplemented in rust?

What about:

  • cpython itself?
  • Python bindings in rust?
@michaelwooley
Copy link
Owner Author

michaelwooley commented Apr 27, 2022

python 3.11 wasm support

Experiment branch | python/cpython wasm | OG tutorial @ ethanhs/python-wasm | demo

  • 🟢 Pretty incredible. Basically works out of the box.
  • 🟢 os, sqlite3, and most of rest of stdlib just works out of box.
  • 🟢 Has a builtin FS! Amazing but WTF? HOW?!
  • 🟡 JS glue generated by emscripten a mess:
    • No module boundaries/not importable (as written)
    • Lots of dead code? (Or just code that we throw into the global scope that may be used by some sneakily imported code?)
  • 🟡 Works on a pipes basis (stdin/stdout/stderr). Interaction with stdin still needs to be figured out.
  • 🟡 🧪 Experimental

@michaelwooley
Copy link
Owner Author

@michaelwooley
Copy link
Owner Author

(More looks) Emscripten investigate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant