From: | "Stefan Monnier" <monnier+comp.compilers/news/@cs-www.cs.yale.edu> |
Newsgroups: | comp.compilers |
Date: | 17 Jul 2003 00:23:35 -0400 |
Organization: | Compilers Central |
References: | 03-05-211 03-06-015 03-06-054 03-06-057 03-06-078 03-06-106 03-07-023 03-07-037 03-07-066 |
Keywords: | GC, storage |
Posted-Date: | 17 Jul 2003 00:23:35 EDT |
> I'm not sure about the exact reasons. I could imagine that it's just
> a case of "reference counting is beneath contempt", or a case of
> "mark-and-sweep was measured to be just as fast as reference
> counting", or simply "we want to avoid the analysis overhead of
> assigning ownership to objects when writing our run-time system".
I guess it's the cost of the counter-per-object (such languages tend to use
a lot of very small objects, such as cons cells). Of course there are ways
to work around that as well, but a simple GC is pretty easy to code up.
Stefan
Return to the
comp.compilers page.
Search the
comp.compilers archives again.