4 ms·
This is obviously heavily biased, because there is no way any reasonable person would think Axum or Actix are like Flask. That's just not possible with a langua
by impulser_ 2y ago
This is obviously heavily biased, because there is no way any reasonable person would think Axum or Actix are like Flask. That's just not possible with a language like Rust. The Rust standard library is horrible compared to Python or Go.
You need more dependencies to build a simple APi in Rust than you need in Python, and Go combined.
Axum, tokio, serde, serde_json, anyhow, sqlx and probably 5 more to fix the bad standard library.
In Python and Go you can build web app with the standard library.
TBH after adding in a database, Rust is probably not that much faster than Go and Go has everything you need in the standard library, compiles to binary, and package manager doesn't matter cuz you don't need one using Go.
- tempest_ 2y agoThe standard lib is not "bad" it just is modular to avoid C++ like pitfalls. People doing web dev in python could use pythons native json but rarely do because there are other far more performant options for example.
- pjmlp 2y agoIt is bad in the sense we need to reach out for external libraries to avoid manually writing all the boilerplate with handling errors, and any async runtime works, as long as it is tokio.