Re: Is garbage collection here yet?



Darren New schrieb:
Volker Hetzer wrote:
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?
Ok, to rephrase it, you let garbage accumulate.

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.


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,
It doesn't have to. It has to make sense in the Application. Right now we
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
.



Relevant Pages

  • Re: Interview with Alan Kay
    ... Well, Generational GCs are not garbage collectors, they are actually ... They collect live data, and leave the garbage. ... and thus collecting the live data is going ... pointers regardless of what page they were on. ...
    (comp.lang.lisp)
  • Re: Larry Wall, on Tcl
    ... Tcl, that is, not only of the facilities that the language provides, ... employ a generic garbage collection for Tcl. ... If the parent goes away and doesn't clean up these ...
    (comp.lang.tcl)
  • Re: Form not being garbage collected
    ... >From the code snippet you pasted, we could say there is no memory leak ... collecting to occur. ... you found that the main form of your app always not get garbage ...
    (microsoft.public.dotnet.framework.performance)
  • Re: Garbage collectable pinned arrays!
    ... As I understand it, pinning is an attribute of the *reference*, not ... it doesn't make sense for a pinned object to be garbage ... But collecting the object and ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Argument list too long (keep reading, its not the FAQ)
    ... > Are you sure your commands aren't collecting some garbage that adds to ... As I log the commands, I can check that there is no garbage ... wget's argument and start crawling. ...
    (comp.lang.perl.misc)