4 ms·
Ask HN: Why should I learn Rust?
What would be a compelling reason to learn Rust for someone with a strong C# and MS Windows-oriented development background?
And what would be a great introductory Rust project for me to immediately appreciate and understand its benefits over other programming languages?
- wiseowise 2y agoWhy do you feel like you should learn Rust?
- deleted 2y ago[deleted]
- midland_trucker 2y agoAs someone who has dived into Rust over the past few months, the two main reasons for employing it are: A) Bleeding edge performance (Shares the same problem space as C/C++, zero cost abstractions etc.) B) Memory safety (Giving it a rather unique flavour among systems languages - distinguishing it from the above two) If you primarily work in C#, the latter won't be a problem you will be looking to solve anyway. I would say if the former intrigues you then Rust would be a great place to start.
- neonsunset 2y agoIt will make you much better at C#. Not to mention these languages share key similarities for you to appreciate the new ideas Rust brings in areas they don’t.
- xigoi 2y agoWhat new ideas does Rust bring, other than the borrow checker, which is useless in GC languages?
- neonsunset 2y agoHave you ever used either C# (in an advanced way) or Rust? If not, which languages are you comfortable with?
- xigoi 2y agoI’m not sure how that’s relevant to my question.
- 2-3-7-43-1807 2y agoIf you should, you'd know.
- pella 2y ago- job market: "Proficiency in Rust and C# is required" [1] - https://www.theregister.com/2023/04/27/microsoft_windows_rust/ https://www.theregister.com/2023/04/27/microsoft_windows_rus... [1] like this old MS job: https://jobs.careers.microsoft.com/global/en/job/1633482/Principal-Software-Architect https://jobs.careers.microsoft.com/global/en/job/1633482/Pri...
- rich_sasha 2y agoMy reason is, Rust has excellent interop with Python. That's a nice combo: fast and "hard" stuff in Rust, Python for scripting with it (which I do a lot of). C++ ticks similar boxes, but I dislike it more than Rust :)
- yjftsjthsd-h 2y agoAre you looking to do anything that would benefit from it? AIUI, C# is a perfectly good language, especially in the Microsoft ecosystem. Don't get me wrong, broadening your horizons is good, but I would hesitate to learn rust specifically unless you really need to do something low level (whether because you're getting close to hardware, need no GC, need very precise memory control, other performance reasons...), target a platform that rust works on and C# doesn't, or want to use a library that's available in rust, isn't available in C#, and can't be surfaced to C# with minimal FFI wrapping.