[Off-Topic] John Carmack's point of view on GC and languages like JavaScript
wjoe
invalid at example.com
Thu Aug 11 13:54:40 UTC 2022
On Thursday, 11 August 2022 at 13:26:21 UTC, rikki cattermole
wrote:
>
> On 12/08/2022 1:20 AM, wjoe wrote:
>> I guess it's an ignorant point of view, but I don't see how
>> someone whose constraints for writing high-performance, and/or
>> real-time, and/or embedded/micro-architecture code, which
>> prohibits the use of a GC, would find D-Runtime/Phobos meeting
>> their requirements.
>
> There have been multiple users in this category of D who have
> successfully made production systems with the GC linked in.
I was referring to the "someone who has a constraint that
prohibits the use of a GC" part and my reasoning is that someone
with such a use case probably wouldn't find solutions in *Phobos*
meeting their demands because the result would be too
bloated/slow. And as such they would probably tailor their own
optimized solutions.
With no word did I claim that it's impossible to write production
systems in D with a GC linked in.
> 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.
More information about the Digitalmars-d
mailing list