Friday, March 24, 2023
Learning Code
  • Home
  • JavaScript
  • Java
  • Python
  • Swift
  • C++
  • C#
No Result
View All Result
  • Home
  • JavaScript
  • Java
  • Python
  • Swift
  • C++
  • C#
No Result
View All Result
Learning Code
No Result
View All Result
Home C++

C++ creator Bjarne Stroustrup defends its safety

learningcode_x1mckf by learningcode_x1mckf
January 31, 2023
in C++
0
C++ creator Bjarne Stroustrup defends its safety
74
SHARES
1.2k
VIEWS
Share on FacebookShare on Twitter


The creator of C++, Bjarne Stroustrup, is defending the venerable programming language after the US Nationwide Safety Company (NSA) just lately really helpful towards utilizing it. NSA advises organizations to make use of reminiscence secure languages as an alternative.

You might also like

US NSA tells developers to shun C and C++ programming language – The Siasat Daily

Introducing Carbon, Google's Experimental Successor for C++ – MUO – MakeUseOf

C vs. C++: 12 Key Differences and Similarities – Spiceworks News and Insights

Responding to the agency’s November 2022 bulletin on software program reminiscence security, Stroustrup, who designed C++ in 1979, careworn decades-long efforts to allow higher, safer, and extra environment friendly C++. “Particularly, the work on the C++ Core Pointers particularly goals at delivering statically assured type-safe and resource-safe C++ for individuals who want that with out disrupting code bases that may handle with out such sturdy ensures or introducing further device chains,” Stroustrup stated in a published response.

The NSA bulletin recommends towards using C/C++ as a result of, regardless of programmers typically performing rigorous testing to make sure code is secure, reminiscence points in software program nonetheless comprise a big portion of exploited vulnerabilities. “NSA advises organizations to contemplate making a strategic shift from programming languages that present little or no inherent reminiscence safety, comparable to C/C++, to a memory-safe language when potential,” the company stated.

The company cited memory-safe languages comparable to C#, Go, Java, Ruby, Rust, and Swift.” NSA stated generally used languages comparable to C and C++ present freedom and adaptability in reminiscence administration whereas closely counting on the programmer to carry out checks on reminiscence references.

However Stroustrup emphasised enhancements to security. “Now, if I thought-about any of these ‘secure’ languages superior to C++ for the vary of makes use of I care about, I wouldn’t contemplate the fading out of C/C++ as a nasty factor, however that’s not the case. Additionally, as described, ‘secure’ is restricted to reminiscence security, leaving out on the order of a dozen different ways in which a language might (and can) be used to violate some type of security and safety.”

He additionally lamented NSA’s memo pairing C++ with the older C language. C++, initially known as C with Lessons, is an extension of C. “As is way too frequent, it lumps C and C++ into the one class C/C++, ignoring 30-plus years of progress.” In an e mail to InfoWorld late final week, Stroustrup added, “Sure, far too many individuals discuss in regards to the legendary C/C++ language after which typically proceed to deal with the weaknesses of the C half. A lot of these weaknesses may be prevented in C++; sometimes, by writing more-efficient code that extra immediately expresses the intent of the programmer.”

Stroustrup within the e mail additionally shared his definition of security: He goals for kind and useful resource security, by which each object is used in line with its kind and no useful resource is leaked. For C++, this suggests some runtime vary checking, eliminating entry by way of dangling pointers, and avoiding misuses of casts and unions. C++ provides high-level services, comparable to containers, span, range-for loops, and variants that may supply ensures with out damaging productiveness or effectivity. Concerning the so-called secure languages the NSA cited, Stroustrup stated the entire languages are weak by way of code that isn’t statically verified. Additional, each system should use {hardware}, and efficient {hardware} entry is never secure, he stated.

Stroustrup outlined his technique for secure use of C++:

  • Static evaluation to confirm that no unsafe code is executed.
  • Coding guidelines to simplify the code to make industrial-scale static evaluation possible.
  • Libraries to make such simplified code moderately straightforward to put in writing and guarantee runtime checks the place wanted.

Stroustrup stated there are tens of millions of C++ programmers and billions of strains of C++ code. Main present makes use of for the language embrace aerospace, medical instrumentation, AI/ML, graphics, bio-medicine, high-energy physics, and others.

NSA acknowledged that reminiscence administration shouldn’t be solely secure even in a “memory-safe” language and that mechanisms comparable to static and dynamic software safety testing (SAST and DAST) can be utilized to enhance reminiscence security in so-called non-memory-safe languages. However neither SAST nor DAST could make non-memory-safe code completely secure, NSA stated.

Copyright © 2023 IDG Communications, Inc.



Source link

Share30Tweet19
learningcode_x1mckf

learningcode_x1mckf

Recommended For You

US NSA tells developers to shun C and C++ programming language – The Siasat Daily

by learningcode_x1mckf
March 22, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

US NSA tells developers to shun C and C++ programming language  The Siasat Day by day Source link

Read more

Introducing Carbon, Google's Experimental Successor for C++ – MUO – MakeUseOf

by learningcode_x1mckf
March 22, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

Introducing Carbon, Google's Experimental Successor for C++  MUO - MakeUseOf Source link

Read more

C vs. C++: 12 Key Differences and Similarities – Spiceworks News and Insights

by learningcode_x1mckf
March 21, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

C vs. C++: 12 Key Differences and Similarities  Spiceworks Information and Insights Source link

Read more

I want to learn C++ Directx9 – Graphics and GPU Programming – GameDev.net

by learningcode_x1mckf
March 20, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

I want to learn C++ Directx9 - Graphics and GPU Programming  GameDev.web Source link

Read more

Is Java Losing Ground to C++, Python? – Dice Insights

by learningcode_x1mckf
March 20, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

Is Java Losing Ground to C++, Python?  Cube Insights Source link

Read more
Next Post
Using the Terminal on Linux – Real Python

Using the Terminal on Linux – Real Python

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related News

Tool shows JavaScript code injected via in-app browser

Tool shows JavaScript code injected via in-app browser

September 10, 2022
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

Data visualization with Observable JavaScript – InfoWorld

February 28, 2023
C++ overtakes Java in programming popularity index • The Register

C++ overtakes Java in programming popularity index • The Register

January 2, 2023

Browse by Category

  • C#
  • C++
  • Java
  • JavaScript
  • Python
  • Swift

RECENT POSTS

  • Java Developer Survey Reveals Increased Need for Java … – PR Newswire
  • What You Should Definitely Pay Attention to When Hiring Java Developers – Modern Diplomacy
  • Java Web Frameworks Software Market Research Report 2023 … – Los Alamos Monitor

CATEGORIES

  • C#
  • C++
  • Java
  • JavaScript
  • Python
  • Swift

© 2022 Copyright Learning Code

No Result
View All Result
  • Home
  • JavaScript
  • Java
  • Python
  • Swift
  • C++
  • C#

© 2022 Copyright Learning Code

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?