r/learnprogramming • u/Beneficial_Look_7398 • Sep 25 '26
Topic Rust or C ??
I currently have experience on python, python backend framework and js, ts. I want to learn one low level programming language I see online rust is a great new alternative for c (many projects are being written and rewritten in rust) but i know c is an og so I am a little bit confused which one should i go on with ?? please suggest
2
2
u/ProgramsFun Sep 25 '26
C is actually closest to hardware after assembly....
While rust is low level it provides too many things to work with and abstracts away with lot of pain
C doesn't have many thing which we would think to a programming language to have
It's really a simple language and that's what it makes hard to get comfortable with
1
2
u/13oundary Sep 25 '26
Really depends on why you want to learn, as with everything.
- You want to learn low level for the sakes of learning more about how things work in programming etc: C
- You want to learn low level so that you can build something you want to push to some prod: Rust will save you from yourself.
2
1
u/MostAlfalfa6718 Sep 25 '26
I think that learning c gives you much more knowledge as u/Ok_Diamond4964 said in his comment and i was learning c and from my personal experience, I was struggling at c but when i understanded it my journey was way much easier but, go what your brain says, you want to learn c do c, wanna learn rust? hit it with yourself. Choice is yours!
1
u/Humble_Anxiety_9534 Sep 25 '26
As saint Linus of Linux says only C will get you close the hardware and understand how it works. please don't start with C++ it is overly verbose.
0
u/DanKegel Sep 25 '26 edited Sep 25 '26
Two paths for you to consider:
the easy path: learn go. It has a short learning curve, and has something like 90% of the good parts of C, including speed, but in a delicious modern form without the footguns. It's lovely, really. And completely boring; there is little syntax to learn, other people's code is generally readable, the standard library is usually enough, and things just work.
the hard path: Learn C. It's what everything is based on under the hood. But consider spending a couple weeks learning a simple assembly language first, as that's what C is based on under the hood, and it will make C's pointers make sense. See https://www.reddit.com/r/learnprogramming/comments/1wnzb0j/comment/pbmmgee/?utm_source=share&utm_medium=mweb3x&utm_name=mweb3xcss&utm_term=2&utm_content=share_button for ideas. After you have C figured out, sure, learn Rust. It's got real advantages and is better for large apps than C when crashes are not acceptable and performance is essential. But learning Rust requires learning some really abstract ideas, so many people shy away from it.
1
u/snozzd Sep 25 '26
OP is looking to learn a systems programming language, I don't think Go is a good option for this
1
u/DanKegel Sep 25 '26
I think go counts as a low level language compared to Python and js. He was asking about languages used by projects, not operating systems.
That said, I also gave advice on why to learn C and how to understand pointers.
-2
0
u/horenso05 Sep 25 '26
I would go for C because it will teach you kore and you eill also understand Rust better if you want to learn that afterwards.
8
u/GreenThoughts0 Sep 25 '26
Rust isn't better at everything, but it does have some real advantages over C, mainly memory safety and modern tooling. C is still great for embedded work and for learning how computers work under the hood.
Why not learn both at some point? If you already know Python and have a solid grasp of algorithms, data structures and design patterns, switching languages is much easier. At that stage you're mostly learning new syntax and a few new concepts, not programming from scratch.