JavaScript、V8、资源

发布于 2024-11-10 00:18:45 字数 300 浏览 0 评论 0原文

我最近学习了很多 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 coing 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

陪你搞怪i 2024-11-17 00:18:45

您可能对 CommonJS 感兴趣,它几乎是 Javascript 社区最接近“标准库”的东西。从该页面:

使用 CommonJS 兼容的系统,您可以使用 JavaScript 编写:

  • 服务器端 JavaScript 应用程序
  • 命令行工具
  • 基于 GUI 的桌面应用程序
  • 混合应用程序(Titanium、Adobe AIR)

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)
秋风の叶未落 2024-11-17 00:18:45

如果您想要一个基于 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文