6 ms·
"We get the software we deserve." Painfully true. There are techniques for writing better software. They work. They take longer and cost more. They are not wi
by Animats 12y ago
"We get the software we deserve."
Painfully true. There are techniques for writing better software. They work. They take longer and cost more. They are not widely used outside aerospace.
- dgemm 12y agoIs there a high level overview somewhere I can read? Don't even know what to google here.
- throwawayf2o 12y agohttp://spinroot.com/gerard/pdf/P10.pdf http://spinroot.com/gerard/pdf/P10.pdf (some are more/less appropriate for non-embedded-systems) In general, the answer typically involves formal specification and formal methods that check the code against these specifications, combined with testing and coding standards that result in analysable code. More references: https://www.cs.umd.edu/~mvz/cmsc630/clarke96formal.pdf https://www.cs.umd.edu/~mvz/cmsc630/clarke96formal.pdf http://research.microsoft.com/en-us/um/people/lamport/tla/formal-methods-amazon.pdf http://research.microsoft.com/en-us/um/people/lamport/tla/fo...
- tormeh 12y agoYou might want to look into coding standards for C and special languages like Ada (like C, but less writeable, more readable with strong types) and Esterel (deterministic multithread scheduling). Seriously, Esterel is probably the coolest thing you'll read about this week. There's also various specification languages for multithreaded behaviour, which allows you to analyse your programs behaviour using software tools, for example SPIN[0]. 0: http://en.wikipedia.org/wiki/SPIN_model_checker http://en.wikipedia.org/wiki/SPIN_model_checker
- pjmlp 12y agoSearch for high integrity software. For example, with MISRA it may be C, but feels like Ada. http://www.misra.org.uk/ http://www.misra.org.uk/ Or Spark similarly for Ada http://www.spark-2014.org/ http://www.spark-2014.org/
- auxym 12y agoAlso in medical devices. IIRC FDA has standards for software writing/testing/certification.
- FLUX-YOU 12y agoI'm not sure how much faith I'd put in that. http://www.wired.com/2014/04/hospital-equipment-vulnerable/ http://www.wired.com/2014/04/hospital-equipment-vulnerable/ http://en.wikipedia.org/wiki/Barnaby_Jack#Insulin_pumps http://en.wikipedia.org/wiki/Barnaby_Jack#Insulin_pumps
- mcmancini 12y agoFDA requirements mostly target the SDLC: risk analysis, change control, documentation, v&v, &c. Companies are afforded a surprising amount of flexibility in implementation. Basically, you must have a documented process that you follow, but you're left to your own devices in creating the process. Deviations from voluntary industry standards (e.g., TIR 45) is permissible since they're not specifically required. The DoD, aerospace, and automotive industries have in comparison far more detailed and strict regulatory requirements.
- rapind 12y agoIf we're all creating giant balls of mud because the demand is for giant balls of mud done quickly, then we never learn how to craft beautiful software. It's unfortunate, and it's sad to say I'm often part of it at some level (but I fight it dammit!).
- roma1n 12y agoYup. How a DO-178-like integrity level is not mandatory for medical devices is troubling.