2 hours ago, Lucrecious said:
I feel like this is a little bit of a dishonest take though. The reason C++ is industry standard has to do more with the dependencies on legacy C libraries and less so on performance.
"Dishonest" implies I'm lying. I simply disagree . For a long time Java and C# had horrible performance compared to C++. I bench marked them many times over the years. Java in particular was pushed very hard at the department I used to work in at intel, and programmers ended up pushing back mainly because of performance issues. It has more recently done a lot of catching up but it's still not there yet. Same goes with C#
Quote
You complaining about getting around the GC in C# is like complaining getting around dynamic variables in dynamic programming languages.
I don't complain about dynamic variables in many languages that use them, because they typically don't hurt the target usage. Requiring the use of a GC in a systems, or even applications programming language is constraint that effects how I can handle memory management and therefor can effect performance.
Quote
GC has been proven time and time again to only be negligibly slower than memory management for many problems
Proven by who? Even in C++ I rarely use the standard heap. Most of my memory management is done with a custom heap library I have built up over the years. Most of the time I'm using some flavor of slab allocation, where new gets inlined as a free list pop. Also if I don't need thread safety for a particular heap it's turned off. I don't think you have that level of control in C#.
Quote
C++ is really only needed when performance is an issue to begin with, otherwise it's not useful at all.
i.e. Cutting edge 3D games and other math intensive and mission critical software. It's all relative. If performance really isn't an issue we can write everything in Python.
If C# works for what you are doing then go ahead and use it. I'm certainly not telling anyone what language they should program in. However C++ still exists because there is a need for it.