Re: Is garbage collection here yet?
- From: Volker Hetzer <volker.hetzer@xxxxxxxx>
- Date: Tue, 21 Mar 2006 13:55:27 +0100
Darren New schrieb:
Volker Hetzer wrote:Ok, to rephrase it, you let garbage accumulate.For me, GC has been the special case where you let memory leak and
clean up afterwards i.e. collecting the garbage.
Um. If you clean up afterwards, it's not leaking, right?
And if you're using reference counting, you're cleaning up right away. So I'm not sure what your distinction is.The time between the creation of the garbage and its collection.
More particularly, the time between me losing a reference to an object
and the time its destructor gets called. I want that destructor to be called
before the next line of tcl code gets excuted.
It doesn't have to. It has to make sense in the Application. Right now we
Since in tcl everything is a string I can (and want to) do all sorts
of things with return values, including parsing, copying to clipboard,
retrieving from there and so on. I wouldn't want tcl to accidentally delete
them because tcl and I disagree on when a handle becomes unreachable.
Yes. That's probably the biggest reason that GC isn't already in Tcl.
But my point is that putting references in a file and then reading them back in a later process, or sending them over a socket, just doesn't make sense in the usual modern OSes,
are doing something similar with tcom ActiveX object handles.
for the same reason that putting "file7" over a socket doesn't give the receiver access to the open file.Yes, but IMHO there the stupid stuff is well encapsulated away and doesn't
interfere with the rest of tcl. Any package can do handles. I don't see
an improvement with GC. As long as I can do [file channels] every opened
file is reachable.
Lots of Greetings!
Volker
.
- References:
- Is garbage collection here yet?
- From: jrw32982
- Re: Is garbage collection here yet?
- From: jrw32982
- Re: Is garbage collection here yet?
- From: Volker Hetzer
- Re: Is garbage collection here yet?
- From: Darren New
- Re: Is garbage collection here yet?
- From: Volker Hetzer
- Re: Is garbage collection here yet?
- From: Darren New
- Is garbage collection here yet?
- Prev by Date: Re: syntax for dict
- Next by Date: Re: Is garbage collection here yet?
- Previous by thread: Re: Is garbage collection here yet?
- Next by thread: Re: Is garbage collection here yet?
- Index(es):
Relevant Pages
|