stdx
The missing batteries of Rust (by brson)
py-spy
Sampling profiler for Python programs (by benfred)
Our great sponsors
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
stdx
Posts with mentions or reviews of stdx.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-01.
-
Any active project aiming to replicate python's batteries-included in rust?
There's none that I know of, aside from stdx which was last updated 4 years ago.
-
Anything C can do Rust can do Better
⭐ stdx - The missing batteries of Rust - Brian Anderson
-
Is there any part of the Standard Library that really impresses you?
brson had a repository called https://github.com/brson/stdx and it's a pity it isn't maintained anymore: some of them are in disuse now (for example, instead of lazy_static prefer stdlib's Lazy, or better yet, you don't need them if you just want to initialize a mutex or something; also error-chain) and the list could use some maintenance
-
Nearly 100,000 NPM Users' Credentials Stolen in GitHub OAuth Breach
You suggested creating a super-library of vetted crates. It has been tried before, but it didn’t get any adoption. stdx - The missing batteries of Rust was never used much. Looking at it now, it recommends crates that have been superseded by others.
-
Security advisory for the regex crate (CVE-2022-24713) | Rust Blog
As an example of the above, if you're not aware of it already, you might find brson/stdx interesting.
-
Hey, i begin my journey into Rust !
Big libraries like Boost or the Python standard library tend to develop as a workaround for weak package management so, with Cargo, efforts to produce Boost-like compilations (Eg. stdx) withered on the vine for lack of sufficient interest.
-
First Impressions of Rust
It's been suggested and people even tried doing that of their own volition with projects like stdx, but they withered away for lack of interest.
-
Hey Rustaceans! Got an easy question? Ask here (50/2021)!
I second u/globulemix' attitude, searching on crates.io and then looking at Downloads and also git activity (might be misleading, as some projects are simply very stable). For a lot of tasks, you might wish to take a look at stdx
-
Batteries included stdlib?
Seems abandoned, but there was https://github.com/brson/stdx
-
Rust Vs. Go Random Observations
I've been here since before Rust 1.0 and I've seen various projects like stdx start, but fail to achieve critical mass... probably because that kind of approach tends to invite the worst kind of bikeshedding.
py-spy
Posts with mentions or reviews of py-spy.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-13.
- Minha jornada de otimização de uma aplicação django
- Graphical Python Profiler
-
Grasshopper – An Open Source Python Library for Load Testing
For CPU cycles, py-spy[0] is getting more and more used. For RAM, I would like to known too...
[0] -- https://github.com/benfred/py-spy
-
Debugging a Mixed Python and C Language Stack
Theres also Py Spy, a profiling tool that can generate flame charts containing a mix of python and C (or C++) calls.
https://github.com/benfred/py-spy
It's worked really well for my needs
-
python to rust migration
You should profile your consumer to check the bottlenecks. You can use the excellent py-spy(written in Rust). IMO a few usage of Numba there and there should solve your performance issues.
-
Has anyone switched from numpy to Rust?
So as a first step you'll want to profile your program to figure out where it's slow, and hopefully that'll also tell you why it's slow. I'm the (biased) author of the Sciagraph profiler which is designed for this sort of application (https://sciagraph.com) but you can also try py-spy, which isn't as well designed for data processing/analysis applications (e.g. it won't visualize parallelism at all) but can still be informative (https://github.com/benfred/py-spy). Both are written in Rust ;)
-
Trace your Python process line by line with minimal overhead!
Any advantages/disadvantages compared to py-spy [1]?
[1]: https://github.com/benfred/py-spy
-
Python 3.11 delivers.
Python profiling is enabled primarily through cprofile, and can be visualized with help of tools like snakeviz (output flame graph can look like this). There are also memory profilers like memray which does in-depth traces, or sampling profilers like py-spy.
-
Tales of serving ML models with low-latency
A good profiler would be https://github.com/benfred/py-spy . If you run your app/benchmark with it, it should be able to draw a flamegraph telling you where the majority of time is spent. The info here is quite fine grained so it would already tell you where the bottleneck is. Without a full-fledged profiler you can also measure the timings in various parts of the code to understand where the bottleneck is.
-
Profiling a Python library written in Rust (Maturin)
Might be worth raising an issue on py-spy (a python profiler written in rust which "supports profiling native python extensions written in languages like C/C++ or Cython" to see if that can close the loop.
What are some alternatives?
When comparing stdx and py-spy you can also consider the following projects:
slotmap - Slotmap data structure for Rust
pyflame
safety-dance - Auditing crates for unsafe code which can be safely replaced
pyinstrument - 🚴 Call stack profiler for Python. Shows you why your code is slow!
miri - An interpreter for Rust's mid-level intermediate representation
python-uncompyle6 - A cross-version Python bytecode decompiler
go - The Go programming language
memory_profiler - Monitor Memory usage of Python code
rust-cpython - Rust <-> Python bindings
icecream - 🍦 Never use print() to debug again.
rfcs - RFCs for changes to Rust
line_profiler