Postmortems

10,000 global variables? Oh boy

10,000 global variables? Oh boy…

http://www.safetyresearch.net/blog/articles/toyota-unintended-acceleration-and-big-bowl-“spaghetti”-code

And recursive programming…

The highest price per line of code ever, more than the shuttle computers, for example. Granted, for lawyers, not programmers, doing it right would have been much cheaper.

This is going to be one of the textbooks. Next to the Therac-25.

While 10,000 seems extremely high, I’d be curious what the industry standard for auto software is. i.e. how their code compared to everyone else in the industry

The code is very carefully engineered to have a single writer for each global variable (enforced by tools). That way, they get lock-free fast communication without overheads.