Re: Is int faster than byte/short?

2011-05-01 Thread Steven Wawryk
This is a good point. Further to that, keep in mind locality of reference, ie the performance impact of data getting pushed out of the caches. While using machine word size variables for a small number of variables that really need high performance can give a small speed-up, using them exte

Re: static variables for non-constant expressions?

2011-04-11 Thread Steven Wawryk
On 12/04/11 07:36, Simon wrote: On 11/04/2011 22:15, Stewart Gordon wrote: On 11/04/2011 02:37, Jonathan M Davis wrote: I don't know the background of how static variables really work, so is there a good reason why the first function can't work like the one below it? They have to be calculat

Re: Container access in std.container

2011-03-28 Thread Steven Wawryk
Your environment looks wrong. Note that /usr/lib/gcc/x86_64-linux-gnu/4.3.5/../../../../include/d/4.3.5 is equivalent to /usr/include/d/4.3.5 so I expect it can't find container.d On 29/03/11 04:54, Ishan Thilina wrote: I am using DGC due to the problems I'm witnessing with DMD. I tried a

Re: Opt-out polymorphism?

2011-02-13 Thread Steven Wawryk
Generalizing the original question to *all* member functions, it can be desirable to to have non-polymorphic inheritance, at least not *runtime* polymorphic. I get the impression that it wouldn't be used much by most people who post on these newsgroups, but there are application areas it can