This move by the US government is part of President Biden's Cyber Security strategy and is a step to "secure the building blocks of cyberspace".
Memory safety refers to protection against errors and vulnerabilities related to memory access such as buffer overflows and hanging pointers.
Among today's popular programming languages, Java's runtime error checking should be considered a memory-safe programming language. Meanwhile, some programming languages lack features related to memory safety such as C and C++. The report states C and C++ are "insecure programming languages".
The ONCD report does not detail which programming languages are considered memory safe. However, in November 2022, the National Security Agency (NSA) released a detailed cybersecurity fact sheet on programming languages considered memory-safe.
The following are the programming languages recommended by the NSA:
- Rust
- Go
- C#
- Java
- Swift
- JavaScript
- Ruby
The languages recommended by the NSA above are all in the top 20 most popular languages.