Hi,
I'm the author of a project called djax, which I've just made public
at http://djax.mindcontroldogs.com/.
I use it in conjunction with Mochikit. Using the two together allows
you to do things like:
valueOf = function( array ){
for ( var i = 0 ; i < array.length ; i++ ) yield array[i] ;
} ;
function show( array ) {
forEach( valueOf( array ), function(x){
document.getElementById( "result" ).innerHTML += x ;
} ) ;
}
I also use the Mochikit tests as a javascript compatibility corpus.
>From the homepage:
Javascript is a pretty cool language. djax makes it better.
* djax is a language. djax is javascript + all the things you wish
javascript had.
* djax is a language translator. djax takes code written in a
javascript superset, and turns it into regular javascript that runs on
pretty much everything.
* djax is a bad backronym. djax is Dog Javascript And eXtensions.
djax sounds a bit like ajax.
So what do you get?
* Continuations. Suspend a javascript function anywhere, and start
it again later easily. Code synchronous ajax without locking the
browser. sleep().
* Threads. Execute long-running jobs in the background, while
animations run smoothly in the foreground. No browser lock-ups.
* Generators. Iterate over anything. Easily.
* Extended arguments. Variable-length arguments, keyword arguments,
default values. Without the pain of the arguments property.
* Compatibility. Any javascript function should still work fine
called from or translated through djax. Mochikit's self test passes
all tests after translation.
Soon to come
* E4X. XML right in your javascript.
* Array comprehensions. [ x for x in array if x == "too easy" ]
* Getters and setters. Maybe - these are hard.
* All the other cool stuff from javascript 1.7 that I wish I could
use but which only firefox supports.
Hamish Friedlander,
Mind Control Dogs
www.mindcontroldogs.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---