News for hackers. Stuff that matters.
Re:Advancing Memory Safety by whatever1 on Tuesday October 15, 2024 @03:51PM (#41852430)
Every C/C++ coder thinks that they are good at memory management. Just look at the endless flame wars on garbage collection.

We just need to admit that we suck at it.

Re:Advancing Memory Safety by codemac on Tuesday October 15, 2024 @04:20PM (#41852695)
Let's also admit every language before Rust hasn't succeeded at out right replacing the vast majority of C/C++, so it becomes it's own form of conservatism/bias. This post is coming from one of the few companies that actually does complete large scale rewrites of things. I'm curious/excited to see how it goes for them.

And I have that C/C++ bias: I don't enjoy programming in rust as much as I do C, but I don't like doing lots of new things.

Re:Advancing Memory Safety by fiedzia on Tuesday October 15, 2024 @04:44PM (#41852907)
> Let's also admit every language before Rust hasn't succeeded at out right replacing the vast majority of C/C++,

Many languages expelled C/C++ from the domains they were once kings of entirely. It used to be "the language" for many, many things.

Re:Advancing Memory Safety by pjmlp on Wednesday October 16, 2024 @02:55AM (#41856292)
There is hardly that much C and C++ left on GUI frameworks and distributed computing, other than existing infrastructure from projects that are decades old.
Re:Advancing Memory Safety by hinkley on Tuesday October 15, 2024 @04:28PM (#41852770)
The amount of “we have garbage collection at home” from the C and C++ communities during the rise of Java is a big part of my hatred of C++. That and watching classmates spin out in C++ classes in college.
Re:Advancing Memory Safety by germandiago on Wednesday October 16, 2024 @07:08AM (#41857740)
There is RAII and it works well most of the time.

Saying C/C++ denotes your poor understanding of C and C++, which are usually quite different in style and with very different safety characteristics regarding to code written in good style.

Re:Advancing Memory Safety by whatever1 on Wednesday October 16, 2024 @10:41AM (#41859611)
Well most of the time programs don’t exhibit memory issues anyway. But as you said you are the only expert.