PyO3
RustPython
PyO3 | RustPython | |
---|---|---|
153 | 99 | |
12,298 | 19,147 | |
2.2% | 0.9% | |
9.8 | 9.6 | |
5 days ago | 12 days ago | |
Rust | Rust | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PyO3
- GraalPy – A high-performance embeddable Python 3 runtime for Java
- Advanced Python: Achieving High Performance with Code Generation
-
Python extensions should be lazy
Sorry, "FFI" was a shorthand for "mixing and matching two languages GC expectations, memory layouts, ..." and all the overhead associated with merging something opinionated, like Rust, with something dynamic, like Python. You almost certainly _can_ reduce that overhead further, but unless somebody has gone out of their way to do so, the default expectation for cross-language calls like that should be that somebody opted for maintainable code that has actually shipped instead of shaving off every last theoretical bit of overhead.
It's been a few years, so I really can't tell you exactly what the problem was (other than the general observation that you should try to do nontrivial amounts of work in your python extensions rather than trivial amounts), but PyO3 agrees with the general sentiment [0] [1], or at least did at roughly the same time I was working there.
[0] https://github.com/PyO3/pyo3/issues/679
[1] https://github.com/PyO3/pyo3/issues/1470
- Rust Bindings for the Python Interpreter
-
Accepting Bitcoin payments with Python, Rust and PyO3
This blog post is meant to be an introduction to PyO3 by walking the reader through the build process of a non-trivial extension module in Rust using PyO3. Some familiarity with Python and Rust is recommended to get the most out of this post, basic understanding of Bitcoin concepts may be required to fully grasp the code samples.
- Crossing the Impossible FFI Boundary, and My Gradual Descent into Madness
-
Encapsulation in Rust and Python
Integrating Rust into Python, Edward Wright, 2021-04-12 Examples for making rustpython run actual python code Calling Rust from Python using PyO3 Writing Python inside your Rust code — Part 1, 2020-04-17 RustPython, RustPython Rust for Python developers: Using Rust to optimize your Python code PyO3 (Rust bindings for Python) Musing About Pythonic Design Patterns In Rust, Teddy Rendahl, 2023-07-14
- Polars – A bird's eye view of Polars
-
In Rust for Python: A Match from Heaven
This story unfolds as a captivating journey where the agile Flounder, representing the Python programming language, navigates the vast seas of coding under the wise guidance of Sebastian, symbolizing Rust. Central to their adventure are three powerful tridents: cargo, PyO3, and maturin.
RustPython
-
关于低谷 - FAV0周刊 #10
RustPython
-
This Week In Python
RustPython – Python Interpreter written in Rust
- RustPython: A Python Interpreter Written in Rust
-
Encapsulation in Rust and Python
Integrating Rust into Python, Edward Wright, 2021-04-12 Examples for making rustpython run actual python code Calling Rust from Python using PyO3 Writing Python inside your Rust code — Part 1, 2020-04-17 RustPython, RustPython Rust for Python developers: Using Rust to optimize your Python code PyO3 (Rust bindings for Python) Musing About Pythonic Design Patterns In Rust, Teddy Rendahl, 2023-07-14
- FLaNK Stack Weekly 12 February 2024
-
RustPython
No.
…and this one is no exception -> https://github.com/RustPython/RustPython/issues/1940
Packages that rely on c dependencies like numpy, etc. only work if you write a custom implementation by hand; the “normal” package flat out doesn’t (and cannot) work.
- Show HN: RustPython for BeOS with W2c2
-
Rust is replacing C as the Python back end
The title would be accurate if this project (https://rustpython.github.io/) was becoming the official version of Python.
- RustPython: An open source Python 3 interpreter written in Rust
-
Rewrite Sympy in rust
If you absolutely need something comparable to Sympy, then one option might be to figure out how to best call Sympy from Rust. e.g. - RustPython, although it seems like Sympy isn't supported yet - Pyodide, and figuring out how to run it outside of a web browser. Probably also not very easy. - PyPy, and having a pretty simple Python binary for every platform - ...
What are some alternatives?
rust-cpython - Rust <-> Python bindings
CPython - The Python programming language
pybind11 - Seamless operability between C++11 and Python
pyodide - Pyodide is a Python distribution for the browser and Node.js based on WebAssembly
milksnake - A setuptools/wheel/cffi extension to embed a binary data in wheels
tauri - Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
uniffi-rs - a multi-language bindings generator for rust
rust-numpy - PyO3-based Rust bindings of the NumPy C-API
bincode - A binary encoder / decoder implementation in Rust.
Rhai - Rhai - An embedded scripting language for Rust.
wasmtime - A fast and secure runtime for WebAssembly
helix - A post-modern modal text editor.