Lua是通用脚本语言吗? [英] Lua as a general-purpose scripting language?

查看:106
本文介绍了Lua是通用脚本语言吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我看到Lua时,我唯一读过的就是伟大的嵌入",快速",轻巧",而且比其他任何东西都更常见:魔兽世界"或简而言之魔兽".

When I see Lua, the only thing I ever read is "great for embedding", "fast", "lightweight" and more often than anything else: "World of Warcraft" or in short "WoW".

为什么仅限于将整个内容嵌入到另一个应用程序中?为什么不像使用Python或Perl那样编写通用脚本?

Why is it limited to embedding the whole thing into another application? Why not write general-purpose scripts like you do with Python or Perl?

Lua在速度和内存使用(最快的脚本语言afaik)等方面似乎做得很好,为什么为什么我从来没有看到Lua被用作自动化任务的桌面脚本语言"?例如:

Lua seems to be doing great in aspects like speed and memory-usage (The fastest scripting language afaik) so why is it that I never see Lua being used as a "Desktop scripting-language" to automate tasks? For example:

  • 重命名一堆文件
  • 从网络上下载一些文件
  • 网络抓取

是否缺少标准库?

推荐答案

仅因为它作为特定的嵌入式脚本引擎专用语言被推销"(从某种意义上来说),并不意味着它仅限于此. .实际上,WoW可能还选择了Python作为其嵌入式脚本语言.

Just because it is "marketed" (in some general sense) as a special-purpose language for embedded script engines, does not mean that it is limited to that. In fact, WoW could probably just as well have chosen Python as their embedded scripting language.

这篇关于Lua是通用脚本语言吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆