[Off-Topic] John Carmack's point of view on GC and languages like JavaScript

rikki cattermole rikki at cattermole.co.nz
Thu Aug 11 14:03:55 UTC 2022


On 12/08/2022 1:54 AM, wjoe wrote:
>> All memory allocations are expensive and can fail, if you want 
>> performant safe code you have no choice but to prevent allocating memory.
>>
>> It does not matter what language you use, if you allocate you slow 
>> your code down.
> 
> Thank you. That's what I'm saying - or trying to say, at least.

Pretty much all programs have to allocate at some point during their 
lifecycle.

If you understand this, having a GC during points in it that don't 
matter about performance is fine and that is what people who use D in 
this sort of environment do.


More information about the Digitalmars-d mailing list