C/C++ Longevity Debate

Comments debate the persistence of C and C++ in modern projects due to legacy code, lack of alternatives, backward compatibility, and comparisons to newer languages like Rust, questioning if they are becoming obsolete or evolving as the 'new C'.

📉 Falling 0.4x Programming Languages
7,208
Comments
20
Years Active
5
Top Authors
#4677
Topic ID

Activity Over Time

2007
16
2008
36
2009
89
2010
95
2011
139
2012
216
2013
328
2014
322
2015
327
2016
457
2017
419
2018
421
2019
430
2020
599
2021
546
2022
861
2023
719
2024
557
2025
593
2026
40

Keywords

e.g stroustrup.com NET DOP OOP LLVM ABI P2137 GitHub ycombinator.com language languages code projects libraries legacy new language new projects people writing robotics

Sample Comments

Gibbon1 Apr 22, 2020 View on HN

I think it's starting to happen because C++ has become so grossly Byzantine. C refuses to relinquish a bunch of niche applications. The heyday of OOP is past. 10 years ago the attitude was C is going to die any day now. Now it more like since C isn't dying it needs improvements. And none of them are backports from C++ nor make sense in C++.

0wned Jul 23, 2009 View on HN

That's a feature, not a bug. Code you write in C++ today will probably compile and run 30 to 50 years from now with very little (if any) modification. Same is true for C. These are serious languages used on major projects (Joint Strike Fighter, Mars Rover, etc.) by governments, militaries and space agencies. They do not evolve quickly and when they do it is only after much careful deliberation. Don't get me wrong... I enjoy the new, fun, expressive constantly changing languages as much as anyone

natsucks Oct 5, 2023 View on HN

What's holding me? People writing software who are choosing C/C++ for legacy reasons only.

SubjectToChange Jun 24, 2023 View on HN

As an addendum, the same goes for many C toolchains. Anything requiring GCC 4.8 or later is depending on a C++ compiler. And projects like LLVM’s libc, Fuchsia’s Zircon kernel, the bareflank hypervisor, etc, demonstrate that C++ really can be used anywhere C is used.C++ is the new C in the sense that it’s the language everything else is built on and I expect it will be even more difficult to displace than C. For instance, the complexity of C++ makes it next to impossible to incremental

oncewas May 31, 2022 View on HN

That's pretty silly, lots of c++ projects have changed languages over the years. We get that you like c++ but let's not be myopic.

icholy Jan 31, 2018 View on HN

It's not a big enough improvement over C++ to warrant switching.

alexeiz Nov 11, 2015 View on HN

The main reason C++ is still in use is not the zillions lines of existing code. It's the lack of alternative. Other languages may excel in one or two areas, but if you consider the whole ecosystem, C++ is still the best. The availability of highest quality compilers for all possible architectures, build tools, IDEs, static analysis tools, profilers, libraries - all of these factors combined make C++ the first choice for many applications.C++11/14 didn't just "happen."

natsucks May 2, 2024 View on HN

this is like saying "C++ won't die soon for legacy reasons"

holowoodman Aug 31, 2025 View on HN

Why bother? The world seems to have moved on to Rust, C++ is only for legacy maintenance stuff anymore.

saagarjha Feb 6, 2019 View on HN

I think C and C++ have too much buy-in from too many people to be replaced anytime soon.