Re:Volvo is using Rust for its in-vehicle software
by georgyo on Saturday September 24, 2022 @07:12AM
(#32961460)
In older cars things like blinking lights was done with a dedicated circuit. By putting everything in software, we've actually made this class of bug appear more often.
Re:Volvo is using Rust for its in-vehicle software
by diydsp on Saturday September 24, 2022 @08:01AM
(#32961717)
That's an underrated point: rust solves memory issues, but now schedule feasibility is outstanding.
Re:Volvo is using Rust for its in-vehicle software
by foobarbecue on Saturday September 24, 2022 @07:11AM
(#32961455)
If timing is critical, you need an RTOS. (Real time operating system)
Or just don't use software. I wouldn't expect the blinker delay to use software, just a timer IC.
Re:Volvo is using Rust for its in-vehicle software
by londons_explore on Saturday September 24, 2022 @07:44AM
(#32961617)
For example, you could have a dedicated "do this thing at this time" processor. It can't be blocked, and if it accepts a job, then it is able to do it on time.
The main processor then tells this processor to do all timed tasks.
Re:Volvo is using Rust for its in-vehicle software
by michaelmior on Saturday September 24, 2022 @07:09AM
(#32961442)
I don't imagine any class of bugs will ever completely disappear. Sure, we know how to write software that is extremely unlikely to suffer from certain classes of bugs and we have better tooling for testing, but ultimately it's dependent on humans.
If you had a windows 95 PC controlling the blinker, the exact same bug and symptoms would be totally expected...
Do how in 25 years have we not managed to quash this class of bugs? (Where a simple task needs to be done at a certain time, and gets delayed).