D component programming is a joke (Was: Re: Component programming)

Walter Bright newshound2 at digitalmars.com
Thu Aug 1 14:43:00 PDT 2013


On 8/1/2013 2:35 PM, Brad Anderson wrote:
> How difficult would it be to make sure stuff like this gets inlined and
> optimized more thoroughly?  I'm very ignorant of compiler internals but it's
> kind of disheartening that LDC can't inline them well despite being a fairly
> good optimizing compiler.  Is this a frontend issue or a backend issue?

I don't know.

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).


More information about the Digitalmars-d mailing list