Walter Bright:
But consider that optimizers are built to optimize typical code
patterns. Component programming is fairly non-existent in C and
C++, and is new in D. Hence, optimizers are not set up to deal
with those patterns (yet).
I agree.
GHC also works with a LLVM back-end, so those optimizations are
done in some kind of middle-end.
Probably a silly idea: perhaps we can collect some money, like
1000-2000 dollars, to pay for a 3 day long course for Walter
(total about 15 hours) about such matters.
Bye,
bearophile