Comments by "Scott Franco" (@scottfranco1962) on "Low Level"
channel.
-
2
-
2
-
2
-
1
-
1
-
1
-
1
-
@jonassattler4489 Yea, its an unfortunate fact that I am aware of. I am a pilot as well as a programmer. The use of C is a shockingly bad choice for life critical applications such as avionics. I disagree there are no alternatives. Java, which has been around for decades, is a fully protected language, and Pascal has been around for 50 years now. Fully protected.
Allocators are well debugged. The bugs that occur happen not because of the allocator (which is usually only a page or so of code) but because of incorrect use. Regardless, again, there are languages outside of that running segment violation of a language C that properly check allocations.
I use C in most of my work, have to make a living. You code in what your employer uses. But again, C is a terrible choice, and yes, there are alternatives.
I have lots of issues with NASA use of COTS (Customer off the shelf). When the mars probe locked up because of a priority inversion, my first reaction was "they use a priority based RTOS???". Priority based OSes have known issues that (to me) stem from use of an oversimplified model of tasking. Demand based systems (well covered in the literature) are better and actually properly model the way tasking works.
I'll put is succinctly: NASA chose their languages by popularity, not by fitness of purpose. The military went through the same thing, and they chose ADA because it had protection (long before JAVA and the protected language fad). Its simple. The military didn't want run nuclear missiles on C code. They kinda got out their on their own limb with ADA, but they made it work. ADA is still in use.
1
-
1