News for hackers. Stuff that matters.
Re:C++26 Disapproved by anonymous908213 on Tuesday November 03, 2026 @11:09PM (#50361416)
99% of all system code in the world is still written in C or C++. It runs your Java, C#, Javascript, Python, PHP, basically every production language that isn't Go or Rust. It runs the two most popular game engines in the world. It runs your phone, server, and laptop, no matter which of any you use. It runs your car. It includes 90% of embedded and industrial applications on the planet.

Is it still relevant, JFC. The way people on this forum manage to sequester themselves from reality. Let me reverse it: is Rust relevant? Mozilla developed Rust, abandoned their Rust browser, and only 10% of Firefox is written in Rust. Maybe 1% of modules in Chrome and Linux are written in Rust, if that. And what of Rust applications written from scratch? Can you name ten applications that have, say, more than 100,000 users? Impossible mode: they can't be developer tools for other Rust developers (uv, bun, etc.), they must actually be an application used in the line-of-business or by the consumer.

Re:C++26 Disapproved by adzm on Tuesday November 03, 2026 @11:18PM (#50361452)
As a big c++ fan, new projects are generally choosing Rust, which I would agree with, even though I do indeed love C++
Re:C++26 Disapproved by devsda on Tuesday November 03, 2026 @11:22PM (#50361470)
I read that as "is c++ still relevant for new features, given Rust and its popularity", not "who is still using C++".

Personally, I think it is still relevant. Many people thought Kotlin could overtake Java, Java reinvented itself with new initiatives/features and was saved from becoming irrelevant.

Re:C++26 Disapproved by afdbcreid on Tuesday November 03, 2026 @11:46PM (#50361591)
Java vs. Kotlin is a different matter. It's still an open question if C++ even could match Rust's features, not to say if it (the committee) wants to, and the answer seems to be "no".
Re:C++26 Disapproved by gmueckl on Wednesday November 04, 2026 @04:42AM (#50363227)
The feature parity question goes both ways: rust won't ever be able to express some things that are possible in C++.
Re:C++26 Disapproved by afdbcreid on Wednesday November 04, 2026 @05:54AM (#50363795)
Like?
Re:C++26 Disapproved by gmueckl on Wednesday November 04, 2026 @07:51AM (#50364851)
Algorithms that safely mutate the same data structure on multiple threads and do so safely because of some complex algorithmic properties that guarantee that the changes do not overlap?
Re:C++26 Disapproved by tcfhgj on Wednesday November 04, 2026 @08:22AM (#50365189)
Why can Rust not do that?
Re:C++26 Disapproved by gmueckl on Wednesday November 04, 2026 @08:50AM (#50365500)
How do you create shared mutable ownership of overlapping ranges of a single flat array in rust?
Re:C++26 Disapproved by tcfhgj on Wednesday November 04, 2026 @10:12AM (#50366699)
similarly except the algorithm to Mutex<[T]> and Arc?
Re:C++26 Disapproved by gmueckl on Wednesday November 04, 2026 @11:02AM (#50367509)
How does this work e.g. for an array of integers that several workers threads write to at random, non-overlapping positions?
Re:C++26 Disapproved by tcfhgj on Wednesday November 04, 2026 @05:50PM (#50372569)
1. by implementing your complex algorithm? 2. if they don't overlap, they can't be random, can they?

Rust can literally do anything programmatically. Idk why you think it cannot do something.

Re:C++26 Disapproved by gmueckl on Wednesday November 04, 2026 @11:55PM (#50375367)
They can be unordered, e.g. when reshuffling data into a new buffer based on a permutation that was computed separately. How do you avoid locking the output buffer in rust?
Re:C++26 Disapproved by tcfhgj on Thursday November 05, 2026 @12:56PM (#50382135)
Re:C++26 Disapproved by tcfhgj on Sunday November 08, 2026 @10:18AM (#50414013)
Re:C++26 Disapproved by afdbcreid on Wednesday November 04, 2026 @08:36AM (#50365335)
Rust can do that just fine. https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell..... "some complex algorithmic properties that guarantee that the changes do not overlap" are exactly the place to use unsafe and encapsulate it.

If you mean things that formally create a data race, then C++ cannot do that either.

Re:C++26 Disapproved by qtqtqt on Tuesday November 03, 2026 @11:28PM (#50361500)
> basically every production language that isn't Go or Rust.

Even in their case. Rust depends on LLVM which is wriiten in C++. Go needs libc on some platforms.