JavaScript、V8、资源
我最近学习了很多 Javascript,我对这种语言的表达能力感到惊讶(也对它的一些怪癖感到恼火,但没有一种语言缺乏这些)。我想开始更多地使用它。
当我写这篇文章时,我正在 svn coing V8,并且想知道有哪些好的资源可供考虑。有某种标准库吗?我应该看什么?
对于我通常用 python 编写的一次性脚本,将 javascript 作为桌面脚本语言有多可行?
我还没开始,所以我可能错过了一个重要的问题。还有什么我应该知道或思考的吗?
我知道这是一个相当广泛的问题,没有什么特别的目的,所以非常感谢您抽出宝贵的时间!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能对 CommonJS 感兴趣,它几乎是 Javascript 社区最接近“标准库”的东西。从该页面:
You may be interested in CommonJS which is pretty much the closest thing the Javascript community has to a "standard library". From that page:
如果您想要一个基于 javascript 的功能齐全的环境,可以访问文件系统、网络(udp、tcp/http)等内容,我建议您查看 node.js -- http://nodejs.org/
它使用 v8,由 Ryan Dahl 和核心团队积极开发,并得到 Joyent 的支持 -- http://www.joyent.com/。
它有一个很棒的社区(过来在 freenode 上的 #node.js 上的 irc 上打个招呼),每天在 http://npmjs.org/ 包管理器。
编辑
另外,我要指出的是,虽然该节点最初是在方向方面考虑 CommonJS,但此后他们几乎完全脱离了该社区。它有自己的模块系统和 API。有些重叠,但合规性目前不是该项目的目标。
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.
Edit
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.