Subject: Re: Dynamic function generation, HOW?
From: rpw3@rpw3.org (Rob Warnock)
Date: Sat, 07 Oct 2006 05:59:50 -0500
Newsgroups: comp.lang.lisp
Message-ID: <UqOdne94b7k7FbrYnZ2dnUVZ_tudnZ2d@speakeasy.net>
<sankymoron@gmail.com> wrote:
+---------------
| I am very facinated by the fact that lisp can generate functions on the
| fly.  But what facinates me even more is where is this chunk of code in
| the form of a new function allocated? on the heap, or on the stack, ...
+---------------

On the heap.

Or rather, in one of the heaps, depending on how your specific
implementation's GC works. That is, there might be a heap for
code that is different for the heap used for conses, say.
Or code might go into a (sub)heap that uses mark-and-sweep GC
instead of 2-space-copying, to avoid the need for code
relocation at GC time. That sort of thing.


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607