2 ms·
Many things on a Linux system is written in C, and despite the noise on HN, developers who gets stuff done are constantly writing new code in C all the time.
by rwmj 5y ago
Many things on a Linux system is written in C, and despite the noise on HN, developers who gets stuff done are constantly writing new code in C all the time.
- pjmlp 5y agoIncluding plenty of new CVEs, we have to keep the security industry job market safe.
- rwmj 5y agoSure, I'm certainly not arguing that C is a good language. In RHEL we turn all warnings on, compile everything with hardening flags, use valgrind during development, and feed everything through Coverity.
- pjmlp 5y agoThe exception that confirms the rule.
- rossy 5y agoThe exception? It's standard practice for distros to compile with hardening flags, and if RH submits the bugs they find with Coverity upstream, that protects the 1000s of C projects they package.
- pjmlp 5y agoStandard practice they say, https://googleprojectzero.blogspot.com/2021/12/this-shouldnt-have-happened.html https://googleprojectzero.blogspot.com/2021/12/this-shouldnt...
- torstenvl 5y agoMozilla is not a Linux distro. You have made dozens of negative (and sometimes rude) comments in this thread. I'm curious why you're spending so much time and energy being negative. If C isn't something you're interested in, why not just ignore it and move on?
- tialaramex 5y ago> Mozilla is not a Linux distro. That's true. But should I interpret this to mean, "All that stuff about how careful we are doesn't actually apply to any third party software, we only do that for code we wrote" ? Because the thing about a Linux distro is that it's overwhelmingly third party software. If that stuff does apply to NSS, then all that hard work apparently missed this pretty serious bug that could not have happened in a safe language.
- pjmlp 5y agoC powers lots of junk where I as a user don't have a choice other than put up with security mitigations. Being rude, yeah that is how people defend themselves when reality doesn't check.
- axiosgunnar 5y ago> In RHEL we turn all warnings on, compile everything with hardening flags, use valgrind during development, and feed everything through Coverity. Surely the compile time is not 100ms anymore then?
- diegocg 5y ago> developers who gets stuff done are constantly writing new code in C all the time. The amount of new C projects being created is falling at a fast rate. C isn't going anywhere, but it's certainly losing rapidly its prominence in the systems programming area.
- rwmj 5y ago[citation needed]
- pjmlp 5y agoYou can start by C compilers nowadays written in C++, Arduino, AUTOSAR security standard, CUDA, DirectX, Metal, GoDot, Vulkan helper libs, SYSCL, ...
- phendrenad2 5y agoThose are just headlines, is there any evidence that those are actually overtaking C, and that the C++ used isn't just "C style C++"?
- pjmlp 5y agoDoesn't matter, if the code doesn't compile on a C compiler, it is C++.