[racket] writing garbage collector in racket/scheme?

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Fri Oct 8 15:46:23 EDT 2010

If you are after an eduction, you can just make yourself a big array
and write a compiler / runtime system that uses that array instead of
calling 'cons'.

Shriram's PLAI has a module on garbage collectors that does this
extremely well (by taking away some of the annoying work and letting
you focus on the interesting bits, namely the gc algorithms and data
layout issues).


On Fri, Oct 8, 2010 at 2:41 PM, Joe Marshall <jmarshall at alum.mit.edu> wrote:
> On Fri, Oct 8, 2010 at 11:49 AM, YC <yinso.chen at gmail.com> wrote:
>> Hi all -
>> I have a rather curious question - is it possible to write a garbage
>> collector in a pointerless language such as racket/scheme?
> It is possible if the system provides a good API to the underlying
> memory architecture.  The Scheme standard does not specify or
> require such a thing, so there is no portable way to hook into the
> garbage collector.
> --
> ~jrm
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users

Posted on the users mailing list.