tags:

views:

354

answers:

13

As far as I know, JavaScript is a general purpose language but mostly it is used for Web Applications.

I am curious to know whether anyone is using JavaScript for non-Web apps. Also, are there any tools available for non-Web application development?

+1  A: 

Yes, you have Javascript for example in Adobe Acrobat to customize PDF Files.

They are used in server-side projects too like Jaxer, a Javascript Server.

GmonC
+2  A: 

Sure! Since the newer javascript engines (like V8, Rhino and SpiderMonkey) have been around there's been work on 'Server-Side JS' (which can also be used just as regular shell apps, of course).

My 2 favorites are Narwhal and NodeJS.

As far as 'tools' I'd go with the old stand-by's vim and bash :)

thenduks
+1  A: 

Well, someone did write a Javascript OS (although it runs in the browser... but still, not your ordinary webapp).

Kaleb Brasee
That's pretty neat.
George Edison
+3  A: 

javascript can be used as a general purpose language, for instance you can write apps in JScript.NET on the .NET platform (though JScript isn't completely compatible with the javascript spec).

You can find some more uses outside of web applications here:

http://en.wikipedia.org/wiki/JavaScript#Uses%5Foutside%5Fweb%5Fpages

jspcal
A: 

JavaScript has been in use for a while outside of web applications. You can even obtain a parser for javascript and add it to your application if you want. Then you an add custom functions to the javascript engine and allow your users to use a scripting language from within your application.

Gabriel McAdams
A: 

Rhino is a JavaScript implementation written in Java that is not coupled to a browser: http://www.mozilla.org/rhino/

You could use it to build something server side.

CalebD
A: 

MongoDB (from "humongous") is a scalable, high-performance, open source, schema-free, document-oriented database. You interact with it via JavaScript. Documents are JSON blobs.

George
Documents are actually _BSON_ and JavaScript is only used for the shell via the embedded spidermonkey VM. The actual database has nothing to do with JavaScript.
thenduks
The actual database code has nothing to do with JavaScript. The query/maintenance interface to the database is JavaScript. You interact with the BSON via JavaScript (as if it was JSON).Arguing about code that's publicly available is weird.
George
+6  A: 

There's a reasonable list here: for example, it points out that Javascript can be (and is;-) used for the purpose of scripting such non-web apps as Photoshop and OpenOffice.org. On the same wikipedia page you'll find pointers to several stand-alone Javascript interpreters (i.e., ones that are not part of web browsers) and specs for making e.g. your Java non-web apps more easily scriptable by Javascript (via a Rhino-derived stand-alone interpreter).

Alex Martelli
A: 

htlmwithjavascript.hta (HTML Applications) files can be run on Windows to do scripting with the convienence of HTML formatiing. The Windows scripting engine also supports jscript.

fupsduck
A: 

Dashboard Widgets in Mac OS X?

fsb
A: 

javasxript ? no. its named ecmascript 262. they exist in many different apps

Falcon
A: 

Is there any way to create normal desktop applications using JavaScript? I've wondered this a long time.

isaiah
check titanium framework
Yar
+1  A: 

You can create local desktop and mobile applications using JavaScript with a number of Web Runtime platforms. They include:

Funkatron