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
2
u/Objective-Farmer4183 May 03 '26
I do agree on the fact that a slow db query won't be fixed with Rust or C. But this is not the only thing I am trying to do, I am trying to minimize the impact on memory and CPU usage, while the user might not realize the difference between a backend in C compared to one in Python, a server's performance-per-cost will be realized. My time is not counted, but my wallet is. And I got to say that I prefer low level programming rather than high level programming, I have done both at approximate equal difficulty levels.