John Carmack applauds D's pure attribute

Peter Alexander peter.alexander.au at gmail.com
Sun Feb 26 11:59:54 PST 2012


On Sunday, 26 February 2012 at 15:48:13 UTC, so wrote:
> On Sunday, 26 February 2012 at 15:22:09 UTC, deadalnix wrote:
>
>> True, but the problem of video game isn't how much computation 
>> you do to allocate, but to deliver a frame every few 
>> miliseconds. In most cases, it worth spending more in 
>> allocating but with a predictable result than let the GC does 
>> its job.
>
> Absolutely! It cracks me up when i see (in this forum or any 
> other graphics related forums) things like "you can't allocate 
> at runtime!!!" or "you shouldn't use standard libraries!!!". 
> Thing is, you can do both just fine if you just RTFM :)

Of course you can do both just fine. It doesn't mean it's a good 
idea. There's also rarely ever any need to. It's not difficult to 
avoid allocating memory.


More information about the Digitalmars-d mailing list