Category Archives: partial evaluation

Jeene: An automatic partial evaluator for JavaScript

The purpose of this posting is to show that is is possible to create an online partial evaluator for JavaScript, written also in JavaScript. As far as I know, this has been not been done before. This post is the … Continue reading

Posted in code specialization, instanceof, JavaScript, partial evaluation | Tagged , , | 3 Comments

Manual code specialization:a poor-mans partial evaluation in JavaScript

Recall the object function that Douglas Crockford is promoting in his work on prototypal inheritance in JavaScript: function object(p) { function F(){} F.prototype = p; return new F(); } The object function creates a new object which has the input … Continue reading

Posted in closures, code specialization, JavaScript, partial evaluation, performance, sharing | Leave a comment