News for hackers. Stuff that matters.
Re:Is C/C++ worth it? by Symmetry on Monday July 23, 2012 @08:22PM (#4283709)
Well, compilers can always look at what happens during the actual operation of a program and then use that information to redo the compilation better. That's a lot of effort, but it can make a big difference. For a while the Windows version of Firefox was noticeably faster than the Linux version because the people packaging it for Windows did this but the Linux packagers didn't.

See http://en.wikipedia.org/wiki/Profile-guided_optimization

Re:Is C/C++ worth it? by jfoutz on Monday July 23, 2012 @09:45PM (#4283904)
Maybe there will be two classes of applications. The elite, like browsers that are constantly fed data about how people use them, regularly updated so optimization is compiled right in; and the not so elite, that rely on per-run startup optimization for good performance.

IIRC gcc already links in a runtime system for recovering runtime type information about dynamic cast. It's not hard to imagine C++x20 (or whatever) including some kind of runtime optimizer.