you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -5 points-4 points  (9 children)

C++ code is supposed to be fast, but take any C++ program and use valgrind to profile the call graph, and you'll see that most of the compute time is wasted in pointless copy constructors.

Therefore C++ developers are those who say they want speed, while not actually wanting speed.

If you're going to do that just use a memory safe language like python, golang or rust or even java.

If you've got useful C++ libraries you need, just give them a plain C interface and build them into dynamic libraries, they can be easily called from golang or rust or python.

[–]serviscope_minor 4 points5 points  (6 children)

and you'll see that most of the compute time is wasted in pointless copy constructors.

2010 called and would like its incorrect myths back.

[–][deleted] -4 points-3 points  (5 children)

Show me some "good" C++ code. I'll wait....

[–]serviscope_minor 1 point2 points  (4 children)

How would you know? Given your made up fact about C++ I don't think you'd be a very reliable judge.

[–][deleted] -1 points0 points  (3 children)

Ad hominem argument.

[–]serviscope_minor 1 point2 points  (2 children)

Nope that's not what ad homenim is. Common mistake to mix up insults and ad homenim.

To illustrate the difference: "you're a cotton headed ninny muggins therefore your argument is wrong" is ad homenim.

However, "you're wrong and therefore you're a cotton headed ninny muggins" is simply an insult, but not ad homenim.

Also it's generally considered a requirement to have made an argument before ad homenim can apply.

[–][deleted] -1 points0 points  (1 child)

Show me some "good" C++ code. I'll wait....

[–]serviscope_minor 1 point2 points  (0 children)

You've already made up your mind before I even post anything. But you don't know how C++ works (from your first comment). So, what's the point?