Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript as a general purpose language?

Tags:

javascript

In a weekend geek seminar I attended, several instructors extolled the virtues of Javascript. I've used Javascript to some extent, but their enthusiasm caused me to want to step a little closer.

I've learned bits-and-pieces about Rhino & SpiderMonkey. I know about server-side scripting & the restrictions placed on local file access (and the reasons why).

I wondered if Javascript would ever take it's place alongside perl and python as a general purpose language? Not b/c there is any lacking in the languages that exist, but simply for those skilled in its use to broaden the scope of their reach.

I'm not so interested in a prediction of the future as I am about the current possibilities, the barriers in the way, and what's on the near-term table that might make this more of a reality.

Are some of you perhaps using the language in such way now? Shell scripting, local apps, etc.?

If so, how are you working around the issues of local file access and other things, such as databases?

like image 493
Kawili-wili Avatar asked Oct 18 '10 17:10

Kawili-wili


People also ask

What is the purpose of JavaScript language?

JavaScript is a scripting language that enables you to create dynamically updating content, control multimedia, animate images, and pretty much everything else.

What is general-purpose language?

A general-purpose language is a computer language that is broadly applicable across application domains, and lacks specialized features for a particular domain. This is in contrast to a domain-specific language (DSL), which is specialized to a particular application domain.


1 Answers

Server-side Javascript doesn't have the restrictions on file access that client-side Javascript has.

Look at the node.js project for some inspiration.

like image 67
Pointy Avatar answered Oct 18 '22 18:10

Pointy