Progress 11/14/2008
weekly_goals Tagged partial_evaluation, Ruby, weekly_goals No Comments »Slow progress this week. I can’t really point to anything inparticular, but I just had trouble getting focused and getting things done this week. Not having my MacBook Pro, also put me a bit off beat as I’m just so used to it as my development environment.
Fellowship Applications
I did finish up my fellowship applications, with the exception of getting information to my reviewers which I should get done tonight.
Ruby Partial Evaluator
I haven’t really made much progress on this, though I did get a chance to start working on this again a little today. In reflecting on it a little bit, I had mentioned treating calls to new special in two ways:
- We need to check the
initializefunction for the implementation, rather thennew - We can allow code in
initialize(or functions it calls) to set instance variables on the newly created object
The second condition here though, I think could be broader. Since any method call can potentially add a new instance variable, I think it may be helpful to maintain a hash of the defined instance variables for a given instance of a class, and always allow the first assign to go without counting it as a modification (since it is really just an extension of the object, rather then a modification of its state). I think this will give us more precise information, though it may make it a little more difficult to be precise about this, since it is not uncommon to have initializer methods other then new or methods that add new instance variables the first time they’re called.