comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: newbie: can't read fast enough... :-)    memory leaks...
Date: Wed, 3 Sep 2014 21:29:18 +0200
Date: 2014-09-03T21:29:18+02:00	[thread overview]
Message-ID: <1k0faltm0llur.1oxkha2ciurb2$.dlg@40tude.net> (raw)
In-Reply-To: 15508226-3892-41b3-8c82-5f44eca527b5@googlegroups.com

On Wed, 3 Sep 2014 12:19:00 -0700 (PDT), gdotone@gmail.com wrote:

> is this why a garbage collector is not part of the language? well part of
> the standard? or because of syntax and semantics of the language leaks are
> rare?

I would say because the cure is worse than the disease. But this is my
opinion...

In particular, finalization under a collector is performed with no regard
to interdependencies of the collected objects. The property of being
"unreachable" is not enough to determine the correct order of finalization.

If some order is established using references, then the gates of hell
opens, hard references, weak references, cyclic references etc.

And should you have references already, a reference counting schema would
be as good as automated collection.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


  reply	other threads:[~2014-09-03 19:29 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-03  9:38 newbie: can't read fast enough... :-) memory leaks gdotone
2014-09-03 10:17 ` Pascal Obry
2014-09-03 10:48   ` G.B.
2014-09-03 15:50     ` Pascal Obry
2014-09-03 17:28     ` Robert A Duff
2014-09-03 17:36       ` Pascal Obry
2014-09-03 19:09         ` gdotone
2014-09-03 19:19           ` gdotone
2014-09-03 19:29             ` Dmitry A. Kazakov [this message]
2014-09-03 20:19         ` Robert A Duff
2014-09-03 19:19       ` Dmitry A. Kazakov
2014-09-03 20:31         ` Robert A Duff
2014-09-04  7:18           ` Dmitry A. Kazakov
2014-09-04  4:57   ` Brad Moore
2014-09-04  5:32     ` Jeffrey Carter
2014-09-04  7:23       ` Dmitry A. Kazakov
2014-09-04 14:23       ` Brad Moore
2014-09-04 15:36         ` Brad Moore
2014-09-04 18:28           ` Robert A Duff
2014-09-05  4:58             ` anon
2014-09-05  9:45               ` Simon Wright
2014-09-05 21:54                 ` anon
2014-09-06  6:28                   ` Simon Wright
2014-09-04 15:55         ` G.B.
2014-09-04 16:43         ` Jeffrey Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox