From: | Joachim Durchholz <joachim.durchholz@web.de> |
Newsgroups: | comp.compilers |
Date: | 13 Jul 2003 23:05:01 -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 |
Keywords: | storage, GC |
Posted-Date: | 13 Jul 2003 23:05:01 EDT |
Mark Alexander Wotton wrote:
> (Idle thought: seeing as the only way to create circular references is
> through mutable references in a strict language, or tying the knot in
> a lazy one, perhaps reference counting would be useful for a strict
> purely functional language.)
AFAIK, all such languages use mark-and-sweep collectors.
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".
Regards,
Jo
Return to the
comp.compilers page.
Search the
comp.compilers archives again.