pypolyline
iminuit
pypolyline | iminuit | |
---|---|---|
1 | 2 | |
35 | 273 | |
- | 1.1% | |
7.2 | 8.6 | |
5 days ago | 3 days ago | |
Python | Python | |
MIT License | GNU General Public License v3.0 or later |
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.
pypolyline
-
Julia is the better language for extending Python
Rust doesn’t need to copy the data. It’s trivial to pass e.g. Numpy arrays to Rust as slices via Cython (let alone originating in Cython!), modify them, and return them, or use them as input for a new returned struct.
https://github.com/urschrei/simplification
https://github.com/urschrei/lonlat_bng
https://github.com/urschrei/pypolyline
Each of those repos has links to the corresponding Rust “shim” libraries that provide FFIs for dealing with the incoming data, constructing Rust data structures from it, and then transforming it back on the way out.
As a more general comment, using a GC language as the FFI target from a GC language is begging for difficult-if-not-impossible-to-debug crashes down the line.
iminuit
-
Need help building python-iminuit
- name: python-iminuit buildsystem: simple build-commands: - python3 setup.py build - python3 setup.py install --prefix=${FLATPAK_DEST} --root=/ --optimize=1 sources: - type: git url: https://github.com/scikit-hep/iminuit tag: v2.4.0
-
Julia is the better language for extending Python
Have you tried numba+numpy? In my experience, it is much faster than Jax and can compile to cuda. It's not caveat free, but it also removes the hustle of labeling arrays as donated in Jax.
You may find this interesting https://github.com/scikit-hep/iminuit/blob/develop/tutorial/...
What are some alternatives?
Python-Complementary-Languages - Just a small test to see which language is better for extending python when using lists of lists
julia - The Julia Programming Language
simplification - Very fast Python line simplification using either the RDP or Visvalingam-Whyatt algorithm implemented in Rust
shared_numpy - A simple library for creating shared memory numpy arrays
flatpak-builder-tools - Various helper tools for flatpak-builder
rust-numpy - PyO3-based Rust bindings of the NumPy C-API
uproot5 - ROOT I/O in pure Python and NumPy.
hist - Histogramming for analysis powered by boost-histogram
cunumeric - An Aspiring Drop-In Replacement for NumPy at Scale