by shellmayr · 11y ago · 0 comments
As much as we'd like plane manufacturers to test things to death, it'd become too expensive too quickly. For all we know, this software could be written by a contractor, or the firmware for a third party part.
As far as I know, N-version programming was effective when software systems were small (shuttle ran on 50k lines of code) and where poring over every single line was possible, because the hard part was coming up with the spec.
Nowadays a big plane like the A380 might be expected to have 100M lines of code in its subsystems, and it's simply too expensive.
Why does an airplane require 100M lines of code?
Multiply by all the little and big subsystems, the embedded chips, in-flight entertainment, network gear... 100m SLOC is too low, I think.
Do these systems not have hard real-time requirements about the execution time and periodicity of tasks which can't be guaranteed by the time-sharing scheduling algorithms in Linux?
where it states that the airbus A380 has more than 100 million lines of code in its avionics systems.
They should be able to keep it under 10M lines pretty easily if they actually cared about bloat.
All of these things just add more and more code.
For all we know, if the spec required a counter of 100ms intervals, all N implementations could contain the same bug.
N-version avoids random, but not systematic bugs.