TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

RustPython: A Python Interpreter Written in Rust

196 pointsby bovem10 months ago

18 comments

stavros10 months ago
I don&#x27;t understand how it&#x27;s possible that we just randomly come across a project that just casually implements a Python interpreter in Rust. Don&#x27;t these things take a massive amount of effort? Wouldn&#x27;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 &quot;black all the things&quot; and the next it&#x27;s &quot;btw we just reimplemented the entire Python formatting&#x2F;linting ecosystem in Rust, and it&#x27;s 100x faster, no biggie&quot;.<p>What&#x27;s happening? Is it just so much easier to write stuff in Rust that projects like these pop out of people&#x27;s heads, fully-formed? It boggles the mind.
评论 #41147068 未加载
评论 #41146763 未加载
评论 #41148146 未加载
pornel10 months ago
The logo is perfect:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;RustPython&#x2F;RustPython&#x2F;blob&#x2F;main&#x2F;logo.png">https:&#x2F;&#x2F;github.com&#x2F;RustPython&#x2F;RustPython&#x2F;blob&#x2F;main&#x2F;logo.png</a>
pbronez10 months ago
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:&#x2F;&#x2F;github.com&#x2F;rustls&#x2F;rustls">https:&#x2F;&#x2F;github.com&#x2F;rustls&#x2F;rustls</a>
nextaccountic10 months ago
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&#x27;s native code to wasm as well?
upbeat_general10 months ago
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.
评论 #41147958 未加载
评论 #41151966 未加载
nickpsecurity10 months ago
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?
pipeline_peak10 months ago
If Rust makes its way into the Linux Kernel, another mature C project, I wouldn’t be surprised if a Rust interpreter replaces CPython.
jeden10 months ago
<a href="https:&#x2F;&#x2F;notes.eatonphil.com&#x2F;lua-in-rust.html" rel="nofollow">https:&#x2F;&#x2F;notes.eatonphil.com&#x2F;lua-in-rust.html</a> It&#x27;s some kind of developer trend.
Zamiel_Snawley10 months ago
I don’t see it on the main read me, what are the limitations&#x2F;incompatibilities with CPython at this point in time? How “drop in ready” is it?
评论 #41143994 未加载
评论 #41146031 未加载
评论 #41144011 未加载
评论 #41146507 未加载
jbernsteiniv10 months ago
Does RustPython support the GIL? It would be ironic for a language with a crab as a mascot to not depend on having gills or at least one.
hughdbrown10 months ago
There&#x27;s no installable version for pyenv. In general, how well does this work with virtualenvs?
abdullahalharir10 months ago
Are there any benchmarks made public in comparison with the python3 interpreter?
jeden10 months ago
We waiting for Ruby ;)
评论 #41145496 未加载
jedisct110 months ago
A Python interpreter has to be written in every language.
评论 #41147619 未加载
iamgopal10 months ago
Is there GoPython ?
评论 #41146482 未加载
评论 #41146355 未加载
评论 #41146330 未加载
cutler10 months ago
While you&#x27;re at it fix Python&#x27;s crippled lambdas and ...
评论 #41148585 未加载
评论 #41147176 未加载
bitzun10 months ago
This project doesn&#x27;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.
评论 #41144589 未加载
评论 #41145308 未加载
jdeaton10 months ago
does it have a GIL
评论 #41144305 未加载
评论 #41145309 未加载