Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

White House urges developers to avoid C and C++, use 'memory-safe' programming languages
Tomshardware ^ | 02 28 2024 | Les Pounder

Posted on 02/28/2024 1:41:30 PM PST by yesthatjallen

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.

In 2019, Microsoft security engineers reported that around 70% of security vulnerabilities were caused by memory safety issues. Google reported the same figure in 2020, this time for bugs found in the Chromium browser.

" Experts have identified a few programming languages that both lack traits associated with memory safety and also have high proliferation across critical systems, such as C and C++," the report reads. "Choosing to use memory safe programming languages at the outset, as recommended by the Cybersecurity and Infrastructure Security Agency’s (CISA).

SNIP

(Excerpt) Read more at tomshardware.com ...


TOPICS:
KEYWORDS: c; programming; whitehouse
Navigation: use the links below to view more comments.
first previous 1-2021-4041-6061-68 last
To: yesthatjallen

Wonder if C# is included in this warning. It works like C++ but has active memory management IIRC.


61 posted on 02/28/2024 6:20:22 PM PST by Yardstick
[ Post Reply | Private Reply | To 1 | View Replies]

To: kosciusko51
Fortran 2023, the latest version, is really not a bad programming language.

Really not that much difference between Fortran, Pascal and C these days.

I like Fortran for sentimental reasons but I prefer Pascal as it was developed as a Structured Programming Language from the gitgo.

C is a great programming language but I never really warmed up to it's quirks and it's syntactic weirdness that came about in the early days of it's development.

62 posted on 02/28/2024 6:31:44 PM PST by rdcbn1
[ Post Reply | Private Reply | To 60 | View Replies]

To: Myrddin

(Sound of grey_whiskers purring and drooling at the same time).


63 posted on 02/28/2024 6:39:14 PM PST by grey_whiskers ( The opinions are solely those of the author and are subject to change without notice.)
[ Post Reply | Private Reply | To 49 | View Replies]

To: yesthatjallen

So, if the White House is suggesting Java over C++, is it ‘cause their own hacks can snoop on Java more easily than C++? Is C++ what the white hats are using, and the fascist goons in O’Biden’s regime are having trouble prying into their business?


64 posted on 02/28/2024 6:48:27 PM PST by Tellurian (Any cleverness from a democrat is quickly invested in deception)
[ Post Reply | Private Reply | To 1 | View Replies]

To: fretzer

Yep. All of the above. Plus.


65 posted on 02/28/2024 7:11:23 PM PST by curious7
[ Post Reply | Private Reply | To 9 | View Replies]

To: voicereason

Blessed are the Pascal programmers for they shall inherit their environment.


66 posted on 02/28/2024 7:22:13 PM PST by curious7
[ Post Reply | Private Reply | To 10 | View Replies]

Real programmers like vending machine popcorn. Coders pop it In the microwave oven. Real programmers use the heat given off
by the CPU. They can tell what job is running just by listening to the rate the corn Is popping.


67 posted on 02/28/2024 7:47:30 PM PST by curious7
[ Post Reply | Private Reply | To 66 | View Replies]

To: Weirdad
"That was around 1980-1982. I learned a lot. Really interesting nerd city!"

I was there around '83-'84. Living at Wolf Creek apts. in Clear Lake, and going to the movies at Baybrook with my fellow nerds on Friday nights (I saw "The Right Stuff" there :) ).

Plenty of great nerds about. I often wonder what has become of them.

68 posted on 03/01/2024 9:52:24 AM PST by The Duke (Not without incident.)
[ Post Reply | Private Reply | To 59 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-2021-4041-6061-68 last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson