473,395 Members | 1,668 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Re: Partial evaluation in JavaScript

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
2 1539

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/
============================
Sep 30 '08 #2
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Nik Coughlin | last post by:
How can I partially update a page using javascript if javascript is available, but do a full update if it's not, using php?
3
by: Amit | last post by:
Greetings. How does one associate a integer variable to a non-type template parameter ? Is there anyway of doing it in an easy way using partial specialization ? so what I have is something to the...
2
by: thinkfr33ly | last post by:
I have a page that inserts a block of javascript dynamically into the page "Test.html". The inserted block, "Block A", then does a document.write of another script block "Block B". This script...
6
by: Justin Beasley | last post by:
Here is an answer for those who are looking for a keystroke evaluation script that works in Internet Explorer (IE 5.5, 6.0, 7.0 for PC--IE 4.0, 5.2 for Mac), Mozilla Firefox (Windows, Linux, and...
9
by: Gomaw Beoyr | last post by:
Two question about the "partial classes" (in the next wersion of ..NET). Question 1 ========== Will partial classes (in the next version of C#) have to be declared "partial" in ALL places. ...
16
by: pawel.pabich | last post by:
Hajo, I would like to have 2 my own partial classes. For example: Default.aspx.cs Default2.aspx.cs and they both will relate to Default.aspx page.
1
by: Veerle | last post by:
Hi, I have a web page and at the end of the page I have inserted some javascript that checks if Acrobat Reader plugin is installed. If it is not installed, I disable some elements (buttons,...
54
by: Rasjid | last post by:
Hello, I have just joined and this is my first post. I have never been able to resolve the issue of order of evaluation in C/C++ and the related issue of precedence of operators, use of...
39
by: Boltar | last post by:
Why does C do lazy evaluation for logical boolean operations but not bitwise ones? Ie: the following program prints "1 2" , not "1 1" under gcc main() { int a = 1; int b = 1; 0 && ++a;
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.