Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Demolishun34913267dI don't think anyone in the whitehouse knows anything beyond the name of the programming languages. Government can eat shit and die. They can't even balance a fucking checkbook and they want to influence technical decisions?
-
Hazarth9501267dTo be fair, if you can't get decent programmers, you might as well migrate to a higher language where less skill is necessary to keep everything at bay. Just something as simple as garbage collection and automatic memory management can simplify things significantly. You may lose some control and take performance hits... but I doubt the white house needs their code running on low grade hardware and to be power efficient... they can probably get whatever servers they need to run their bloated but functional and safe code
-
atheist9929267dUnless they can fucking code, they should shut the fuck up. You can write unsafe code in any language.
-
Demolishun34913267d@jestdotty now that you mention it, this sounds like a tech company telling them to influence this. Then the tech company can sell the "solution". Let me guess: Apple, Microsoft, and Google?
I am in a poor mood today. I didn't need retards in DC trying to politicize my profession today. Next up, how C++ causes global warming. We all know Javascript really does... -
retoor12022266dThis is said many years ago by NSA or smth. It kinda means they don't trust humans do the right thing. But as mentioned by @Demolishun, what about climate? I hope the climate craziness puts C back on track. It's the best
-
electrineer30343266d@Demolishun one of them was previously at Google:
She also served as the Head of Product Security Strategy Google after serving as the Lead for Security Policy & Election Integrity, Google Play & Android at Google.
The head seems to have a military background, though. -
lorentz15268266dC++ has ranges now for fast sequential algorithms, it's high time they introduce bounds checking for std::vector::operator[], which is a non-breaking change anyway.
-
lorentz15268266dThe title of the report is SOFTWARE SHOULD BE MEMORY SAFE, which is the most obviously true statement I've ever read in a government report.
There are multiple ways of working towards this goal, and every language has options. Even C can be memory safe, albeit at a vast expense of either performance or engineering work on static code analysis. -
lorentz15268266dC++ would have to invest relatively little effort to change the respective statement from "c++ is not memory safe" to "c++23 and lower is not memory safe". I don't expect it'll be done because the c++ designers are very conscious about design debt, but just saying; c++ being unsafe isn't a law of nature but a consequence of specific design decisions that can be changed between versions.
-
atheist9929266d@lorentz "can be changed between versions"
I'm still dealing with the breaking changes introduced in c++11. So breaking changes are not trivial and would take decades to be taken up everywhere. So what features would need to be added to make it memory safe? Not many. -
atheist9929266dIt's also not just design debt. It's performance. If you can make it faster in c, that's not going to be accepted in c++.
-
Demolishun34913266d@lorentz I agree on bounds checking. But let me guess, it breaks the ABI? That is part of the issue with some C++ libraries. Any fix breaks the ABI. So it is just as taboo to change as syntax.
-
Demolishun34913266dWe use C++ for embedded work. A lot of things you do in embedded is not memory safe. Like just setting a pointer to a hardware location.
I am not sure if C/C++ can still solve all problems without being able to do things like this. There would definitely have to be a concept of things that are more risky than others. Right now there is no delineation other than knowing the languages. -
Demolishun34913266d@atheist Rust has safe/unsafe code as far as I know. So you can bound the sketchy bits.
-
lorentz15268266d@Demolishun I can't imagine any usage of the ABI that is sensible now but breaks with a bounds checked vector. In general, vector is a managed datastructure and if you can make enough assumptions about it to safely index out of bounds then you already control the allocator and bypassing the vector would make more sense anyway.
-
lorentz15268266d@Demolishun It's clear that C++ needs a way to access raw memory for MMIO and stuff, and any abstraction is optional. I merely advocate that abstractions should use their knowledge of what is and isn't hidden state to reject commands whose safety hinges on hidden state.
-
Demolishun34913266d@lorentz ABI was the excuse why they couldn't fix std::regex. Something about everything being a template. I have not looked at std::vector though.
-
jestdotty5309266d@retoor figured out the climate change thing finally actually
https://rumble.com/v4g8f4l-climate-... (this woman comes off crazy to me but the math checks out) -
lorentz15268266d@jestdotty I think they're terrified because Israel used their defense money to do laps on the US in terms of cybersecurity. This report demonstrates the only way I know to improve defensive cybersecurity at scale; automated tools that make certain types of mistakes difficult or impossible.
-
lorentz15268266dFinding a buffer overflow in openssl is probably possible. Finding all buffer overflows certainly isn't.
-
retoor12022265d@lorentz it's freaking memory safe but the developer has some responsibility. So scary.
-
Demolishun34913241d@lorentz more eyes, realize, shit with flies. That is one of the strengths of open source.
Related Rants
White house urges Developers to move away from C/C++
I'm not sure what to think about it yet, but on the surface level, i think that makes sense.
https://infoworld.com/article/...
random
house
c
white
cpp