NJ5 said:
Yes, most languages are slower than C++. Of the most used languages, the only ones which are faster than C++ are C (or C++ without the object oriented part, which is basically C) and Assembly. |
C is not inherently faster then C++. In some compilers, C++ is converted to C before it's compiled. Fortran is faster then C or C++. Because it does not use pointers it's easier for the compiler to optimize the code. It can do a better job of predicting when it needs to fetch something out of memory, and how long to keep values in registers.
It's why a lot of people who do a lot of CPU intensive calculations still use it. (Like blast analysis algorithms that might take 2 days to run)
As to the OP, it’s been said here before, but to reinforce the point… the language is not important. Learning what OOP is, and why you would use it, along with programming algorithms is what you want to focus on. Once you know those things, you’re in good shape. There are dozens of good languages, and based on what you plan on doing, you will be using different ones.







