You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closures currently copy the whole environment. (It's not quite as bad as it sounds, because an environment is a binding to a value plus a pointer to the parent environment.) But the expression in a closure does not require the entire environment, just a small number of variables that can be determined by analyzing the expression at compile time. Those variables should be converted into numbered 'slots', the slots are populated when the closure is created, and when the expression is evaluated, it should look to those slots for values.
The text was updated successfully, but these errors were encountered:
Closures currently copy the whole environment. (It's not quite as bad as it sounds, because an environment is a binding to a value plus a pointer to the parent environment.) But the expression in a closure does not require the entire environment, just a small number of variables that can be determined by analyzing the expression at compile time. Those variables should be converted into numbered 'slots', the slots are populated when the closure is created, and when the expression is evaluated, it should look to those slots for values.
The text was updated successfully, but these errors were encountered: