计算机科学 > 程序设计语言
[提交于 2025年6月30日]
标题:Rust vs. C for Python Libraries: Evaluating Rust-Compatible Bindings Toolchains
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:The Python programming language is best known for its syntax and scientific libraries, but it is also notorious for its slow interpreter. Optimizing critical sections in Python entails special knowledge of the binary interactions between programming languages, and can be cumbersome to interface manually, with implementers often resorting to convoluted third-party libraries. This comparative study evaluates the performance and ease of use of the PyO3 Python bindings toolchain for Rust against ctypes and cffi. By using Rust tooling developed for Python, we can achieve state-of-the-art performance with no concern for API compatibility.
提交历史
来自:Renato Cordeiro Ferreira[v1] 2025年6月30日 星期一 21:14:20 UTC