Last updated: | Permalink
Discussion: Software Aspects of Strategic Defense Systems
These notes roughly capture the (mostly unedited) comments from the class:
- Hot Takes/First Impressions: What did you think of these essays, overall?
- Requirements: “Do everything perfectly”
- Important/interesting to discuss education of programmers
- Is this actually a problem of programming languages?
- Most (or all?) of the problems discussed exist not only for the SDI, but in other contexts too
- How to reason about what a reasonable/good investment is?
- Applied research
- Make the missile hit the exact target
- Fundamental research
- Make software more reliable
- What we needed then: concurrency, fault tolerant systems
- Applied research
- Wow, we sure had much different hardware at the time, and the difference between a high and a low level programming language…
- The hard requirements (never miss a target) are pretty insane
- Not. Ever. Possible.
- We have had actual documented cases of missile detection systems providing false positives that would have resulted in nuclear war had not a human intervened
- Essays on software process
- Why software is unreliable
- Continuous vs discrete states. If continuous states, can’t test all states in advance
- It depends on what you want to prove and in which circumstances
- How do we understand software - decompose it into modules?
- Is it possible for modules to break down, and lead to unreliable software?
- Specifying WHICH module to use can be a challenge
- By construction, different modules must be built by different teams
- Concurrency/multi-processing
- Different modules built by different teams may be unreliable in themselves, especially if they are entirely disconnected in their development structure
- Is it possible for modules to break down, and lead to unreliable software?
- Software engineers are not trained sufficiently
- Insufficient understanding of when different methods are applicable, and under what circumstances they can be expected to generalize/continue to perform
- “Think like a computer” is not an appropriate teaching method
- Programming by trial-and-error (but this requires tests)
- Not good enough tooling support
- Higher level languages might help “think like a computer” by raising the abstraction level
- Rigorous training in requirements writing and decomposition - understanding in particular implicit requirements for behaviors that should NOT occur
- How much of this problem is related to EXPERIENCE that can’t be trained/shared, versus training?
- Prototyping/iterative decomposition
- Patterns/architecture?
- Why SDI will be untrustworthy
- “Untrustworthy” - this means not 100% perfect performance - should that just be “nuff said”?
- This is realistically a systems problem, not just including the post-launch phase (intelligence gathering, pre-launch capabilities, other countermeasures)
- Example: How to develop fire control software? What are the inputs? What are the algorithms to use? How to test this?
- Start with the given inputs: we have some ballistic missile that is on some trajectory
- AI has gotten so much further
- Many of the assumptions are grounded on the current state of hardware/software at the day
- Why conventional SW development does not produce reliable programs
- Why software is unreliable
- Essays on “emerging approaches”
- The limits of SE methods
- Waterfall process
- At a system-level, the entire system must be correct “the first time”
- Requirements/interfaces between modules must be carefully gathered, designed, analyzed (Rely on experience building previous things to do this)
- Structured programming
- Formally specified interfaces
- What is an example of a difficult design decision that could be easily overlooked?
- Constraints of execution time, space requirements for modules must be specified ahead
- Disconnect between project managers/engineers - particularly in terms of what is actually possible with current technology
- Anything related to assumptions of the countermeasures of the enemy, all of which must be based on (uncertain) intelligence (plus the fact that there might be gas in that enemy software)
- Implicit assumptions, e.g. on iteration over a hash table
- Is a solution to this grounded in software, in humans, or in both?
- Some things can be solved in software. Especially discussion of multi-processing, baking these kinds of solutions into languages (e.g. Rust, async actors)
- Some things need to be solved in human processes.
- Software can be used to help mediate communication.
- How to organize high-level design vs low-level design?
- How to structure teams?
- Maybe most/all things are socio-technical, and depending on the problem, might be more of one side than the other
- Maybe we need to break bad habits?
- What is an example of a difficult design decision that could be easily overlooked?
- Cooperative multiprocessing using locks/signals
- The Software Cost Reduction project
- What was learned from this 8+ year effort?
- Need complete black-box requirements upfront
- MODULES, and also why to use modules
- Precise documentation using formal methods (compare to “functionality over documentation”)
- “Every new concept requires at least 2 generations of engineers to become the standard”
- What was learned from this 8+ year effort?
- Waterfall process
- AI and the SDI
- AI has gotten pretty far compared to what it was
- “People speak of AI as if it were some magic body of new ideas”
- We have found out that many things that we thought were hard (chess) are “easy” others (recognizing blocks) hard
- Can automatic programming solve the SDI problem?
- Even if we have ChatGPT to generate code, still need to generate prompt
- Helps programmer with the “simple” things, and as this is continued to be used, you eventually might generate more reliable code
- GitHub CoPilot is a big “wow” but not the end of the story
- Programs need to be read by humans also: are these automatic techniques making things that are not maintainable
- What kind of explainability/traceability do we get from this?
- What about new programming languages?
- Garbage collectors?
- Programming by specification
- Type systems
- Would a higher level language lead to more reliable programs? Pros and cons…
- As more things are abstracted away, developer may become less aware of what is actually happening under the hood
- How to conceptualize “real-time” - millisecond latency is OK
- Performance is harder to reason about
- The low-level mechanisms implemented by the high-level language should be correct
- Higher-level problems may be easier to reason about in maintenace
- Can actually spend time focusing on what it is that you need to do, rather than how to implement the low-level parts of it
- How do programming environments improve reliability?
- What is a programming environment in this context? (Other than Unix™)
- Operating system, editors
- What programming environments make software more reliable/faster to build?
- IDEs + language servers - include linting/test/analysis results directly inside of an integrated environment. Refactoring.
- Simulation of physical devices in virtual environments
- Version control + collaboration tools
- Continuous integration
- What is a programming environment in this context? (Other than Unix™)
- Can program verification make the SDI software reliable?
- What was missing at the time? Languages, solvers, proofs assistants
- What are the properties that you are going to verify?
- The limits of SE methods