Quantcast
Channel: security news – Cyber Parse – Cyber Security and Information Security
Viewing all articles
Browse latest Browse all 4495

How Rust can replace C, with Python’s help

$
0
0
Proponents of Rust, the language engineered by Mozilla to give developers both speed and memory safety, are stumping for the language as anbsp;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 isnrsquo;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 fornbsp;closer integrations between both languages.To read this article in full or to leave a comment, please click here

Viewing all articles
Browse latest Browse all 4495

Trending Articles