4 ms·
I have no doubt it must have been easier programming in go. My question was on resource efficiency. I doubt anyone programs in C++ for fun anymore :-). The issu
by npalli 13y ago
I have no doubt it must have been easier programming in go. My question was on resource efficiency. I doubt anyone programs in C++ for fun anymore :-). The issue with toy problems you can write a vanilla python or perl program that processes text faster than C++ (without extensive fiddling) however the memory and CPU utilization can be 5-10 times higher. This doesn't matter on a single box for toy problems, but matters when you have an infrastructure costs of Google that run into the billions.
- jff 13y agoEverybody talks about using C++ for efficiency, but the way most people end up writing C++? Not very efficient.
- pjmlp 13y agoBecause many try to write C in C++, instead of learning how to do it properly.
- RyanZAG 13y agoI think you'd have to agree that C++ does not make it easy to learn how to do it properly, and nor does it make it easy to actually do it properly. Go at least makes it far easier for most programmers to do an acceptable job which has to count for something.
- pjmlp 13y ago> I think you'd have to agree that C++ does not make it easy to learn how to do it properly, and nor does it make it easy to actually do it properly. I know C++ since 1993. Having used it alongside many other programming languages and followed quite closely the standardization process in "The C++ Report" and "The C Users Journal", latter named "The C/C++ Users Journal". I only used C instead of C++ when forced to do so. Yes it is a complex language, requiring a good background in programming languages to use it properly, but so are quite a few other languages that provide a similar set of abstractions. > Go at least makes it far easier for most programmers to do an acceptable job which has to count for something. True, although in a similar way as Java 1.0 was a better C++, however we are no longer in 1995.