this post was submitted on 13 Nov 2026
72 points (100.0% liked)

Programming

29375 readers
316 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS
top 8 comments
sorted by: hot top controversial new old
[–] HaraldvonBlauzahn@feddit.org 27 points 1 week ago* (last edited 1 week ago)

This is a sign that C++ is (still) struggling with its governance (see a previous article on cultural issues within C++ here). This is a big deal even if you do not care about programming languages. C++ is arguably the most important programming language in existence.

Your computer runs on C or C++. The web browser you are using to read this is written in C++. ~All programming languages depend on C++ (often through LLVM). Likewise, ~all websites with performance requirements (e.g. YouTube) depend on C++, ~all data storage, game engines, finance, etc.

In a world that is drowning in exciting new vulnerabilities in ~all software, the ability of C++ to change and adjust to changing times affects you.

[ ...]

Why are Contracts authors so obsessed with getting Contracts into C++26? Why not wait for the next release?

Well, C++ has this funny “release train model” (also known as “the frame rule bus stop analogy” in Super Mario Bros. speedrunning). A new version of the C++ standard releases every three years. If your work gets voted into the standard in time, it becomes part of it. If it doesn’t, you have to wait another three years for the next release.

Three years is a long time, and it’s an especially long time to work on a single C++ feature. Getting a C++ paper accepted into the standard is a process so notoriously draining that ~all of the “C++ people” I know just stopped bothering, and stopped working with WG21. It’s bad.

If Contracts don’t get in this cycle, there’s a good chance they never will. They will be nitpicked over the next three years, endlessly litigated, and frankly, I think there’s a good chance several of the people working on Contracts just won’t want to deal with that, and might instead drop out of the process entirely, leaving Contracts dead and buried.

[–] 7uWqKj@lemmy.world 11 points 1 week ago

C++ has been moving away from the needs of its user base for too long now.

[–] xxce2AAb@feddit.dk 8 points 1 week ago

Maybe if that had happened sooner, we wouldn't have ended up with a barking mad mess.

[–] HaraldvonBlauzahn@feddit.org 7 points 1 week ago

See also this, on a correctness checker for Rust.

[–] truthfultemporarily@feddit.org 1 points 1 week ago (2 children)

Is it really necessary to keep adding features? Where is the place for C++ anyway when rust exists?

[–] BeigeAgenda@lemmy.ca 3 points 1 week ago (1 children)

Even if we include LLMs porting code, the sheer amount of c++ code makes it not worth porting, and some legacy code just need occasional updates, especially embedded.

I expect that even if porting becomes free, perfect and instantaneous, there will be plenty old c/c++ code around for decades.

[–] HaraldvonBlauzahn@feddit.org 4 points 1 week ago* (last edited 1 week ago)

Even if we include LLMs porting code, the sheer amount of c++ code makes it not worth porting, and some legacy code just need occasional updates, especially embedded.

It is more effective not to port old working code, which would cost a lot of resources, but to write new code in Rust, where this is possible. There have been a few studies on this, even from companies like Google. The thing is that new code is more likely to have bugs than working old code. So, spending effort on new code gives more safety for a given amount of effort and resources.

On the other hand, it absolutely makes sense to write completely new projects in Rust, if the needed library support is there, since Rust tends to be more productive.

Also, in embedded systems, space systems, systems with certification requirements and so on, Rust is making inroads. Though these are rather conservative areas where tools are not changed quickly.

[–] lemmybeyourfwend@lemmy.org 1 points 1 week ago

Difficult to erase entire products and projects built around C++ from one day to another. Yes, Rust is awesome and so is C++, they both have a place in this world 🤗