Feedback from the Gripes and Wishes Campaign
Walter Bright
newshound2 at digitalmars.com
Sun May 28 07:02:53 UTC 2023
On 5/27/2023 6:40 PM, Steven Schveighoffer wrote:
> On 5/27/23 5:21 PM, Walter Bright wrote:
>> On 5/27/2023 11:26 AM, Steven Schveighoffer wrote:
>>> It's CTFE, nobody cares about memory leaks
>>
>> They do when it starts running very slow and/or runs out of memory
>
> But that's no different from today.
Yes, and people care about it.
>>> We don't run the GC at CTFE either.
>>
>> Yes, we do.
>
> We do?
Every time an allocation is made with the GC, the GC may run a collection cycle.
> In any case, migrating `malloc` calls to `new` and ignoring `free` should still
> be fine in this case.
That's how dmd used to operate, but people ran out of memory.
More information about the Digitalmars-d
mailing list