转自Python、Lua和Ruby——脚本大P.K.

Python versus Lua Versus Ruby
Python、Lua和Ruby——脚本大P.K.
Tom Gutschmidt 著
赖勇浩(http://blog.csdn.net/lanphaday) 译
So which of the three languages is the best to use on your project? That depends a great deal on what you want to accomplish. To wrap up the book, I've outlined some of the pros and cons of each language in this section.
这三种语言中的哪一种更合适你的项目?很大程度取决于你想达到什么样的目标。作为一书的结尾,在这一节里,我会描述一下它们各自的优点和不足。
Python Pros and Cons
Python的优点和不足
The pros of Python are as follows:
Python的优点如下:
·         Python has more extension modules than the other languages.
·         Python比其它语言有更多扩展模块。
·         Many online Python tutorials exist. There are also plenty of English books and reference materials, many sample scripts exist online, and there is a wealth of introductory material. The Python.org Website is a good place to start looking for these because it has sections for beginners, tutorials, guides organized by topic, and lists of links and references.
·         在网上可以找到很多Python教程。不仅如此,还有大量的英文书籍和资料。Python.org有很多为初学者准备的依主题组织的资料、教程和编程指南,此外还有很多链接和参考。
·         Most folks really enjoy the syntax of the Python language because it appears clean and is easy to read.
·         很多人都喜欢Python语言的语法,因为它清晰易读。
·         Python has an edge where libraries are concerned. There are many libraries, and, for the most part, they are well documented.
·         Python在支持库上大占优势,因为它有很多库,而且大部分都有完善的文档支持。
·         Lots of tools that tie into Python are available, and they are often easier to find than the tools for Lua and Ruby.
·         很多工具可以用于Python,但难以找到适用于Lua和Ruby的。
The cons of Python are as follows:
Python的不足:
·         Existing Python debuggers are considered quirky and slow. Debugging support on Macintosh and consoles is even weaker.
·         现有的Python调试器诡异而且效率低下。在Macintosh(苹果计算机)和控制台下进行调试是一个梦魇。
·         It can be difficult to bundle Python with other languages. There are lots of binary DLLs, and Python has (compared to the other languages) a large standard distribution.
·         Python难以与其它语言集成,它有太多的二进制DLL,而且Python带了巨大的标准发布包。
·         Lots of folks really dislike the white space sensitivity of Python syntax.
·         同样的,也有很多人不喜欢Python对空白符敏感的语法。
·         Python can be quite slow at times, as everything is an object on the heap.
·         因为堆上的任何东西都是对象,所以Python有时候会慢得难以忍受。
Lua Pros and Cons
Lua的优点和不足
The pros of Lua are as follows:
Lua的优点:
·         Lua is probably the fastest of the three languages and usually uses the least amount of runtime memory.
·         Lua在这三种语言中是运行时速度最快而且占内在最少的。
·         Lau has the smallest memory footprint for bundling.
·         集成Lua只会增加极少的内存占用率。
·         The Lau C API is very well documented and has good examples for integrating with C.
·         Lua的C API有着完备着文档和很好的例子,可以容易地通过C集成在软件里。
The cons of Lua are as follows:
Lua的不足:
·         The documentation has improved but is still a bit sketchy overall. Of the three languages, Lua it is probably the least documented (the API being the exception), with the least amount of code comments. This makes for the largest ramp-up time to learn, and there isn't much in the way of introductory Lua material.
·         尽管Lua的文档已经增进不少,但仍然有所不足。三种语言中,Lua可能是文档最少的(API方面是个例外),因为代码中极少注释,这也增加了学习的难度。另外,对Lua的本质也没有什么介绍。
·         There isn't a lot of built-in functionality for Lua. There is little support if you need to create a large, complex application.
·         Lua内建的功能很少,并没有对创建大型的复杂应用程序提供足够支持。
·         Lua could use a better garbage collectorthe current development is moving towards that now. Right now, Lua GC uses a very simple and traditional simple mark and sweep.
·         Lua应该使用更好的垃圾收集机制,Lua现在的GC仍然使用非常简单而且传统的“标记和清除”方式。
Pros and Cons of Ruby
Ruby的优点和不足
The pros of Ruby are as follows:
Ruby的优点:
·         Ruby possesses fairly good advanced debuggers.
·         Ruby有极好的高级调试器。
·         Ruby is object oriented from the ground up, and programmers who are OOP enthusiasts or who are used to the OOP paradigm will find the language extremely comfortable.
·         Ruby是最彻底的面向对象语言,对于OOP狂热者和惯于使用OOP范式的程序员,他们将会发现Ruby是最适合他们的语言。
·         Ruby has arguably the simplest syntax, with no real rules exceptions. Especially true for OOP enthusiasts.
·         Ruby的语法极为简单,没有让人出乎意料规则,特别适合OOP行家的习惯。
The cons of Ruby are as follows:
Ruby的不足:
·         Lack of English documentation.
·         英文文档极度缺乏。
·         Fewer existing works and samples for games than with the other languages.
·         与其它语言相比,在游戏方面所作的工作和实例都少得多。

转载于:https://www.cnblogs.com/noble/p/4144185.html

Python、Lua和Ruby——脚本大P.K.相关推荐

  1. Python、Lua和Ruby比较——脚本语言大P.K.

    译者按:Python.lua和ruby在C/C++是日渐式微的情况下,在java/.net的围歼中努力抗争的三个当红小生.在Tom Gutschmidt的著作<Game Programmng w ...

  2. lua与python_动态大比拼Python、Lua和Ruby

    赖勇浩(http://blog.csdn.net/lanphaday) 译 译者按:Python.lua和ruby在C/C++是日渐式微的情况下,在java/.net的围歼中努力抗争的三个当红小生.在 ...

  3. Script.NET脚本语言开发工具2.1.1版本发布,支持Ruby脚本的开发、调试等功能

    Script.NET是蓝蚂蚁工作室开发的一套用于Tcl/Python/Ruby/Lua/NSIS 等脚本语言开发的集成开发环境,刚刚发布的2.1.1版本新增了Ruby脚本的支持,可以支持Ruby脚本的 ...

  4. 黑客用python还是ruby-Python、Lua和Ruby之优劣

    Python Python的优点: 1.Python比其它语言有更多扩展模块. 2.在网上可以找到很多Python教程.不仅如此,还有大量的英文书籍和资料.Python.org有很多为初学者准备的依主 ...

  5. Python vs PHP vs Ruby —— 编程语言大对决

    编程语言种类繁多,每种语言都有它们的独特的优势.开发者在对编程语言的进行选择时往往很讲究.因此,这篇文章将从各个角度对 PHP.Ruby.Python 三种当前比较流行的语言的优势和劣势进行对比,希望 ...

  6. 用python写了个脚本,大V发微博实时提醒(wu2198为例)(附下载)

    有些大V的微博,真的是一秒钟都不想错过.想要实时掌握动态,但是又不想一直盯着微博,一直F5.所以,我就写了个脚本解决这个问题. 用python 写了一个脚本,大V发微博可以实时提醒,再也不会遗漏大V的 ...

  7. 编写ruby脚本批量下载《老友记》全集(mp3文件)

    <老友记>是美剧中的经典,其中的对白也早已成为英语爱好者的宝典,我当然也是粉丝之一啊.前几天在普特英语网 上发现有所有10季老友记的对白mp3文件下载 ,大喜!!可惜每一集的连接都在不同的 ...

  8. python能做什么脚本_Python能做什么

    Python 作为一种功能强大的编程语言,因其简单易学而受到很多开发者的青睐.那么,Python 的应用领域有哪些呢? 概括起来,Python 的应用领域主要有如下几个. Web应用开发 Python ...

  9. 2020年软件工程现状:Python或将成为第一大编程语言,中国开源涨势最猛

    云栖号资讯:[点击查看更多行业资讯] 在这里您可以找到不同行业的第一手的上云资讯,还在等什么,快来! 现在,是时候谈一谈 2020 年及以后的软件工程状况了.本文以 GitHub Octoverse ...

  10. 2021 年软件工程现状:Python 或将成为第一大编程语言,中国开源涨势最猛

    现在,是时候谈一谈 2021年及以后的软件工程状况了. 本文以 GitHub Octoverse 数据为基础,加上我作为一个拥有十年经验的软件工程师的经验和观察.软件工程在过去 20 年来实现了爆炸式 ...

最新文章

  1. vs widows服务的发布
  2. RHEL修改最大文件打开数,关于epoll socket Too many open files问题的解决
  3. 针对校园某服务器的一次渗透测试
  4. mysql数据库杀掉堵塞_Mysql解决USE DB堵塞详解
  5. 2016.6.17——Remove Duplicates from Sorted Array
  6. Image inpainting 图像修补最新综述
  7. php getter,对象访问器 getter和setter
  8. hpbios刷新工具_刷新:不会破产的工具
  9. java 打印 xps_使用Java 将PPT转换为PDF、XPS等格式
  10. 图像处理之阈值分割[全局阈值、Otsu阈值和迭代式阈值分割]
  11. “新元宇宙”奇科幻小说原创作品系列连载《地球人奇游天球记》第三回零点惊魂
  12. QT—常用容器 QStringList,QVector,QMap,QHash,QVariant
  13. (转)在 Linux 平台中调试 C/C++ 内存泄漏方法
  14. Verilog 中的Procedural continuous assignments
  15. Strong-Convexity:强凸性
  16. WINCE上网本才是正道——关于目前ARM+CE的上网本的文章汇编
  17. 电商直播风暴来了,AI虚拟偶像彻底革命李佳琦、薇娅?
  18. NDK学习笔记:FFmpeg解压MP34提取音频PCM(swrContext、swr_alloc_set_opts)
  19. 【XSY2271】青蛙(栈)
  20. !Character.isDigit(a.charAt(i))

热门文章

  1. Android反编译与防止反编译
  2. 《冷眼看IT》读书笔记--IT将成为服务行业
  3. 如何用WSUS2.0分发补丁
  4. iphone iPhone开发中如何将制作图片放大缩小代码实现案例
  5. PHP文件操作 读取与写入
  6. Windows 8 页面应用测试(2)
  7. [iOS]学习笔记3(动态性)
  8. dotNET中创建自定义的配置节
  9. 学习笔记之什么是持久化和对象关系映射ORM技术
  10. 【c++leetcode】判断一个数是否是2的幂、3的幂、4的幂