HNHacker News
TopNewBestAskShowJobs

someuser0123091

1 karma · joined March 16, 2024

submissionscomments
someuser0123091··on Algorithms for Modern Hardware
Does anyone know if there is any research around designing a compiler + language that produces optimal code? Besides superoptimization that is.

Specifically, in what way should a language be designed to aid the compiler in finding the optimal code?

For example for the matrix multiplication, why can't the compiler find the optimal code? Why are BLAS written in assembly for each CPU architecture? Isn't this a question of having a high level CPU spec (how many ports, instruction latency, throughput) and then using a constraint solver to find the optimal code?