How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?
blog at rivadpm.com
Sat Aug 21 13:29:59 CEST 2010
On 21 Aug, 06:42, Standish P <stnd... at gmail.com> wrote:
> On Aug 20, 3:51 pm, Hugh Aguilar <hughaguila... at yahoo.com> wrote:
> > On Aug 18, 6:23 pm, Standish P <stnd... at gmail.com> wrote:
> > > On Aug 17, 6:38 pm, John Passaniti <john.passan... at gmail.com> wrote:
> > > > You asked if Forth "borrowed" lists from Lisp. It did not. In Lisp,
> > > > lists are constructed with pair of pointers called a "cons cell".
> > > > That is the most primitive component that makes up a list. Forth has
> > > > no such thing; in Forth, the dictionary (which is traditionally, but
> > > > not necessarily a list) is a data structure that links to the previous
> > > > word with a pointer.
> > > Would you show me a picture, ascii art or whatever for Forth ? I know
> > > what lisp lists look like so I dont need that for comparison. Forth
> > > must have a convention and a standard or preferred practice for its
> > > dicts. However, let me tell you that in postscript the dictionaries
> > > can be nested inside other dictionaries and any such hiearchical
> > > structure is a nested associative list, which is what linked list,
> > > nested dictionaries, nested tables are.
> > You can see an example of lists in my novice package (in the list.4th
> > file):http://www.forth.org/novice.html
> > Also in there is symtab, which is a data structure intended to be used
> > for symbol tables (dictionaries). Almost nobody uses linked lists for
> > the dictionary anymore (the FIG compilers of the 1970s did, but they
> > are obsolete).
> > I must say, I've read through this entire thread and I didn't
> > understand *anything* that *anybody* was saying (especially the OP).
> You didnt understand anything because no one explained anything
It indicates that you're asking a question that *you don't
I'm continually amazed that people come to Usenet, wikis, websites and
other fora and ask questions that even the most basic of research (and
a bit of care with terminology aka "using the right words") would show
to be confused. A quick scan of the available literature on garbage
collection and stacks, starting with the fundamentals, would surely
show you what you need to know.
> Admittedly, I am asking a question that would be thought
> provoking to those who claim to be "experts" but these experts are
> actually very stingy and mean business people, most certainly worse
> than Bill Gates, only it did not occur to them his ideas and at the
> right time.
What surprises may is that anyone bothered to answer, as your question
was neither "thought provoking" nor in need of attention from an
expert. Their generosity in the face of so much stupidity stands out
More information about the Python-list