|
|
|
|
|
by reil_convnet
1416 days ago
|
|
I worked fulltime in Python (Deep Learning and web services for around 10 years) and used Go for some projects in past.
I recently introduced Rust as a language for some server side logic and desktop app. Some observations:
1. Rust coding takes time. Something you would write in an hour in Python would take a day in Rust.
2. Rust code is almost always faster.
3. Rust almost will never cause an exception in production if you are not just doing unwraps and expects everywhere. This sometimes feels a lot of work while coding. In python, I almost always end up solving some production exceptions despite of writing tests. Not a fault with Python btw, you could always write better tests.
4. Writing Python is more enjoyable. However, you know you will never be able to write stuff in Python that you can in Rust. I think of Rust as a good compromise for a Python programmer to write low level code without learning C++. Being productive in C++ will take years, being productive in Rust takes a few months. Rust is like C++ but written with high level language features.
5. There are other fast languages which would be better for a Python developer like Nim, but they have no library ecosystem. Rust has almost got a good library for everything I need it for (just like Python). |
|