By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,850 Members | 1,962 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,850 IT Pros & Developers. It's quick & easy.

Re: Partial evaluation in JavaScript

P: n/a
Erwin Moller wrote:
>

Hi Karl,

I checked your site: http://code.google.com/p/jeene/
It is not clear to me what it is you are building.
I do not want to lessen your enthousiasm, but what is the point of the
project?
Don't worry other people have already done that ;-)

The point of the project is to build a program specializer (= partial
evaluator). In the case of Jeene, a program specializer takes as input a
general function of several parameters and produces a specialized
function of fewer parameters by fixing the values of some of the
parameters. The point being that the specialized function is often much
more efficient.
The HTML tag was just an example to illustrate the flexibility and
efficiency aspects.

Was that helpful?
--
/Karl
Sep 30 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a

Karl Tikjb Krukow schreef:
Erwin Moller wrote:
>>

Hi Karl,

I checked your site: http://code.google.com/p/jeene/
It is not clear to me what it is you are building.
I do not want to lessen your enthousiasm, but what is the point of the
project?

Don't worry other people have already done that ;-)
Ah good.
I hate being negative when somebody starts with a new initiative.
>
The point of the project is to build a program specializer (= partial
evaluator). In the case of Jeene, a program specializer takes as input a
general function of several parameters and produces a specialized
function of fewer parameters by fixing the values of some of the
parameters. The point being that the specialized function is often much
more efficient.
The HTML tag was just an example to illustrate the flexibility and
efficiency aspects.

Was that helpful?
Partial. ;-)

Could you give us a more real life example where Jeene could be helpful?
I already told you why your earlier example was little convincing (for me).

Regards,
Erwin Moller
--
============================
Erwin Moller
Now dropping all postings from googlegroups.
Why? http://improve-usenet.org/
============================
Sep 30 '08 #2

P: n/a
I guess what Karl plans to implement is something like Default
Arguements in C++ and PHP.

for example, we have this base method at first:
function baseMethod(arg1, arg2){
alert("This is a base method with arg2 is " + arg2);
}

now, if I invoke it like this:
baseMethod("value of arg1");
it will popup "This is a base method with arg2 is undefined" (in IE).

as for Karl's solution, now i can create another "extend" method:
var extendMethod = baseMethod.specialize({arg2: "default value of
arg2"});

then, invoke
extendMethod("value of arg1");
the popup msg becomes "This is a base method with arg2 is default
value of arg2".

But at least now, i didnot see large valuable thing in it.
maybe i've missed something, please correct me, karl

thanks
luke

Erwin Moller wrote:
Karl Tikj�b Krukow schreef:
Erwin Moller wrote:
>

Hi Karl,

I checked your site: http://code.google.com/p/jeene/
It is not clear to me what it is you are building.
I do not want to lessen your enthousiasm, but what is the point of the
project?
Don't worry other people have already done that ;-)

Ah good.
I hate being negative when somebody starts with a new initiative.

The point of the project is to build a program specializer (= partial
evaluator). In the case of Jeene, a program specializer takes as input a
general function of several parameters and produces a specialized
function of fewer parameters by fixing the values of some of the
parameters. The point being that the specialized function is often much
more efficient.
The HTML tag was just an example to illustrate the flexibility and
efficiency aspects.

Was that helpful?

Partial. ;-)

Could you give us a more real life example where Jeene could be helpful?
I already told you why your earlier example was little convincing (for me).

Regards,
Erwin Moller
--
============================
Erwin Moller
Now dropping all postings from googlegroups.
Why? http://improve-usenet.org/
============================
Oct 1 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.