This is the Chengdu JF-17, a fighter jet developed jointly by Pakistan and China...

This is the Chengdu JF-17, a fighter jet developed jointly by Pakistan and China. Unlike other modern jets which use the Ada programming language, the avionics and software of the JF-17 are written in C++.

I don't know about programming languages, how bad of a choice is C++ for something as serious as the software that keeps a jet fighter in the air and combat capable?

Other urls found in this thread:

webcitation.org/6VHWpaYlV
twitter.com/NSFWRedditImage

f35 software is written in C++

M16 softwares was written in Java and Python.

It's possible to build good systems in any language. In fact there is a subset of C++ designed for fighter jets.

I think C++ is powerful thing in right hands.

Inb4 it's compiled in windows.
>Then Microsoft uses the embedded code that is inserted in every single C++ compiler to take over the jet

Can't wait to see it get infected with ransomware mid flight

You do realize C++ is more used than Ada in the MIC right.

They use safety oriented RTOS like integrity-178b in this instance

No I don't, I said I don't know about programming languages

>I think C++ is powerful thing in right hands.
You don't fit in, Pajeet.

We came from other board to Sup Forums to ask, you're only ones we can trust with technology stuff. I hope it's okay, considering half of threads you have are bait/is x better than y/post your x/IT Support

friendly reminder NASA put a man on the moon using commodore basic.

F-16 run on windows xp

>Pajeet
Stop pretending you're not pajeet by calling others pajeets, poo in the loo

It's super bad for military because C++ standard is 1000+ pages (with C library description not included) long and next to no compilers are mathematically verified let alone the standard itself.

The aircraft looks like some project of merging an F-5, F-16 & F/A-18 all into one, and you're questioning if hacking can bring it down?

you don't need 4 backups in military plane

likewise you don't need gold-plated "rad-hard" multicore pentiumPro for $300k piece

modern cpus and ram work fine even in 10Mrad environments (sure vibrations may be an issue)

"MIL-GRADE" software or computers are fucking scam because you basically pay for compliance to autistic and obsolete standards which could solved by running everything in "hypervisor" and check for outlying values without "voting" bullshit

>questioning if hacking can bring it down
Not hacking, but maybe the whole system crashing and the plane falling out of the sky

I wonder what processor architecture they use, and which company produces them...

Intel i5-7600k last I heard

Stop already, that strawman was never alive.

Curiosity is all C, 2.5million lines of it. So it it possible to write highly reliable systems in C, and by extension C++.

Still, if I was relying on safety-critical software (and I do, every time I get on a plane), I would feel safer if it were implemented in Ada.

I actually don't know what the 7x7/A3xx's avionics are written in. Anyone?

but, it's true though. planes ARE obsolete pieces of shit.
tell me why my car can check if there was a misfire in cylinder 4 or shifting was too slow. hell, even in train hauling 6000t that needs 5 kilometers to stop, "ecu" can detect or (would you believe it) actually solve common problem.

why pilots, should check before take off 500 positions on a checklist, while software would do it order of magnitude faster and probably even more reliable?

Because even for cars and trains software electronic breaks. And planes are expensive af
But you got a good point, they obsolete

>webcitation.org/6VHWpaYlV
>"The chief designer of the Xiaolong, Yang Wei, said that the aircraft cannot compete with other aircraft on the market and that exporting fighters is often influenced by geopolitical factors, in an interview with Beijing-based China Daily."

welp, BTFO?

>planes ARE obsolete pieces of shit.
Planes are one of military forces and cannot be obsolete. STFU.

>a plane made by China and Pakistan can't actually do shit against Russian let alone American modern fighters
No shit?

He's not wrong though. You think new generations of jet fighters come up every year or two like CPUs or what? The backbone of every airforce in the world is still planes designed in the 80s. The F-22, supposedly the world's most advanced jet fighter, is mostly made with technology from the 90s. The next generation of jet fighters isn't expected to arrive until the late 2020s, and that's a very optimistic prediction.

"Obsolete pieces of shit" is not same as "pieces of obsolete shit".

this.
Dont think that civilian aircraft gets a new navigational computer every time INTEL or AMD shills new cpu...
That stuff is ancient, and you know what? IT JUST WERKS.
And military has pretty strict protocol on electronic components, they will take old cpu instead of 10nm one because the old ones are much more resilient to heat/radiation/vibration.
(You dont want to know what hardware is on nuclear subs or aircraft carriers)

Military aims for cheapiness too, and because competeting companies for exmaple take huge money for something simple, makes it obsolete because something perfect would cost shitload

>Military aims for cheapiness too
And then there's the F-35 program.

oh, I also forget to mention the cost and requirements... You dont need 50 teraflops computer on a jet. you can probably run it of a TI-82

Stop memeing, f-35 is alright.
>US$1.508 trillion (through 2070 in then-year dollars),
That's long time. Overbudgeting is because they kept adding stuff to it, it's way different from original f-35. Media is just doing shitstorm as usual.

>through 2070
What? No way that plane will remain in active service with the US for another 53 years

>because the old ones are much more resilient to heat/radiation/vibration.
Heat and radiation resistence have nothing to do with the age of the technology. They use hardened versions of old chips which makes them quite reliable. The main reason why they use old hardware is errata. You wouldn't want to replace your whole infrastructure only to learn that a plane crashed because a CPU error made the navigation chimp out.

The f35 expires just before 2040

Can you iagine how entertaining this board would be if military aircraft used modern CPUs. We'd have brand wars over jets powered by Intel and jets powered by AMD, it would be great.
>b-b-but THE F-35 HAS MORE GIGAHERTZ!!!!

>why pilots, should check before take off 500 positions on a checklist, while software would do it order of magnitude faster and probably even more reliable?
Sensors can fail ya big dummy

And people can miss things

Point being, it would be quicker and more efficient to let sensors do the main list of checks in no time

Why not both