Archive for October, 2010
‘Structure and Interpretation of Computer Programs’ (also known as the ‘Wizard’ book), I went through the concept of ‘Metacircular Evaluator ‘ in the fourth chapter of the book ,where a ‘language interpreter’ for lisp is implemented and language used for
- A complex procedure is evaluated by splitting it up into simpler subexpression which can be evaluated and the value is applied to the operand subexpression.
- 2) A compound or user defined procedure is evalauted in a new environment, which can be created by extending the current environment by adding a frame.
The Core of the Evaluator
The two main procedures in the evaluation processs are ‘eval‘ and ‘apply’ .
- ‘eval’ procedure is responsible for evaluating an expression in it’s environment. This procedure takes the expression and the environment as input parameters. It is this function where the determination of type of expression is done and the corresponding action is invoked.
- ‘apply’ procedure takes the operation and the parameters as the input and it applies the operation to it. This procedure diffrentiates between a primitive procedure to apply the primitives and a compound procedure , the body of whose is evaluated sequentially.
For using Valgrind the program has to be compiled with ‘-g’ option
Hiii Guys!!! I m back to the blogging world . . after a long break .
Last month I brought a new Dell n series laptop and installed Ubuntu Lucid Lynx 10.04 on it . To tell about my experience with it (Lucid Lynx) so far. . . hmm. . . . nothing but.. ‘GREAT’. I found it easy to use and for the first time in my experience with linux systems I found a fully featured and a complete no-hassle desktop .With boot time improved noticeably from the previous versions of the same….. Lucid Lynx seems to give other linux distros a tough competetion .
This time this blog promises of bringing more geeky technical stuff …hope that everyone finds it interesting .