Re: Larry Wall, on Tcl
- From: Alan Anderson <aranders@xxxxxxxxxxxxx>
- Date: Sat, 15 Dec 2007 13:23:58 -0500
Oscar Fuentes <ofv@xxxxxxxxxx> wrote:
A GC system just manages
memory. This relieves the programmer of one nasty task, namely,
releasing data objects that are no longer needed.
If that's what GC means, then Tcl already has it. Every "data object"
in Tcl is a string. As soon as a variable goes out of scope, or if a
variable's value is modified to require a different amount of memory,
the Tcl interpreter releases the memory originally used. The garbage
collection is immediate, perfect, and unassailable.
But if that's all GC means, it seems rather a trivial thing to get all
worked up over. The label "garbage collection" to me implies something
a lot more involved than simply reclaiming the memory used by unneeded
data. I thought the whole point of GC was to determine *when* data
objects are no longer needed, so that they can be released without
explicit action by the programmer.
Another major advantage of GC is that it makes natural certain
programming practices, such as Functional Programming, with its
closures, functors, etc. and attaching data context to code in
general. This is a very important "feature" of GC.
I'll admit to being mostly ignorant on the fine points of FP. My
partially informed impression is that data is temporary, and doesn't
stick around when it's not needed. I'd imagine GC in such a case is
also immediate, and thus barely qualifies as GC the way I thought of it.
.
- Follow-Ups:
- Re: Larry Wall, on Tcl
- From: Darren New
- Re: Larry Wall, on Tcl
- From: Darren New
- Re: Larry Wall, on Tcl
- References:
- Larry Wall, on Tcl
- From: Bryan Oakley
- Re: Larry Wall, on Tcl
- From: tom.rmadilo
- Re: Larry Wall, on Tcl
- From: Bryan Oakley
- Re: Larry Wall, on Tcl
- From: tom.rmadilo
- Re: Larry Wall, on Tcl
- From: Darren New
- Re: Larry Wall, on Tcl
- From: Alan Anderson
- Re: Larry Wall, on Tcl
- From: Darren New
- Re: Larry Wall, on Tcl
- From: tom.rmadilo
- Re: Larry Wall, on Tcl
- From: tom.rmadilo
- Re: Larry Wall, on Tcl
- From: Darren New
- Re: Larry Wall, on Tcl
- From: Alan Anderson
- Re: Larry Wall, on Tcl
- From: Darren New
- Re: Larry Wall, on Tcl
- From: Óscar Fuentes
- Larry Wall, on Tcl
- Prev by Date: Re: Larry Wall, on Tcl
- Next by Date: Re: Tcl/Tk 8.5.0 Release Candidates
- Previous by thread: Re: Larry Wall, on Tcl
- Next by thread: Re: Larry Wall, on Tcl
- Index(es):
Relevant Pages
|