Slashdot Mirror


How Rust Can Replace C In Python Libraries (infoworld.com)

An anonymous reader quotes InfoWorld: Proponents of Rust, the language engineered by Mozilla to give developers both speed and memory safety, are stumping for the language as a long-term replacement for C and C++. But replacing software written in these languages can be a difficult, long-term project. One place where Rust could supplant C in the short term is in the traditionally C libraries used in other languages... [A] new spate of projects are making it easier to develop Rust libraries with convenient bindings to Python -- and to deploy Python packages that have Rust binaries.
The article specifically highlights these four new projects:
  • Rust-CPython - a set of bindings in Rust for the CPython runtime
  • PyO3 - a basic way to write Rust software with bindings to Python in both directions.
  • Snaek - lets developers create Rust libraries that are loaded dynamically into Python as needed, but don't rely on being linked statically against Python's runtime.
  • Cookiecutter PyPackage Rust Cross-Platform Publish - simplifies the process of bundling Rust binaries with a Python library.

1 of 304 comments (clear)

  1. Mozilla is a Terrible Company by Anonymous Coward · · Score: 0, Flamebait

    Police kicked in a door to an apartment across the street, and sure enough, it was some lanky, estrogen-puffy beta homo and his fat, ugly mixed-race genderfluid partner. They confiscated all the electronics, and I heard two detectives distinctly say "CHILD PORNOGRAPHY" and "lab wants the source repo for steno analysis".

    Both of them Mozilla employees. The fat one had a stupid "Rust gear" t-shirt stretched over her beastly frame.