We did stuff like this for simple matrices in Fortran and C, but I think it is generalizable to more problems than that.
And of course, I agree that most of the time no one really cares except HPC.
We did stuff like this for simple matrices in Fortran and C, but I think it is generalizable to more problems than that.
And of course, I agree that most of the time no one really cares except HPC.
Think of it at a smaller level.
Even optimizing, say, a single "trivial" function in a widely used library can have large effects overall.
I think the future of languages like haskell are bright in terms of performance, because they are so loosey goosey with what gets evaluated when, which gives language-aware optimizers a lot of meat to chew. An aggressive optimizer could turn out versions of the same code that run screaming-fast single-threaded, or that fully exploit massive parallel machines, or even version for all of those.