[plt-scheme] Collect-Garbage not enabled on Dr. Scheme?

From: David Yrueta (dyrueta at gmail.com)
Date: Sat Apr 4 17:56:15 EDT 2009

David --
Thank you for the teachpack and the explanation.  Much appreciated!

Dave Yrueta

2009/4/4 David Van Horn <dvanhorn at ccs.neu.edu>

> David Yrueta wrote:
>> Thank you.  I'm not working on any of those platforms, just on Dr. Scheme.
>>  Can you explain to me what collect-garbage does?
> Hi David,
> I've attached a teachpack that makes collect-garbage available.  Save the
> file, open DrScheme, select Language > Add Teachpack ..., Add Teachpack to
> List... Navigate to the saved file and select it.  You should now be able to
> run your program.
> DrScheme will implicitly collect values that are no longer in use during
> the running of your program so that their memory can be re-used (this
> process is called "garbage collection").  This process takes time, so in
> order for your timings to be more accurate, you should explicitly cause this
> process to happen just before collecting timing information.
> David
> #lang scheme
> (provide collect-garbage)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20090404/8b4195a5/attachment.html>

Posted on the users mailing list.