Speed of what? Development? Testing? Boot? Execution?When speed matters over everything else, which programming language would you recommend?
When speed matters over everything else, which programming language would you recommend?
Yes, there was an interesting and very long thread on the "Game Developers Algorithms" mailing list on this very subject, for example:But for practical general-purpose, single-threaded stuff I'd say C/C++, although Fortran has some advantages over them in terms of aliasing analysis (hell even Matlab can occasionally compile more optimal code than a similar implementation in C/C++ due to using much saner aliasing rules and value semantics). Fundamentally the aliasing rules in C/C++ are going to screw it over (and have already started to) in the parallel programming world, but it's still the best we have for now since the compilers are so mature.
Jim Tilander said:Now some people question the need to actually bother with stuff like this, and continue on casting like we programmed in C89. They will get bitten by the decent compilers that does perform the most basic optimizations. They will be very slow on in-order processor by nature of the compiler having no chance to figure out aliasing. Aliasing btw is the big reason why FORTRAN is 2x as fast as regular C89 in most of the cases. Aliasing a large reason why C99 came about and why C++ has the draconian rule 3.10.15. There is a *reason* why this all matters and that is speed.
Can you post a link to that thread? Assuming it publicly accessible ofcourse.