4 ms·
Since when is C the most performant? One can’t even write a performant generic vector with it. C++ is the de facto language used for hight performance.
by kaba0 3y ago
Since when is C the most performant? One can’t even write a performant generic vector with it.
C++ is the de facto language used for hight performance.
- remram 3y ago"One can't even write a performant garbage-collected function in C++" You're describing features not performance.
- kaba0 3y agoSo how do you write programs without data structures? You copy paste some implementation and modify it slightly at every use site? Possible optimizations depend on the semantics of the language — C++ can do just orders of magnitude more with for example a string data structure, than what is possible with a C “string”. So no, C is not the most performant language in general — de facto C++ is used for everything performance critical.
- remram 3y ago> You copy paste some implementation and modify it slightly at every use site? Yes, or use macros. Not saying it's the most convenient, but that's an orthogonal concern. You wouldn't say hand-written assembly isn't performant, so your objection strikes me as wrong.