[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Vectors as functions
----- Original Message -----
From: "James McCartney" <firstname.lastname@example.org>
> So in other words Self is already doing what
> you are talking about and it is optimizing it.
> --- james mccartney
Self seems to maintain a dependency graph and code
cache so that it can re-compile on the fly when it's assumptions
have been proven wrong. So what it boils down to is
a tradeoff. If you want to allow arbitrary manipulations to
first class environments, you either don't optimize the variable
lookup, or you keep around a dependency graph.
According to Chambers' thesis, the dependency graph can
get quite large (it seems to usually be about 2-3 times
larger than the code space!)