The expert appreciated the advice of the NSA to ban C and C ++: how it will affect Russia

The U.S. National Security Agency (NSA) has asked developers from around the world to avoid

older programming languages such as C and C . It is believed that they are more susceptible to hacker attacks when switching to new, memory-safe languages. 

What's the problem with C ?

To execute instructions in code, you need system resources, such as memory. As a result , the responsibility for memory management rests with the developer.Simple mistakes by programmers lead to the "breakdown" of the system and the emergence of security problems .

This freedom leads to certain risks.Occur due to simple typos and forgotten lines of code, or due to complex structuresmemory and unexpected interactions.

statement of the Atlantic Council to the North Atlantic Treaty Organization

In some cases, an attacker can use these errors to gain access to the system or execute malicious code.

Thus, widely used languages ​​suchLike C and C++, not only provide greater freedom and flexibility in memory management, but also “rely” on the programmer in this matter. The NSA believes that this gives hackers the opportunity to exploit vulnerabilities for their own purposes.

Opinion of IT giants

According to technology companies, the shareOld languages ​​such as C and C++ account for up to 65% of all errors. Thus, Microsoft, Google and other IT giants note vulnerabilities in their codes due to problems with memory security.

What languages ​​are safe?

New programming languages ​​such as Python,Java* and Rust allocate memory automatically. Many of them either virtually eliminate security bugs or make them impossible. NSA officials have added C#, Go, and Swift to the “safe list.”

Answer from the “founding father” of C and C++

Creator of the C++ programming language BjörnStroustrup responded to the NSA's call to abandon the use of legacy programming languages, in which the responsibility for memory management rests with the developer.

In his open letter publishedOn open-std.org, Stroustrup expressed disagreement with the agency's position. He stated that his representatives had "lumped together" C and C++, despite the fact that the languages ​​had developed independently over the past 30 years. At the same time, he accused the developers of “often ignoring changes in the language that can radically improve code security.”

In fact, in his opinion, C++ is in no way inferior to modern so-called safe languages ​​like C#, Go, Java, Ruby, Rust and Swift.

Expert opinion

To figure out how seriously to take the NSA's warning, Hi-Tech talked to Andrei Naichenko, the leading presale architect of the Sphere software production platform.

He believes that the danger of this banfor the market and coders should not be overestimated. “The times when application systems are developed in C++ are a thing of the past, and the transition to the recommended languages ​​(C#, Go, Java, Ruby and Swift) has already been completed by most developers,” explains the expert.

Today's use of C++limited to niche solutions in the field of operating systems, game development and game engines (Unreal Engine, Unity), GPU computing (cryptocurrency, deep learning), development of high-load and high-performance algorithms. Given the volume of code developed and the number of specialists, the transition to other languages ​​in these areas is unlikely to happen in the near future. For the rest (the main) part of the market, this recommendation from the NSA does not threaten anything.

Regarding the validity of this decisionAndrey Naichenko supported the creator of the C++ language Bjarne Stroustrup. “The C++ language in modern editions of the standard provides a wide and mature set of tools that allow you to successfully solve problems of safe work with memory,” the expert explained.

How will the NSA decision affect Russia?

The problems identified in the NSA report are more likelyIn total, they were found in solutions implemented on early language standards. Ultimately, the NSA's decision will not have any significant impact on software developers targeting the Russian market.

Read more:

Scientists have named the top 6 ways to "save" the memory of older people

A mysterious imprint underground surprised scientists. He is over 1000 years old

Sword thought to be fake turns out to be a 3,000-year-old Bronze Age artifact

*Despite the fact that Java is classified as a new language, it is a rather old programming language (note - “High-tech”)