I don't understand how it's possible that we just randomly come across a project that just casually implements a Python interpreter in Rust. Don't these things take a massive amount of effort? Wouldn't this be making waves much earlier in its development process?<p>I feel the same way about Ruff, for example. One day it was "black all the things" and the next it's "btw we just reimplemented the entire Python formatting/linting ecosystem in Rust, and it's 100x faster, no biggie".<p>What's happening? Is it just so much easier to write stuff in Rust that projects like these pop out of people's heads, fully-formed? It boggles the mind.
The logo is perfect:<p><a href="https://github.com/RustPython/RustPython/blob/main/logo.png">https://github.com/RustPython/RustPython/blob/main/logo.png</a>
Interesting that it relies on OpenSSL, either dynamically from the OS or vendored at compile time. I wonder what the implications would be for using something like rustls. You’d get TLS batteries included and kill a large external dependency… but possibly introduce behavior changes to low-level cryptographic operations, which is scary.<p>Still, the maintainers stated that they don’t plan to implement Python’s readline module because they already have a rust implementation of readline. A similar argument could apply here - use native rust implementations of dependencies and expose them via the expected Python APIs. This would break some ambitious Python programs, but those probably wouldn’t consider alternative runtimes anyway.<p><a href="https://github.com/rustls/rustls">https://github.com/rustls/rustls</a>
Does numpy runs on rustpython? And other libraries used in ML (not expecting compatibility with huge libraries like torch or tensorflow, but rather, getting the leaves to work should be doable)<p>If not, is it at all possible to get numpy to work and other libraries written in native code? I see that rustpython also work in wasm: but what about compiling numpy's native code to wasm as well?
Does this have faster startup times than cpython?<p>Every time I want to rewrite a shell function in python, I always hesitate due to the slow startup.
I wonder if this would make Python web applications more secure at interpreter and library level.<p>Running it on hardened Linux, OpenBSD, or FreeBSD was a start. A Rust implementation might help.<p>I also miss setups like eCos RTOS where a GUI determined which features got compiled in. Strip each Python app down to just what it needs in the interpreter. Might squeeze it in L1-L2 cache that way, too. Aside from embedded (eg MicroPython), has anyone anything like that for use on servers?
<a href="https://notes.eatonphil.com/lua-in-rust.html" rel="nofollow">https://notes.eatonphil.com/lua-in-rust.html</a>
It's some kind of developer trend.
This project doesn't <i>seem</i> to be adhering to the terms of the license of the original CPython modules that have been copied into its source repository.