logoalt Hacker News

worik04/23/20258 repliesview on HN

Are they flogging a dead horse?

C++ is, should be, like COBOL. A very important language because of the installed base. But why the continual enhancements? Surely there are better uses of all those resources?


Replies

devnullbrain04/24/2025

The resources here are amplified elsewhere.

As a specific example, expanding constexpr means a codebase I recently worked on can move away from template metaprogramming magic to something that is more idiomatic. That means iterating on that code will be easier, faster, and less error-prone. I've already done static dispatch using constexpr and type traits that would have taken longer to do with templates.

Currently constexpr programming needs you to know the specifics of what is supported - ideally you'll be able to infer that from first principles of the invariants that are available at compile time. That leads to faster, more confident development.

It's a similar story for reflection: we were using custom scripts and soon won't have to. The changes usually come out of the problems people are already finding solutions for in the real world, rather than gilding a lily.

jsphweid04/24/2025

I think it'd genuinely boggle some people's minds just how much new c++ code is written everyday. It's not a dead horse at all.

show 1 reply
arjonagelhout04/23/2025

Although there are excellent alternatives to C++ such as Rust, C++ is still widely used as many open-source and commercial codebases are built with it.

Adding features to a language that is still actively used does not seem like a bad thing.

show 1 reply
MrRadar04/23/2025

COBOL is being actively developed as a language, the latest standard was published in 2023.

dietr1ch04/23/2025

> Are they flogging a dead horse?

Not exactly. There's a lot of C++ code that still can't be rewritten into cool languages overnight without risking correctness, performance and readability.

I'm always happy to see C++ pushing itself and the compiler backends as it benefits the victims of lame codebases and also the cool kids using the improved compiler backends.

jcelerier04/23/2025

from which other language can I make a GUI with Qt while doing low-level graphics and DSP?

show 2 replies
mystified501604/24/2025

Ask yourself why any programming language gets any changes once there's an arbitrary number of users.

moshegramovsky04/24/2025

Do you like using a fast web browser?