Get the latest tech news

Safety in an unsafe world


unsafe world Joshua Liebow-Feeser took to the stage at RustConf to describe the methodology that his team uses to encode arbitrary constraints in the Rust type system when working on the Fuchsia operating system (slides). The technique is not unknown to the Rust community, but Liebow-Feeser did a good job of both explaining the method and making a case for why it should be used more widely.

The technique is not unknown to the Rust community, but Liebow-Feeser did a good job of both explaining the method and making a case for why it should be used more widely. The context objects impose a global ordering on how mutexes can be locked, and attempting to add an incorrect LockAfter implementation (one that would permit a cycle) is a compile error. Whether his prediction is right remains to be seen — but in any case, the method he spoke about seems like a nice framework to unify different techniques for ensuring program safety.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of safety

safety

Photo of Unsafe World

Unsafe World

Related news:

News photo

Musk's Trump Role, Trump 2.0 Safety and Defense | Bloomberg Technology

News photo

GM partners with startup Forge Nano to improve EV battery life, performance, and safety

News photo

U.S. Senators Demand Transparency from OpenAI on Safety and Employment Practices