[gambit-list] object->u8vector as tree shaker?

Bradley Lucier lucier at math.purdue.edu
Sat Apr 19 22:22:46 EDT 2014


On 04/19/2014 10:08 PM, Marc Feeley wrote:
>
> On Apr 19, 2014, at 9:37 PM, Bradley Lucier <lucier at math.purdue.edu> wrote:
>
>> Marc:
>>
>> It's not quite clear to me what object->u8vector does with procedures.
>>
>> I was thinking that if it pulled in all the functions not in system libraries, then it could be used as a tree-shaker.
>>
>> This is only a vague thought, but I find its interesting.
>>
>> Brad
> Interpreted and compiled procedures are serialized differently.  The interpreter is rather lazy and procedures will close over all of the lexical environment at the site of the lambda.  The interpreter is smarter and will close over the non-global free variables.  Note that in both cases the global environment is never closed over.

One of these behaviors must be for the compiler.

How hard would it be to modify this to implement a tree-shaker?

Brad



More information about the Gambit-list mailing list