News for hackers. Stuff that matters.
Re:C++26 Disapproved by shevy-java on Wednesday November 04, 2026 @12:44AM (#50361859)
C++ is in a strange position.

If you look at "let's use AI to rewrite xyz in Rust", then C++ has to wonder why it isn't as often mentioned compared to Rust here. I am not saying AI should be the future, but merely compare why Rust is cited here more frequently than C++. That's just one of many other things. Rust also got popular due to crates. How is the alternative called in C++? Barely anyone outside the C++ community knows. And that's also a problem.

C++ isn't going away anytime soon, of course, but when people keep on mentioning alternatives again and again then it shows that the competition intensifed a lot.

Re:C++26 Disapproved by thatxliner on Wednesday November 04, 2026 @12:55AM (#50361911)
> How is the alternative called in C++?

what is it though? vcpkgs/decentralized repositories?

Re:C++26 Disapproved by filipdobro on Wednesday November 04, 2026 @01:46AM (#50362194)
It is de facto vcpkg
Re:C++26 Disapproved by smallstepforman on Wednesday November 04, 2026 @03:27AM (#50362783)
With package managers on Linux, BSD and Haiku, the only odd man out needing packages is Windows, and vcpkg fills this gap so its no longer an issue.
Re:C++26 Disapproved by scotty79 on Wednesday November 04, 2026 @01:03AM (#50361952)
Why would anyone want to rewrite anything in C++ given they can choose anything else? Like Rust or Go or C or Zig or literally anything else.
Re:C++26 Disapproved by filipdobro on Wednesday November 04, 2026 @01:48AM (#50362198)
Compiler stuff in MLIR.
Re:C++26 Disapproved by nananana9 on Wednesday November 04, 2026 @02:23AM (#50362403)
I wouldn't choose Rust because of compile times. C++ ones aren't great either, but with discipline in how you structure headers, you can get reasonable compile speeds. Unsafe Rust is also a bit of a PITA, and I (in game engines) have cases where I care lot about precisely how memory is laid out and accessed, so I'd have to resort to it quite a lot.

I wouldn't choose Go because GC is a non-starter.

I wouldn't choose C because it's nice to have some form of generics or metaprogramming, even if templates are not exactly fantastic.

I wouldn't choose Zig because the language isn't stable, and the lead developer has hinted that they'll drop LLVM down the line, and I don't want to beta test their compiler backend.

Re:C++26 Disapproved by tnodir on Wednesday November 04, 2026 @08:29AM (#50365256)
Zig drops LLVM for debug mode only.
Re:C++26 Disapproved by drnick1 on Wednesday November 04, 2026 @03:36AM (#50362842)
Because, used sensibly, C++ is a better C. This is more or less what C++98 was, and even that is probably too much.
Re:C++26 Disapproved by jeroenhd on Wednesday November 04, 2026 @02:35AM (#50362456)
I think Rust's saftey guarantees are an important reason to throw it at LLMs. LLMs make stupid mistakes, even the very best ones, and a lot of them, all the time. Having a compiler reject those mistakes makes for a better automated process. C++ has some safety mechanisms as well, but they're weak and fragile compared to Rust.

For people with C++ experience working together months at a time that doesn't have to be a problem, but AI rewrites turn a million lines of one language into a million of the other in a day, followed by an impossibly short human review.

Rust also isn't as safe and correct as you'd hope it to be for "fuck it, let the LLM deal with it" style programming, but it's got the best speed-usability-safety balance out of the common languages if you don't trust your programmers.

Re:C++26 Disapproved by gmueckl on Wednesday November 04, 2026 @04:25AM (#50363136)
Hacker news has always been a rust bubble. Tallies of opinions voiced here are always skewed in some ways.