
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Experimental repo to run Rusts itertools in Python.
Initially, this will be mostly used as a proof of concept. This is to investigate the comparisons between:
Practically, this means not all functionality from rust's itertools will be available
Often, the major goal of porting Rust functionality over to Python is for speed. So far, my initial experimentation has shown that that gain is very low (or even non-existant) due to 2 main reasons:
itertools
is mostly written in C so already quite fast and roughly on par with Rustmore_itertools
and new python functions: not having to copy over the results back to Python is a major gain
vs the rust implementations for the type of functions we deal with here. Example: there are over 36 million
permutations of the numbers 0 to 9 (incl 9). Generating in Rust and then accessing from Python takes 2.24 seconds
on my pc, where the CPython itertools takes 0.557 seconds to do the same.There are some exceptions though, especially for:
more_itertools
and additional functions in this repo)Next to this, you can use this repository for functionality not available in Python's itertools
or if you prefer
the way the Rust version is setup.
The Github Actions setup to automatically crossbuild Python packages across operating systems has been based on the
setup in the rtoml project (although first using the old setuptools
based
setup, because of the link on the setuptools-rust
page..).
Of course, also credit to the Rust itertools
project and inspiration
from the more-itertools and of course the core Python itertools
projects.
itertools
packagesFAQs
Run Rusts itertools and more in Python.
We found that rust-itertools demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.