Get the latest tech news

Safe C++


Over the past two years, the United States Government has been issuing warnings about memory-unsafe programming languages with increasing urgency. Much of the country’s critical infrastructure relies on software written in C and C++, languages which are very memory unsafe, leaving these systems more vulnerable to exploits by adversaries.

Developers checking code into Rust’s standard library are even required to write safety comments[ safety-comments] before every unsafe block, indicating proper usage and explaining why it’s sound. The Rust community has spent a decade generating soundness knowledge, which is the tactics and strategies (interior mutability, send/sync, borrow checking, and so on) for achieving memory safety without the overhead of garbage collection. An earlier version of this work was presented to SG23 at the St Louis 2024 ISO meeting, with the closing poll “We should promise more committee time on borrow checking?” — SF: 20, WF: 7, N: 1, WA: 0, SA: 0.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Safe C++

Safe C++