r/AskProgramming • u/Objective-Farmer4183 • May 03 '26
Architecture When is C better than Rust?
I've seen a lot of people saying that Rust = C but more secure. Is that true? Is there any catch or something? If you've used both of these programming languages, what was your experience with each? Which ones did you prefer?
I am writing this because I still don't know in which language should I code my backend for a website, and I don't want to mess things up. I am choosing low level because I want performance and low RAM usage + I am more familiar with low level languages.
TLDR; When do you think I should rather use C over Rust and vice versa?
View all comments
Show parent comment
1
u/Chemical-Ad1613 May 03 '26
latency in any real world website is always the data not code. i did once code a site in C but only out of curiosity. if you self hosting the server thats the only time youd worry about the slight diff in energy consumption but even then its really worth it? or you want to massively scale a site on minimal hardware? its an interesting question but failing to see an actual use for it