|8 days ago||3 days ago|
|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.
I want to create a backend with rust , I an experienced node dev . I checked out rocket and actix BUT - Big BUT - here , I didn’t found mature things like uploading/ validating and manipulating images . Also , I didn’t find custom request validation like send validation errors other english .
1 project | reddit.com/r/rust | 29 Nov 2021
For example, is the image crate not sufficient for "manipulating images"? Are you aware of the validator crate?
What do you NOT like about Rust?
18 projects | reddit.com/r/rust | 21 Nov 2021
If you really want duck-typing, take a look at how the validator crate uses macros to achieve something similar. (Seriously. It was a real head-scratcher the first time I discovered it would accept and use my impls as long as the method names matched.)
Is Rust really only good for larger-scale projects?
5 projects | reddit.com/r/rust | 5 Oct 2021
...and that's before you get to how "best in class" some of the libraries are, like StructOpt for argument parsing, Serde for JSON/TOML/etc., the built-in include_str! and include_bytes! for embedding default versions of user-editable resources in the binary so you can --write-conf, etc. (Try Figment and validator for your tools' configuration schema.)
Idiomatic Way to Validate Struct Field Values
2 projects | reddit.com/r/rust | 24 Aug 2021
It's not called automatically but you can use https://github.com/Keats/validator for something similar to pydantic. Overkill for one field probably but if you have some more complex structs it would be easier than handwriting it.
Ask HN: What are some tools / libraries you built yourself?
264 projects | news.ycombinator.com | 16 May 2021
- validator (https://github.com/Keats/validator): my take on Python marshmallow validations, nothing existed at the time.
So yeah, most of my open-source is re-creating libraries I use with Python in Rust.
Good use cases for Rust? I'm trying to find a reason to use Rust
8 projects | reddit.com/r/rust | 15 Apr 2021
(Plus, nothing beats Serde for convenience... especially when paired with StructOpt (slower to compile but supports proper path handling) or Gumdrop (faster to compile but unavoidably panics on encountering non-UTF8-able bytes in an argument), and validator. I'm currently preparing to evaluate Figment as the final piece in that puzzle.)
Why is rust a productive language and how is the relationship between webassambly?
2 projects | reddit.com/r/rust | 8 Apr 2021
Serde and StructOpt are hard to match (let alone beat) for declarative programming, especially when paired with things like validator.
I really love TOML files
4 projects | reddit.com/r/rust | 12 Mar 2021
Fair points... but now that I've gotten used to using Serde to deserialize my configurations and enforce schema at the same time (with the help of the validator crate for the fancier invariants), I don't want to consider any configuration format that doesn't have a Serde deserializer, and not having a Serde serializer cripples my ability to do more complex composition of components to produce solutions with compile-time Schema correctness.
1 project | reddit.com/r/ProgrammerHumor | 28 Nov 2021
Should I learn Rust coming from Python?
2 projects | reddit.com/r/rust | 27 Nov 2021
You probably should learn Rust. Aside from the process of learning new and different languages making you a better programmer, rust-cpython, PyO3, or Interoptopus make it easy to expose Python APIs from your Rust code. (eg. So it's easy to compile the same codebase as both a Python module and a WebAssembly module.)
What do you NOT like about Rust?
18 projects | reddit.com/r/rust | 21 Nov 2021
Have you looked into abi_stable, flapigen, interoptopus, cbindgen, PyO3, or rust-cpython?
Calling Rust from Python example
2 projects | reddit.com/r/rust | 6 Nov 2021
This is happening in the form of HPy. Eventually perhaps pyo3 can just target HPy instead of the current CPython API, and everything will just work, but not much seems to be happening on the relevant ticket, so I expect it'll be awhile.2 projects | reddit.com/r/rust | 6 Nov 2021
Today, I was playing around with https://github.com/PyO3/pyo3, which describes itself as follows:
Strengths and applications of Rust
5 projects | reddit.com/r/rust | 6 Nov 2021
Personally, I'm not willing to compromise on my GUI look and feel, so I use PyQt or PySide to write my GUIs against the QWidget API (I'm a KDE user and Python is the only language with mature memory-safe bindings to Qt) and, if the project can be structured with a frontend-backend separation, I use rust-cpython or PyO3 to write a backend in Rust that the Python frontend can import. Sort of using Python/Rust as a QWidget analogue to the QML/C++ architecture promoted for Qt Quick. (Which I don't use because it's still too incomplete on Kubuntu 20.04 LTS.)
From Python to Rust, should I?
3 projects | reddit.com/r/rust | 2 Nov 2021
also, check out rust-cpython, PyO3, and maturin, among other things. They're really nice options for using Rust for its strengths and Python for its strengths within the same project.
We just massively overdelivered on a project thanks to Rust (and Python bindings)
9 projects | reddit.com/r/rust | 31 Oct 2021
I haven't done extensive comparisons, but my general experience is that if you are just working on something that can translate to looping over array elements, you can get excellent performance with cython or numba. It is likely on-par with rust performance if you can avoid creating a bunch of temporary/intermediate numpy arrays. I typically only reach for rust as a method for writing a python extension (e.g. using pyo3) if the problem involves more complicated data structures or dealing with json, xml or other file types and possibly instances where multi-threading is important. Even in the case of multi-threading, if there is a natural way to break up an array processing problem you can use cython or numba, release the GIL and then use the `concurrent.futures` module to distribute work. Also it's currently the case that pyo3 can have some performance overhead that you don't see with cython, for example https://github.com/PyO3/pyo3/issues/661
Prototype GIL-less CPython shows nearly 20x speedups with 20 threads and good single-thread performance. Will the GIL be removed at some point, finally?
4 projects | reddit.com/r/programming | 15 Oct 2021
Rust has py03 which lets you write bindings for python really easily, very cool. https://pyo3.rs/
Which is the best Rust scripting language for Exploratory Data Analysis (EDA)
7 projects | reddit.com/r/rust | 9 Oct 2021
I'm not aware of a scripting language that can do all of these things. I'm also confused because this is basically what Python already is, and you can use pyo3 for that.
What are some alternatives?
rust-cpython - Rust <-> Python bindings
pybind11 - Seamless operability between C++11 and Python
milksnake - A setuptools/wheel/cffi extension to embed a binary data in wheels
bincode - A binary encoder / decoder implementation in Rust.
rust-numpy - PyO3-based Rust binding of NumPy C-API
py2many - Python to CLike languages transpiler
egui - egui: an easy-to-use immediate mode GUI in pure Rust
wasmtime - Standalone JIT-style runtime for WebAssembly, using Cranelift
Clippy - A bunch of lints to catch common mistakes and improve your Rust code
rustpy - Rust + Python = ????
RustPython - A Python Interpreter written in Rust
napi-rs - A minimal library for building compiled Node.js add-ons in Rust via Node-API