3 ms·
Unfortunately not, and I see it as a big downside of C where you can only learn about important corner cases with your own bitter experience, direct instruction
by baybal2 6y ago
Unfortunately not, and I see it as a big downside of C where you can only learn about important corner cases with your own bitter experience, direct instruction.
Advanced C usage remaining a black magic is not strength, it's weakness. This assures that attackers will always have a significantly stronger upper hand against industry's salaryman developers.
- junon 6y ago"Advanced C usage" can you explain this, please? What in C is so "advanced" that it's more black magic than C++ or Rust or any other high level language? With C, what you see is what you get. I don't see how that can possibly be black magic.
- baybal2 6y agoThe problem is that you don't see that much. Compiler these days optimise the code beyond human comprehension. Memory management libs, and what hardware does with your physical memory layout is inscrutable. Register level vulnerabilities are very much black magic for anybody, but silicon maker itself. Memory management libs used by any big C program add to complexity. Fancy runtime pointer, and ROP sanitation libs fix some types of vulnerabilities, and add another. And so, and so, and so. I am a big proponent of C, but will not hide that C needs substantial education beyond just programming to use properly, and safely.