2 ms·
This is abject nonsense to the extent that I hope it is machine generated. Sufficiently carefully written C can execute without memory errors, in exactly the s
by JonChesterfield 2y ago
This is abject nonsense to the extent that I hope it is machine generated.
Sufficiently carefully written C can execute without memory errors, in exactly the same way that sufficiently carefully written assembly can be. That's not a memory safe language, it's a program which manages to not corrupt its own state.
There are compiler flags, sanitisers, static analysis, testing strategies and so forth to help one write something in C that doesn't fall over unexpectedly, but even with absolutely all of it implemented you still don't have a memory safe platform to build on.
- kelnos 2y agoYep. I'm so tired of articles like this. C is not a memory safe language. Full stop. "Don't write bugs" or "remember to use these arcane extensions and macros every single time" do not make C memory safe. Doesn't even make your code memory safe, because people aren't perfect and will make mistakes and forget things.
- deleted 2y ago[deleted]