"Charlton Wilbur" <> wrote in message
news:...
>>>>>> "cr" == cr88192 <> writes:
>
> cr> after all, if no one really wanted GC, then Java and C# would
> cr> leave them out, and things like Boehm, and the endless other
> cr> custom GC frameworks, would simply not be used.
>
> Of course. *Someone* wants garbage collection. At times, even *I*
> want garbage collection. But you cannot go from that statement, which
> you have provided adequate evidence for, to your original claim that
> *most* programmers want garbage collection without a whole lot more
> evidence than you have thus far provided.
>
> I see enough benefits to having a memory management scheme that's
> completely deterministic and completely in the hands of the programmer
> that I don't want to see it go away as an option. And (as has been
> pointed out) the semantics of C make it very difficult to use a
> garbage collector that's implemented as a library; I think the
> effort's better spent elsewhere.
>
who ever said I wanted malloc to go away?...
I say, we have the GC, and we have malloc.
maybe they can share the same implementation, or maybe they dont.
in any case, I am not arguing that we abandon malloc and put everything in
the hands of the GC, rather, I argue, we have both options available, and
use each where it makes sense.
so, I argue for availability, and that it is a worthwhile option, not
mandatory usage, or even abandoning manual memory management approaches
(when it so happens that they make the most sense...).
for example, my new gc has a function, said, 'gcfree()', and what does it
do? it frees things. why? because freeing something ealier makes things a
lot faster than waiting for the heap to get full and the GC to reclaim it...
as for said "difficulty". I have used garbage collection in my projects for
many years, and have never had much difficulty with it (apart from dealing
with certain cases, such as a previous version of my GC, when used as the
core of a previous script lang, being too damn slow and having to collect
the heap too damn often...).
> Charlton
>
>
>
> --
> Charlton Wilbur
>