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

Brad Anderson eco at gnuk.net
Thu Aug 1 14:35:13 PDT 2013


On Wednesday, 31 July 2013 at 22:23:54 UTC, bearophile wrote:
> <snip>
> Currently this code inlines nothing (the allocations, the 
> difference and the product):
>
> <snip>
>
> If you write it in component-style (using doubles here):
>
> <snip>

Resident compiler guys,

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?


More information about the Digitalmars-d mailing list