After a enjoyable weekend I continued with the project. I complete google mid term survey and continued with the algebra optimization. I face with a problem where I was unable to run commands from the terminal to run the tests. It was because I used latest eclipse version and update the subclipse. I am using 1.4.6 of svn but new eclipse seems to be touched with 1.5 svn. We can look in to the first character in the .svn/entries to check the current version of svn using. I tried to use a patch given to overcome this. But since it doesn't work for me I downgrade the eclipse version to 3.2, since it is too simple. The patch is given in here[1].
Then I spent some amount to add a recursion tree to the algebra optimizer script. Since I have used children variable in class level, my recursion part loop forever. It was because mutables like list, we can only work with the only instance. So the recursion loop execute for long iterations until it reach maximum. I got mentor's help to identify the problem. So it can be solved by adding setting the variable in the object initiation[2].
[1]
http://durin42.blogspot.com/2008/03/setuptools-and-subversion-15.html[2] svn//svn.zope.org/repos/main/Sandbox/adamg/ocql/branches/optimize-with-index/src/ocql/rewriter/algebra.py
4 comments:
Go through with algebra optimization. I add code in to suitable places to check how the implementation fit in there according to the required change.
That lead to get to know some important facts on both project and Python.
I check in implementation I did and reviewed by the mentor. He suggest me the improvements.
I list out the thing need to be done in the next two weeks since mentor is on leave. I did it early because I can have some study and ask him questions.
Then we tried to setup the code coverage of the project. But it doesn't give all the results for the tests.
I discussed deep in to the algebra optimization yesterday. So I started on implementing tree-pattern matching, where I need to match some parts of the algebra tree and replace them with simple tree part.
Try on modifying the algorithm for XML[1] for this requirement
[1] http://www2.cs.uregina.ca/~jtyao/Papers/Wr2256_Yao.pdf
I almost complete basic algebra optimization by replacing a specific pattern in the algebra tree. Still need to do some modification to make the changed tree to be used by other components. And also need to modify the code to work for a generic given pattern. Now it works for a simple specific pattern. I guess I would be able to figure it down by going through the other tasks of the project.
Post a Comment