RustPython: A Python Interpreter Written in Rust
RustPython is a Python implementation in Rust, using a modified CPython 3.7 standard library. The project currently focuses on the `unittest` module for testing with the CPython test suite.
Read original articleRustPython is a Python implementation written in Rust, and its GitHub repository includes the standard library primarily sourced from the CPython 3.7 branch, with some modifications for compatibility. These modifications are minimal, aimed at fixing bugs and addressing missing features in RustPython. The project's current focus is on the `unittest` module, which will enable the team to use the CPython test suite for testing purposes.
Related
Rust for Filesystems
At the 2024 Linux Summit, Wedson Almeida Filho and Kent Overstreet explored Rust for Linux filesystems. Rust's safety features offer benefits for kernel development, despite concerns about compatibility and adoption challenges.
Investing in Rust
Investing in Rust programming language can enhance cybersecurity by preventing memory-related vulnerabilities. Challenges in adoption include integration issues and skill set mismatches, suggesting U.S. policy interventions for promotion.
Beyond Hypermodern: Python is easy now
Python development in 2024 focuses on simplicity with tools like Rye aligning with packaging standards. It streamlines setup, dependency management, and project structuring, emphasizing typing with Pyright for efficient code maintenance and pytest for testing.
Rust for Rustaceans
"Rust for Rustaceans" by Jon Gjengset is a book for developers with basic Rust knowledge, focusing on advanced topics, codebases, and programming challenges, praised for clarity but noted for its density.
What's Up Python? Setuptools Breaks, a Better PDB, CPython on CalVer
Setuptools released version 72.0, removing the test command, causing uninstallable packages. Version 72.1 restored functionality. Python Debugger enhancements and calendar versioning proposals were discussed. Polars reached stable 1.0, and SAM updated to version 2.
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".
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.
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.
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?
Every time I want to rewrite a shell function in python, I always hesitate due to the slow startup.
Running it on hardened Linux, OpenBSD, or FreeBSD was a start. A Rust implementation might help.
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?
Related
Rust for Filesystems
At the 2024 Linux Summit, Wedson Almeida Filho and Kent Overstreet explored Rust for Linux filesystems. Rust's safety features offer benefits for kernel development, despite concerns about compatibility and adoption challenges.
Investing in Rust
Investing in Rust programming language can enhance cybersecurity by preventing memory-related vulnerabilities. Challenges in adoption include integration issues and skill set mismatches, suggesting U.S. policy interventions for promotion.
Beyond Hypermodern: Python is easy now
Python development in 2024 focuses on simplicity with tools like Rye aligning with packaging standards. It streamlines setup, dependency management, and project structuring, emphasizing typing with Pyright for efficient code maintenance and pytest for testing.
Rust for Rustaceans
"Rust for Rustaceans" by Jon Gjengset is a book for developers with basic Rust knowledge, focusing on advanced topics, codebases, and programming challenges, praised for clarity but noted for its density.
What's Up Python? Setuptools Breaks, a Better PDB, CPython on CalVer
Setuptools released version 72.0, removing the test command, causing uninstallable packages. Version 72.1 restored functionality. Python Debugger enhancements and calendar versioning proposals were discussed. Polars reached stable 1.0, and SAM updated to version 2.