views:

477

answers:

5

Are there any good JavaScript frameworks out there which primary audience is not web programming? Especially frameworks/libraries which improves the object orientation? The framework should be usable within an desktop application embedding a JavaScript engine (such as Spidermonkey or JavaScriptCore), so no external dependency are allowed.

A: 

Objective-J(avascript) is one. Is that the kind of thing you are looking for?

Robert Gould
Not really. I'm just looking for a framework, not another language.
Johan Dahlin
A: 

The most widely known one is XULRunner from Mozilla. This is framework that FireFox and Thunderbird are built on.

https://developer.mozilla.org/en/XULRunner

Although not strictly javascript only, it incorporates a host of technologies closely tied to web for the purposes of building desktop applications.

Osseta
I'm actually using the javascript engine (spidermonkey) from xulrunner, but I don want the rest of the technoligies related to firefox such as gecko,xpcom,xpconnect etc. I have my own replacement for those.
Johan Dahlin
A: 

Have you looked at Adobe Air? It allows you to use JavaScript/AJAX to write Desktop applications.

http://www.adobe.com/products/air/

Chris Pietschmann
Not interested in web stuff. Besides, is air really free software?
Johan Dahlin
You never mentioned 'free' Johan.
OscarRyz
+4  A: 

As far as "improving object orientation" goes, Javascript is already great. You just need to get used to thinking in prototypes instead of classes.

After reading Douglas Crawford's great page on prototypal inheritance I really started to enjoy working with javascript. (He also has a page on class inheritance if you must use classes.)

Edit: If by asking for a framework you also mean, helpful libraries that don't use the DOM, you might be interested in Functional Javascript.

Matthew Marshall
Well, Javascript as a language is rather chatty, at least for me who is coming from a python background. A framework to reduce the amount of typing needed would be great.
Johan Dahlin
I'm a Python user too, so I know what you mean :)For me the biggest pain in javascript is the for loop, but the Functional library mentioned in my edit *greatly* helps that.
Matthew Marshall
+3  A: 
Eugene Lazutkin