简体   繁体   中英

Javascript, V8, resources

I've been learning a lot of Javascript lately, and I'm amazed by the expressive power of the language (as well as annoyed by some of its quirks, but no language lacks those). I want to start using it more.

I'm svn co ing V8 as I write, and wanted to know what good resources are out there to consider. Is there some sort of standard library? What should I look at?

How feasible is it to take javascript as a desktop scripting language, for those one-time scripts I usually write in python?

I didn't even get started yet, so I might have missed a vital question. Is there anything else I should know, or think about?

I know this is a pretty broad question, aimed at nowhere in particular, so thank you very much for your time!

You may be interested in CommonJS which is pretty much the closest thing the Javascript community has to a "standard library". From that page:

With CommonJS-compliant systems, you can use JavaScript to write:

  • Server-side JavaScript applications
  • Command line tools
  • Desktop GUI-based applications
  • Hybrid applications (Titanium, Adobe AIR)

If you want a fully functional environment based on javascript that has access to things like the filesystem, network (udp, tcp/http), and the like, I'd recommend looking at node.js -- http://nodejs.org/

Its uses v8 and is actively developed by Ryan Dahl and the core team, and is backed by Joyent -- http://www.joyent.com/ .

Its got a fantastic community (come on over and say hi on irc at #node.js on freenode) and something like 10 modules or more published a day on http://npmjs.org/ package manager.

Also, I'll point out that while the node was originally looking at CommonJS in terms of direction, they've since pretty much entirely split away from that community. Its got its own module system and apis. Some overlap, but compliance is not a goal of the project at the moment.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM