Programming languages for aerospace

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 2K views
orb_yt
Messages
18
Reaction score
5
It seems a lot of stuff done for aerospace is in C/C++ or Python. Both of these are a few decades old now, and they seem to still dominate in the industry. I know that ESA has plans to start using Java, but what other current programming languages do you think would be viable options for use in aerospace?
 
Physics news on Phys.org
C and C++ are not going to go away any time soon. They are too useful and too important. Maybe julia will gain popularity, but who knows?
 
Khashishi said:
C and C++ are not going to go away any time soon. They are too useful and too important. Maybe julia will gain popularity, but who knows?

I wouldn't expect them too, with how ingrained and wide-spread they are in the industry. But is there any limitations to using them? Using something designed 40 years ago for modern tech just seems...weird.
 
There is a difference between code for engineering analysis versus code for operational flight programs (OFPs) that run on the plane.

The strict testing and development process requirements for OFPs severely limit the languages that can be used. So does the fact that OFPs run on a small subset of hardware and operating systems that only offer selected language compilers. C is common for OFPs. There are also a smaller number of Ada and C++ OFP programs. I am not aware of any Python or Java OFP code. A growing trend is to use design tools (often graphical) that auto-generate code. There is a lot of auto-generated C and C++ OFP code.

For engineering analysis, the design tools can have a variety of languages. You should remember that many algorithms might end up in an OFP and having them in an acceptable OFP language is a great benefit. There is a lot of Python and Java code in the analysis tools that are guaranteed to not become OFP algorithms.
 
C++ and legacy FORTRAN are the major languages in aerospace. I have some groups who use Perl and the occasional person who uses python. We have shied away from java in my particular group, it is too slow.