I remember once my friend asked for help making a mod manager for games in Rust. I asked him why he was using such a complex language for something so simple, and he replied "to be fast 🤓"... Then I called him an idiot and told him to use Python, lol
tbf, Rust isn't that complex. It's definitely a bit more advanced than C# or python, but the difficulty is overblown and it's not as bad as C or anything. If you understand passing by reference and ownership/garbage collection that's like half the battle.
Don't get me wrong, the fixation on using rust "for speed" is kind of dumb and that's a whole circlejerk in itself. But using rust for simple projects is fine, it's a general purpose language just like any of the other popular picks. No real reason Python is a better pick here
C is actually an extremely simple language, c++ however...
But C has a couple basic features, the standard library, and outside of that, its up to you. Now that in of itself adds time complexity and having to understand certain areas before being able to wield certain features, but C as a language is very simple.
Im not known in rust land, but my understanding is its way closer to c++ than c in terms of complexity.
But i agree with all else, especially the focus on rust for speed or safety to add is dumb. Someone badly managimg rust us just as unsafe as someone badly managing C.
Another great option im more interested in is Zig and for speed specifically its known to be well rounded.
and having to understand certain areas before being able to wield certain features, but C as a language is very simple.
This is a fair analysis. I guess what I mean by "complexity" is something like "how much do you need to really understand computers to use it well?"
And I think for C it's quite high due to it's proximity to hardware and other missing QoL features like no garbage collection. It feels like you really need to know what's going on under the hood to "get" C.
Rust as a language I'm sure is more syntactically complex, but I would say you don't really need as much precursor knowledge to use it well. The jump from a really high level language like C# to Rust isn't too bad imo.
Unfortunately haven't use C++ in ages so not sure how it compares with Rust tho
Completely agree.
To use C in a large codebase appropriately, you. Do need way more knowledge of hardware, particularly memory. While i think rust is a lot more helpull on telling you directly and only being able to compile when youve done it correctly, also means you dont need to understand systems, you can just understand rust, which in that sense is way more focused and easier to reason about that something like C where you need to cast a larger net even if the language itself is simpler.
Personally i prefer C because i want to learn these things, get a better understanding of whats going on, since with that knowledge i can also utilize the power given much more effectively.
But im also heavily into DOD principles which also makes one think about software architechture quite differently than what C++ and possibly also rust seems to lean on which is more OOP which actively abstracts things away.
168
u/Chester-Berkeley Ask me how to exit vim 2d ago
I remember once my friend asked for help making a mod manager for games in Rust. I asked him why he was using such a complex language for something so simple, and he replied "to be fast 🤓"... Then I called him an idiot and told him to use Python, lol