News for hackers. Stuff that matters.
Re:Rust is mostly safety by smitherfield on Thursday December 29, 2016 @04:16PM (#13280200)
I assume that treating 0 as false was intentional in this case (it probably was written in PDP-11 ASM) and a direct translation of the Therac code therefore would be

  if counter > 0 {
      deploy_radiation_shield();
  }
Re:Rust is mostly safety by steveklabnik on Thursday December 29, 2016 @04:22PM (#13280234)
Yeah, you'd certainly have to see the actual code to be sure, I bet you're right.