[Fwd: Re: [go-nuts] Re: Generics false dichotomy]

ponce contact at gam3sfrommars.fr
Mon Feb 17 14:19:22 PST 2014


On Monday, 17 February 2014 at 17:03:46 UTC, Andrei Alexandrescu 
wrote:
> On 2/16/14, 12:09 PM, Russel Winder wrote:
>> Someone with serious knowledge should wade into this campaign 
>> of FUD.
>> The whole thread is wrong-headed.
>
> Thanks for mentioning this. It's an interesting thread. I 
> posted a response: 
> https://groups.google.com/forum/#!msg/golang-nuts/rxOz-QMyHr4/BbNR_H1zyKkJ
>
> Andrei

The fears about "slow code" are especially odd since ad-hoc 
templates are an important tool to force constant folding and 
many optimizations that requires inlining.

Moreover Go with first its class interface{} values will pay a 
heavy price in dynamic dispatch, something that is optional and 
not really "pay what you use".

Granted code bloat is a real thing and you _might_ have 
instruction cache problems, but the problem only ever show itself 
when the working set of code exceed the instruction cache 
capacity. Ie. a huge executable might not be a good predictor for 
reduced instruction cache efficiency.


More information about the Digitalmars-d mailing list