r/AskProgramming • • Oct 01 '26

Should I learn C or Rust?

I’ve been working as a Java programmer for a few years now.

The thing is, I’d like to learn a second programming language for lower-level tasks—specifically, I want to work on things related to operating systems. Rather than building one from scratch, I’d like to explore and modify open-source operating systems like Linux or a BSD variant.

I’m doing this purely as a hobby. What drew me to C is its simplicity (though not necessarily ease of use) compared to Java or other modern languages, and its long history of use in systems programming. On the other hand, however, there are operating systems (or components of them) being rewritten in Rust—such as GNU coreutils or the adoption of Rust in the Linux kernel.

So, would it be more useful in the long run to learn Rust, given that it might sooner or later become the standard for writing operating systems?

Thanks.

9 Upvotes

23 comments sorted by

View all comments

3

u/DestroyedLolo Oct 01 '26

First of all, C is close to Java in term of syntaxe (close, not identical).

Secondly, 99% of operating systems and userland are written in C. While there is significant hype around Rust, it is still in its early stages, and the promises used to advocate for a switch have yet to be fully realized.

Personally, I have been fluent in C and C++ for decades and do not see any significant added value in making the switch.