Thread View: comp.sw.components
2 messages
2 total messages
Started by Dave Jones
Thu, 21 Sep 1989 21:16
Re: Re: Real-time Garbage Collection
Author: Dave Jones
Date: Thu, 21 Sep 1989 21:16
Date: Thu, 21 Sep 1989 21:16
22 lines
1466 bytes
1466 bytes
A very wise man once said, "Floating point representation is a mistake. If you don't know enough about the problem to scale the quantities, you don't know enough about the problem." May he rest in peace. He was martyred by an angry hoard of Fortran application programmers. If he had lived, today he might say, "Garbage collection is a mistake. If you don't know enough about the problem to free the unreferenced memory, you don't know enough about the problem." If I had lived, I probably would agree with him. I have some library packages, oops -- I meant to say "ADT's" -- which help. I can declare Stacks, which can be marked. Later you can deallocate all the memory above the mark in one very fast pop. That covers many many situations. I also have Heaps which contain blocks all of one size. Not only is it quicker than your typical malloc(), sometimes by a factor of several hundred, but if you are through with all the records in a Heap, just destroy the entire Heap. Both of these, like all my librar.. er ADT's, grow in size indefinitely, as required.
Re: Re: Real-time Garbage Collection
Author: Steve Tynor
Date: Fri, 22 Sep 1989 12:25
Date: Fri, 22 Sep 1989 12:25
20 lines
1322 bytes
1322 bytes
In article <8222@goofy.megatest.UUCP> djones@megatest.UUCP (Dave Jones) writes:
...
>If he had lived, today he might say, "Garbage collection is a mistake.
>If you don't know enough about the problem to free the unreferenced
>memory, you don't know enough about the problem."
>
>If I had lived, I probably would agree with him.
...
>all the records in a Heap, just destroy the entire Heap. Both of these,
>like all my librar.. er ADT's, grow in size indefinitely, as required.
^^^^^^^^^^^^^^^^^^^^^^^^^
I assume this was intended to be followed by a ":-)".
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
No problem is so formidable that you can't just walk away from it.
Steve Tynor
Georgia Tech Research Institute
Artificial Intelligence Branch
tynor@prism.gatech.edu
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads