News for hackers. Stuff that matters.
Re:I stopped everything and started writing C again by seba_dos1 on Thursday March 13, 2025 @09:04AM (#43352888)
> It's hard to write correct C because the standard tooling doesn't give you much help beyond `-Wall`

I won't disagree that correct C is harder to write, but it's not 2005 anymore and standard tooling gives you access to things like asan, msan, ubsan, tsan, clang-tidy...

Re:I stopped everything and started writing C again by oconnor663 on Thursday March 13, 2025 @11:17AM (#43354210)
C-with-sanitizers is miles ahead of what C used to be, but just a couple weeks ago I ran into a dangling pointer bug that ASan doesn't catch. (Sidenote 5 here: https://jacko.io/smart_pointers.html) It seems like one of the big downsides of sanitizers is that they can't instrument other people's code, in this case the C standard library.