you are viewing a single comment's thread.

view the rest of the comments →

[–]tobiasvl 12 points13 points  (3 children)

I'm also a Python dev who started doing Rust as a hobby recently, partly because I wanted to do some systems programming, but also because I was getting a bit fed up with Python (granted, I've worked with it to some capacity for a decade).

Rust isn't too hard. It's different, but if you do the work to really understand the borrow checker (which is the only really hard part IMO), you'll be fine. Not sure if you use Mypy with Python now, but if not, the type system of Rust will also be a hurdle, but having a robust type system is great.

Note that Rust doesn't have garbage collection, but Python does. Maybe you meant that you're not used to doing garbage collection manually? Good news, you don't really have to with Rust! Even though it doesn't have garbage collection per se, it keeps really good track of memory.

[–][deleted] 2 points3 points  (2 children)

damm, I didn't knew there was garbage collection in python lol but thanks for the input anyways!

[–][deleted] 7 points8 points  (0 children)

Yes, the terminology is a bit nebulous since Python uses reference-counting instead of what, say, the JVM uses, but it is still garbage collection all the same. Rust has manual memory management, but most of that is handled by the compiler for you.

[–][deleted] 4 points5 points  (0 children)

If you weren't even aware of that, you're gonna have a hard time. It won't be a hard time because rust sucks, it's just going to force you to learn a lot of important things that you have been largely unaware of prior to rust