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. Much of the Python ecosystem for statistics and machine learning is written in C, via modules that could be replaced or rewritten incrementally.[ Also on InfoWorld: Review: 6 Python IDEs go to the mat and 7 sweet Python IDEs you might have missed. | Keep up with hot topics in programming with InfoWorld’s App Dev Report newsletter. ]
It isn’t difficult to expose Rust code to Python.

A Rust library can expose a C ABI (application binary interface) to Python without too much work.
Some Rust crates (as Rust packages are called) already expose Python bindings to make them useful in Python. But there is always opportunity for closer integrations between both languages.To read this article in full or to leave a comment, please click here

Leave a Reply