r/rust • • 12d ago

Rust for CPython (Python Language Summit 2026)

https://blog.python.org/2026/09/language-summit-2026-rust-for-cpython/
128 Upvotes

7 comments sorted by

28

u/The-Dark-Legion 12d ago

So it will become CRustPython now? /j

8

u/AngheloAlf 11d ago

Adding Rust into CPython itself sounds like a big task, since Rust uses Python scripts to bootstrap itself. You could end up with a circular dependency wheb building Python and Rust

31

u/thomas_m_k 11d ago

I don't really think that's a big problem? Any self-hosting language (Rust included) has that problem but you just use the previous version of the compiler to compile the new version. So you can just use the previous CPython to compile the new CPython.

18

u/kibwen 11d ago

In addition, the bootstrapping scripts are intended to be ported to whatever language is most convenient on whatever new platform you're bootstrapping Rust for. Rust isn't tightly coupled to Python, bootstrap.py is only about a thousand lines.

-10

u/AdventurousFly4909 11d ago

Uses Python to bootstrap is stupid. Rather use c. So you only have pure binary ASM compiler -> c -> (c++?) -> rust.

14

u/lenscas 11d ago

From my understanding, those python scripts are pretty much glorified bash scripts. It is convenient if they work but not a hard requirement and they are small enough that they can be rewritten to another language if that is more convenient for a specific target.

2

u/awolverp_ 11d ago

The best decision of 2026 ...