News for hackers. Stuff that matters.
Re:C++26 Disapproved by arein3 on Wednesday November 04, 2026 @03:23AM (#50362753)
Its a set of rules, used by defense software, they are available on the internet
Re:C++26 Disapproved by NSUserDefaults on Wednesday November 04, 2026 @03:55AM (#50362967)
For example the failed F-35 project used it. Seems pretentious and risky compared to using a language that is safe by default.
Re:C++26 Disapproved by amelius on Wednesday November 04, 2026 @04:01AM (#50363015)
> compared to a language that is safe by default.

This also sounds pretentious ...

Re:C++26 Disapproved by NSUserDefaults on Wednesday November 04, 2026 @04:14AM (#50363081)
Because you think there is no such language, or even one that gets closer than C++? Look I still kind of like C++… for games. I would never put it in a fighter jet for gods sake.
Re:C++26 Disapproved by fps-hero on Wednesday November 04, 2026 @05:03AM (#50363407)
I don’t want to be inflammatory, so let’s stick to facts. The F35 is the manifestation of a test aircraft designed in the 90s. Of that era, software was predominantly single threaded, hardware definitely so. They also weren’t using the latest and greatest of hardware at the time, they opted for proven flight platforms with hardware dating back well back into the decade. So, very lacklustre performance, tight memory constraints.

The only other legitimate choice for writing software at the time would have been ADA, which for some reason never took off despite being purpose build for the application. Of that time, C++ was the new hotness, it was popular, it was solving architectural problems, and it was performant, unlike say Java.

It’s fairly naive to say “I’d never use C++”. The C++ programmers of the time would have looked at Fortran or COBOL with the same level of disdain. We are lucky to live in a time of better options, and the impending post code future.

Re:C++26 Disapproved by tialaramex on Wednesday November 04, 2026 @05:43AM (#50363715)
> The only other legitimate choice for writing software at the time would have been ADA

Ada makes a lot more sense for this work than C++ did twenty years ago.

Re:C++26 Disapproved by bluGill on Wednesday November 04, 2026 @08:59AM (#50365598)
Ada didn't make sense either: nobody wanted to learn it.
Re:C++26 Disapproved by SolarNet on Wednesday November 04, 2026 @10:50AM (#50367324)
There were schools of computer science, accredited universities, that taught it heavily (one of the 3 lab intro to programming languages next to c++ and python, and allowed to be used through the entire program at mine). A 1/3 of graduates of some of these places got jobs in it, because they were reliable and well paying jobs.

And then the industry swapped to C++. This was not a DoD mandate, this was companies like boeing trying to pay their engineers 1/3 to 1/2 less by paying for C++ devs (starting salary for ada devs was 90-140k, starting salary for c++ devs was 60-180k according to exit statistics). They of course eventually learned that good C++ devs are actually more expensive than their old Ada ones. Not that they bothered to hire good c++ devs.

Re:C++26 Disapproved by pjmlp on Wednesday November 04, 2026 @11:39AM (#50368120)
Yes we did, the major impediment was the price of available compilers, their dependency on UNIX workstations, where the Ada compiler was extra, on top of C and C++ that were already there.
Re:C++26 Disapproved by Maxatar on Wednesday November 04, 2026 @02:17PM (#50370233)
No it wasn't that nobody wanted to learn it, it's that back then Ada developers cost a lot more than C++ developers and businesses didn't want to pay them.
Re:C++26 Disapproved by drysine on Wednesday November 04, 2026 @05:55AM (#50363803)
>it [C++] was solving architectural problems

What do you mean?

Re:C++26 Disapproved by fps-hero on Friday November 06, 2026 @08:57AM (#50392352)
Think about the difference in how you would structure a program if it was coded in C++/Java vs C. C++ was an enabler of object oriented programming.
Re:C++26 Disapproved by drysine on Friday November 06, 2026 @04:27PM (#50398759)
About the same, I think)
Re:C++26 Disapproved by fps-hero on Sunday November 08, 2026 @08:39AM (#50413262)
I think what is obvious now wasn’t obvious then. If you think about how Linux and the open source community rallied around C, this was at complete odds to what was being taught at a university level. It’s a miracle C survived (if I only through new C++ programmers thoroughly rejecting its promise and sticking to “safe C++”). Even still, rust is a solution to memory lifetime problems with a modern toolset, it’s not solving ergonomic problems which is how you attract new developers. Similarly, ADA was a better language, probably pascal too, they didn’t win.
Re:C++26 Disapproved by NSUserDefaults on Wednesday November 04, 2026 @06:29AM (#50364145)
“Let’s use the new hotness for this new fighter plane” maybe puts things into perspective for me.
Re:C++26 Disapproved by Cthulhu_ on Wednesday November 04, 2026 @04:19AM (#50363098)
[delayed]
Re:C++26 Disapproved by tialaramex on Wednesday November 04, 2026 @04:55AM (#50363326)
C++ is a pre-standard "Eh, just do whatever" language in 1993.

Bjarne's 2005 JSF rules have the same effect as an "Employees must wash hands" sign. It's not the billion dollar fast food chain's fault that a minimum wage employee didn't obey the sign and now you've got food-borne illness. They put a sign up!

Re:C++26 Disapproved by pjmlp on Wednesday November 04, 2026 @11:37AM (#50368092)
He always misses the amount of avionics bugs that the F-35 suffered from, in spite of the rules.
Re:C++26 Disapproved by LiamPowell on Wednesday November 04, 2026 @05:40AM (#50363691)
The incredibly obvious answer is Ada, given the DoD commissioned it and the fact that it was used for the F-22.
Re:C++26 Disapproved by fpoling on Wednesday November 04, 2026 @07:16AM (#50364545)
I wonder if DoD desire to tap into a bigger pool of C++ programmers also brought a lot of people who was not trained to write a high-reliability code.
Re:C++26 Disapproved by SolarNet on Wednesday November 04, 2026 @10:57AM (#50367443)
Ada is far safer than Rust (not in edge case memory allocation problems, but in day to day application programming), and not only existed at the time, it was the industry standard for aviation (for good reason). Entire educational programs and pipelines existed for it.

Boeing and other defense contractors dropped it because C++ programmers were cheaper on paper (not realizing/caring that good C++ engineers were more expensive).

Re:C++26 Disapproved by cestith on Wednesday November 04, 2026 @12:49PM (#50369051)
One of my current coworkers used to work on on-board systems for military aircraft. Anecdotally he tells me the critical systems for the ones he worked on were Ada but other systems could be C++.
Re:C++26 Disapproved by AnimalMuppet on Wednesday November 04, 2026 @09:20AM (#50365900)
In what sense was the F-35 project a failure?
Re:C++26 Disapproved by pjmlp on Wednesday November 04, 2026 @11:43AM (#50368175)
Total cost due to avionics issues and other construction failures.
Re:C++26 Disapproved by rerdavies on Wednesday November 04, 2026 @03:09PM (#50370828)
[delayed]
Re:C++26 Disapproved by throwaway2037 on Thursday November 05, 2026 @05:35PM (#50385479)
Has there ever been a modern fighter jet built in the last 50 years that wasn't consider in one aspect or another an "failure"? At this point, the term "failure" seems almost pointless to describe very large, nation state projects that are heavily used and have thousands built.
Re:C++26 Disapproved by fps-hero on Saturday November 07, 2026 @06:39AM (#50403661)
Whether the F35 was a failure depends on whether you are looking out your forward window, or rear view mirror, and when you were looking.

The F35 program certainly seemed like a white elephant, until it crossed the threshold into production and wasn’t. It was a massively delayed cost blowout project, which has turned into a huge success.

Re:C++26 Disapproved by AdamN on Wednesday November 04, 2026 @09:45AM (#50366245)
Username checks out :-)
Re:C++26 Disapproved by weitendorf on Wednesday November 04, 2026 @05:03AM (#50363402)
I think you're thinking of https://en.wikipedia.org/wiki/High_Integrity_C%2B%2B

I wrote a comment explaining what in my mind distinguishes "high reliability" (defensive programming and making invariants/error cases/intended use explicit) C++ from regular C++. IMO it basically boils down to contemporary "Google/fintech style C++", which is a different development culture and ecosystem from defense/automotive

Re:C++26 Disapproved by fpoling on Wednesday November 04, 2026 @07:19AM (#50364573)
The biggest split is not using exceptions with aborts on memory overflow. It alters the programming style to such extent that it feels like a different language.