(no title)
superluserdo | 2 years ago
What an elegant metric! Condensing a multivariate optimisation between compiler execution speed and compiler codebase complexity into a single self-contained meta-metric is (aptly) pleasingly simple.
I'd be interested to know how the self-build times of other compilers have changed by release (obviously pretty safe to say, generally increasing).
amelius|2 years ago
bunderbunder|2 years ago
That said, even if the exact heuristic Wirth used is no longer tenable, there's still a lot of wisdom in the pragmatic way of thinking that inspired it.
samus|2 years ago
hoosieree|2 years ago
kragen|2 years ago
teleforce|2 years ago
thesz|2 years ago
In short, compiler is not an ideal representation of the user programs it needs to optimize.
WJW|2 years ago
EDIT: typo in the last word but I'm leaving it in for obvious reasons.
Someone|2 years ago
But yes, it wouldn’t work well in a general context. For example, auto-vectorization likely doesn’t speed up a compiler much at all, while adding the code to detect where it’s possible will slow it down.
So, that feature never can be added.
On the other hand, may lead to better designs. If, instead, you add language features that make it easier for programmers to write vectorized code, that might end up being easier for programmers. They would have to write more code, but they also would have to guess less whether their code would end up being vectorized.