3 ms·
Keep in mind that since C++ is usually used for performance critical code, its compilers are often highly tuned and produce good code (see Intel's ICC for numbe
by nimrody 15y ago
Keep in mind that since C++ is usually used for performance critical code, its compilers are often highly tuned and produce good code (see Intel's ICC for number crunching code).
A less popular language - or one that is usually used for less-critical code - will suffer.
C++ wasn't always so fast. See Kernighan and Pike, "The Practice of Programming" for a simple example where Java surprisingly beats C++.
- cageface 15y agoTrue, but this is one of the reasons people choose to code in C++. The quality of tools & common libraries is as much a factor in language selection as the syntax and semantics of the language itself.
- nimrody 15y agoYou mean - "forced to use C++" :) I would love to use Digital Mars D or Scala for scientific applications if they had compilers/runtimes as good as C++. Perhaps one day the LLVM backend would be useful as a universal backend for many less popular languages.