3 ms·
1% faster?! And what do you mean by "most real-life problems"? HN is rather biased towards web development, so... C++ is used for real life problems from web
by berkut 11y ago
1% faster?!
And what do you mean by "most real-life problems"?
HN is rather biased towards web development, so...
C++ is used for real life problems from web browsers, to physics engines, fluid solvers, photorealistic renderers (in fact, pretty much all software used to make most visual effects CG for movies is in C++), autopilot systems, and pretty much everything in between.
And as yet, there's nothing else that comes close to allowing both high-level abstractions/encapsulations and low-level memory alignment/allocation/control as and when needed, which is important for high performance and memory efficient (bit packing, tagged pointers, etc) code.
- PythonicAlpha 11y agoWhat I meant was: I want to spent my time with the problems that I must solve, not with by programming language induced problems! When I really need speed, I always can implement single routines in pure C -- I don't need an STL abstraction for that, that feigns speed to the programmer, but in the end it does not give it to him, because he chose the wrong abstraction. It seems so easy: Just use the STL/std-c++ library and all your speed problems are solved -- but std-libraries do not make a bad programmer a good one -- instead, it creates programmers that invest their time in language specifics instead in data structures and algorithms. So bad programmers will be even worse in the end.
- anon4 11y agoAlso note that in systems such as those, that lean heavily on numeric computation, you'll see only a little bit of templated code, used sparingly, to make writing the rest of it easier. In fact you won't even see any deep nested class hierarchies.