rustpy | PyO3 | |
---|---|---|
- | 153 | |
75 | 12,116 | |
- | 2.4% | |
0.0 | 9.8 | |
over 8 years ago | 6 days ago | |
Rust | Rust | |
- | Apache License 2.0 |
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.
rustpy
We haven't tracked posts mentioning rustpy yet.
Tracking mentions began in Dec 2020.
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.
What are some alternatives?
rust-cpython - Rust <-> Python bindings
snaek - DEPRECATED: Being replaced with milksnake: https://github.com/getsentry/milksnake
pybind11 - Seamless operability between C++11 and Python
rusty-tags - Create ctags/etags for a cargo project
RustPython - A Python Interpreter written in Rust
milksnake - A setuptools/wheel/cffi extension to embed a binary data in wheels
neon - Rust bindings for writing safe and fast native Node.js modules.
uniffi-rs - a multi-language bindings generator for rust
neon - Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, code-like database branching, and scale to zero.
bincode - A binary encoder / decoder implementation in Rust.