Plan for D
Imperatorn
johan_forsberg_86 at hotmail.com
Sun May 16 10:22:02 UTC 2021
On Sunday, 16 May 2021 at 06:44:09 UTC, Ola Fosheim Grostad wrote:
> On Sunday, 16 May 2021 at 05:50:12 UTC, Mike Parker wrote:
>> Yeah, and...? dmd a very short-running program, and its
>> allocated memory is released when it exits.
>
> No, it isnt very short-running. And that is not a valid
> argument either, as the user may have other tasks that need the
> memory.
>
> To keep it short:
>
> Programs that acquire significantly more resources than needed
> are misbehaving. Never met anyone disagreeing with this view.
>
> Memory management is insignificant time wise if you have a
> solution suitable for systemsprogramming.
>
> If D does not have a memory management solution suitable for
> DMD, then D does not have a solution for systems level
> programming, yet...
>
> If this is difficult to accept, then there is no hope of
> improvements.
>
>> The GC is not a panacea. It's not suitable for every use case
>> or performance goal. And that's perfectly fine.
>
> If GC is suitable for anything system level, it would be a
> batch program like a compiler.
C'mon dude... How can you say with a straight face that dmd isn't
a short running process?
It's even hard to imagine a better real world example of a case
where it's ok to not free.
Also, if you want to you can use the lowmem switch?
More information about the Digitalmars-d
mailing list