Why many programmers don't like GC?
H. S. Teoh
hsteoh at quickfur.ath.cx
Fri Jan 15 16:49:06 UTC 2021
On Fri, Jan 15, 2021 at 04:22:59PM +0000, IGotD- via Digitalmars-d-learn wrote:
[...]
> Are we talking about the same things here? You mentioned DMD but I was
> talking about programs compiled with DMD (or GDC, LDC), not the nature
> of the DMD compiler in particular.
>
> Bump the pointer and never return any memory might acceptable for
> short lived programs but totally unacceptable for long running
> programs, like a browser you are using right now.
>
> Just to clarify, in a program that is made in D with the default
> options, will there be absolutely no memory reclamation?
We're apparently cross-talking here. A default D program uses the GC,
as should be obvious by now. DMD itself, however, uses bump-the-pointer
(*not* programs it compiles, though!). The two are completely
unrelated.
T
--
Let X be the set not defined by this sentence...
More information about the Digitalmars-d-learn
mailing list