image credit: Unsplash

White House urges developers to avoid C and C++, use ‘memory-safe’ programming languages

February 28, 2024

The government would prefer it if you stopped programming tools in C or C++. In a new report, the White House Office of the National Cyber Director (ONCD) has called on developers to use “memory-safe programming languages,” a category which excludes the popular languages. The advice is part of U.S. President Biden’s Cybersecurity strategy and is a move to “secure the building blocks of cyberspace.”

Memory safety refers to protection from bugs and vulnerabilities which deal with memory access. Buffer overflows and dangling pointers are examples of this. Java is considered a memory-safe language due to its runtime error detection checks. However, C and C++ both allow arbitrary pointer arithmetic with direct memory addresses and no bounds checking.

Read More on Tom's Hardware