3 ms·
I do agree that the article has issues, but I have found Rust to be a surprisingly good replacement for a lot of my Python use-cases. For example, I’ve been usi
by paulgb 5y ago
I do agree that the article has issues, but I have found Rust to be a surprisingly good replacement for a lot of my Python use-cases. For example, I’ve been using actix-web and more recently axum for little servers that I would have previously written in Flask. I’ve also ported over some data munging jobs —- using serde feels like having superpowers.
And in tasks like these, I usually don’t even miss having a garbage collector, and rarely need lifetime annotations.
- V__ 5y agoCould you expand on this a bit? What did you like about the switch and what not? Just in case: I didn't want to imply there are no use cases which overlap, only that in general the use cases for both languages are very different.
- paulgb 5y agoI like how much the compiler helps me. I find it to be a tax on my productivity for about the first 1500 LOC of a project, but once I get beyond that, the compiler is an indispensable aid for refactoring in a way that Python’s type system (even with annotations) just isn’t rich enough to enable. For example, if I add a variant to an enum, my editor will immediately show me all the places that variant needs to be handled. I find cargo more productive than Python’s package management, where I have to manually manage environments and requirements.txt files. Things I like less: less “batteries included”, so I spend more time evaluating libraries and wondering if a github project hasn’t been touched since 2019 because it just works, or because the maintainer got bored. The learning curve is steep at times, and involved being blocked on pleasing the compiler.
- V__ 5y agoThank you for your insights!