Stefan Hundhammer wrote:
OK, thanks, that's a very informative site.
But according to the charts there, there is hardly any difference in performance, right? Sometimes even C/C++ appears to be faster.
Or am I reading those charts wrong?
No, though there may be other examples where F is actually faster, depending on the usual things, how it's compiled, what number-crunching is done etc. There are still F libraries such as ATLAS that are reputedly better than the C equivalent. OTOH, since C has the asm keyword, it's always technically possible to get C code to compile as fast as F. I've found that wring the number crunching stuff in C/C++ carefully often gives assembly output that I couldn't reasonably improve, albeit the style of the C/C++ tends to resemble F a bit. In the end, there's nothing in C/C++ that says it can't compile to run at least as fast as F, esp with the right optimisations (-march=pentium4 -O3 -mfpmath=sse -msse -msse2 -malign-double works for me!), though I think that's not always the point. Otherwise I wouldn't use java and python. ;-) -- JDL