[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Vectors as functions

On Friday, August 15, 2003, at 12:29 PM, Joe Marshall wrote:

> The biggest problem with first-class environments ala MIT Scheme
> is the introduction of new bindings at runtime.  If you introduce a
> new binding, the `lexical address' (frame and offset) of a variable
> cannot be statically determined and you have to do a deep search
> every time.  It absolutely destroys any sort of compiler optimization.

Actually it doesn't. In this case your variable lookup becomes the 
exact same problem as method lookup in Self, which has been 
successfully optimized.

--- james mccartney