Re:fs.promises.readFile is 40% slower than fs.readFile
by stonogo on Wednesday March 03, 2021 @10:26PM
(#26338250)
Sounds like more of a warning against blindly copy-pasting code across projects than anything against the Ariane 4 design.
Re:fs.promises.readFile is 40% slower than fs.readFile
by cutemonster on Thursday March 04, 2021 @12:50PM
(#26345541)
Yes I agree.
At the same time, having added big uppercase warnings in the Ariane 4 source code and architecture docs, might have prevented this.
So, important, in safety critical code, to assume that others might blindly copy paste in bad ways -- and then try to warn them, although you might not be there any longer
Re:fs.promises.readFile is 40% slower than fs.readFile
by Karunamon on Thursday March 04, 2021 @01:13AM
(#26339224)
This sounds distressingly similar to the Therac-25 failures. A radiotherapy machine who's software was (blindly?) copy-pasted from a previous version of the system which had hardware interlocks to prevent unsafe configurations of the radiation emitter.
The new one did not have these interlocks, instead doing everything in software. The result of this was a few people being fatally irradiated when a certain race condition was triggered.
In 1996, Ariane 4's successor, Ariane 5, took its maiden voyage to carry the Cluster constellation into orbit, when this happened https://www.youtube.com/watch?v=gp_D8r-2hwk&t=54s
Ariane 5 used a different launch profile. The impossible was now possible and the 16 bit value overflowed. The inertial reference system failed, along with its backup (which was running the same code), causing the rocket to receive wrong data.