Rust vs C/C++

This cluster centers on debates comparing Rust to C and C++, discussing whether Rust is a superior replacement for systems programming due to its safety features like borrowing, while weighing C/C++'s maturity, ecosystem, and performance.

➡️ Stable 0.5x Programming Languages
8,578
Comments
16
Years Active
5
Top Authors
#3819
Topic ID

Activity Over Time

2011
3
2012
23
2013
69
2014
202
2015
266
2016
490
2017
500
2018
435
2019
596
2020
867
2021
852
2022
1,214
2023
1,006
2024
936
2025
1,049
2026
74

Keywords

e.g UB IMHO IMO NET E.g debian.net gpp.html ABI HPC rust replacement language memory safe compilers performance game dev fair share borrowing

Sample Comments

gnull Jan 7, 2023 View on HN

If C/C++ works for you so well, good for you :) Maybe you don't need Rust.

Mr_lavos Dec 27, 2016 View on HN

Why would anyone use Rust when C++ is here and is already mature?

AshleysBrain Oct 19, 2016 View on HN

I have a large existing C++ codebase but haven't worked in Rust yet. But from what I've seen, Rust looks like a very well designed language that has the low-level and performance aspects of C++, with similar flexibility. IMO the killer feature is the borrowing mechanism which provides provably-safe memory access, eliminating whole classes of memory/security bugs, with minimal performance impact. I don't think C++ will ever expand to encompass that. I haven't got much exp

atemerev Mar 10, 2017 View on HN

There is Rust now. Why stay with C++?

erk__ Jul 11, 2020 View on HN

Why do you have this opinion on Rust compared to C?

shmerl Nov 29, 2017 View on HN

C++ helps more than C for Rust.

shepherdjerred Jan 18, 2023 View on HN

Rust is a good replacement for C/C++. It's not a good replacement for the languages you listed.

taylodl Mar 15, 2022 View on HN

Curious - what class of problems do you see Rust and its ecosystem handling that C++ doesn't?

rrao84 Sep 19, 2020 View on HN

Do you think Rust will get a leg up on C++ in the near future?

loaaa Oct 30, 2015 View on HN

Rust will push C++ becoming much better!