3 ms·
That truth serum sure has a long list of memory vulnerabilities causing tremendous amount of damage. Come on, C is not an exceptional language from any point o
by kaba0 4y ago
That truth serum sure has a long list of memory vulnerabilities causing tremendous amount of damage.
Come on, C is not an exceptional language from any point of view. It just pretends that everything is a fast PDP-11, and thanks to the insane amount of work and mental gymnastics done by the compiler, it will output good code. It has shitty abstractability that hinders performance if anything (just look at the small string optimizations done by C++) and hurts maintainability and productivity. At least it should have a proper macro system, but preprocessor macros are just a disgusting hack.
It is if not outright a “bad language”, it should definitely be left behind outside of maintaining the litany of programs written in it, and one should start new programs in either managed languages (if absolute control over the hardware is not required), or at least in C++ or Rust.
- 1vuio0pswjnm7 4y agoInterpreters for popular languages such as Perl, Python, Ruby, etc. are all written in C. The original Go compiler was written in C. Even the people developing Rust used Flex and Bison when trying to formalise a grammar. The question is whether C is useful. For example, in building things from the ground up. Or vetting programmers. Another way to vet programmers is to observe how many negatives they try to cram into their sentences. For example, "Not being... doesn't... non-popular." If they are unable to make clear, concise, positive statements the same deficiency is likely to carry over to writing programs.
- 1vuio0pswjnm7 4y agoUNIX and C are still being taught at Stanford. https://web.stanford.edu/class/archive/cs/cs107/cs107.1222 https://web.stanford.edu/class/archive/cs/cs107/cs107.1222
- kaba0 4y agoNot being an exceptional language doesn’t make it non-popular. There is plenty of programs written in it and certain domains are simply 100% C (particularly operating systems)
- deleted 4y ago[deleted]