What about compatibility with Python packages?
this post was submitted on 07 Feb 2024
43 points (100.0% liked)
Rust
6013 readers
4 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 1 year ago
MODERATORS
43
RustPython: An open source Python 3 (CPython >= 3.11.0) interpreter written in Rust
(rustpython.github.io)
It'll have to implement CPython's C API to work with packages that use native code. I don't know if that's the plan but I wouldn't consider their implementation compete without it.
Can RustPython be sandboxed properly when used as a scripting language? You can't do sandboxing with CPython. There is an abandoned sandboxing project for pypy, but then you'll be stuck with an old version of python.
WebAssembly
I've unironically been looking for a decent way to run Python in the web, mostly for code sharing purposes (our app needs certain calculations in offline mode), so this could actually work for me.