News for hackers. Stuff that matters.

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?

( 10 comments | on HN )
Re:Ask HN: Why should I learn Rust? by wiseowise on Saturday September 07, 2024 @05:22AM (#41472693)
Why do you feel like you should learn Rust?
Re:Ask HN: Why should I learn Rust? by midland_trucker on Saturday September 07, 2024 @05:36AM (#41472773)
As 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.

Re:Ask HN: Why should I learn Rust? by neonsunset on Saturday September 07, 2024 @05:50AM (#41472820)
It 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.
Re:Ask HN: Why should I learn Rust? by xigoi on Saturday September 07, 2024 @08:15AM (#41473481)
What new ideas does Rust bring, other than the borrow checker, which is useless in GC languages?
Re:Ask HN: Why should I learn Rust? by neonsunset on Saturday September 07, 2024 @08:39AM (#41473603)
Have you ever used either C# (in an advanced way) or Rust? If not, which languages are you comfortable with?
Re:Ask HN: Why should I learn Rust? by xigoi on Monday September 09, 2024 @04:03AM (#41486401)
I’m not sure how that’s relevant to my question.
Re:Ask HN: Why should I learn Rust? by 2-3-7-43-1807 on Saturday September 07, 2024 @06:47AM (#41473082)
If you should, you'd know.
Re:Ask HN: Why should I learn Rust? by pella on Saturday September 07, 2024 @08:06AM (#41473441)
- job market: "Proficiency in Rust and C# is required" [1]

- 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/Pri...

Re:Ask HN: Why should I learn Rust? by rich_sasha on Saturday September 07, 2024 @10:08AM (#41474026)
My 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 :)

Re:Ask HN: Why should I learn Rust? by yjftsjthsd-h on Saturday September 07, 2024 @11:37AM (#41474495)
Are 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.