News for hackers. Stuff that matters.
Re:Toyotas Unintended Acceleration and the Big Bowl of “Spag... by michaelfeathers on Tuesday June 02, 2015 @12:05AM (#9643777)
> Toyota had more than 10,000 global variables. “And in practice, five, ten, okay, fine. 10,000, no, we're done. It is not safe, and I don't need to see all 10,000 global variables to know that that is a problem,” Koopman testified.

I wonder why people want to believe 5 or 10 are okay.

Re:Toyotas Unintended Acceleration and the Big Bowl of “Spag... by jfoutz on Tuesday June 02, 2015 @12:19AM (#9643826)
Check engine light? Passenger without a seatbelt?

I mean, it's an embedded system, resources are scarce. There are more elegant solutions, yes. But a pattern of setting an error condition from a bunch of different sensors, that's checked from a bunch of locations seems reasonable. At least, not insane.

Re:Toyotas Unintended Acceleration and the Big Bowl of “Spag... by icelancer on Tuesday June 02, 2015 @12:28AM (#9643864)
He's not sanctioning 5-10 globals, only saying he could deal with that number of them without freaking out. Which is certainly true.
Re:Toyotas Unintended Acceleration and the Big Bowl of “Spag... by ericye16 on Tuesday June 02, 2015 @12:20AM (#9643835)
For simple configurations that have global affects, global variables might be easier than some other methods of keeping track of settings. It's a bit more frequent in embedded software than other software though.