图书标签: lua 脚本语言 编程 Lua programming 程序设计 编程语言 计算机
发表于2024-12-26
Programming in Lua, Second Edition pdf epub mobi txt 电子书 下载 2024
Lua is the language of choice for anyone who needs a scripting language that is simple, efficient, extensible, portable, and free. Currently, Lua is being used in areas ranging from embedded systems to Web development and is widely spread in the game industry, where knowledge of Lua is an indisputable asset. "Programming in Lua" is the official book about the language, giving a solid base for any programmer who wants to use Lua. Authored by Roberto Ierusalimschy, the chief architect of the language, it covers all aspects of Lua 5---from the basics to its API with C---explaining how to make good use of its features and giving numerous code examples. "Programming in Lua" is targeted at people with some programming background, but does not assume any prior knowledge about Lua or other scripting languages. This Second Edition updates the text to Lua 5.1 and brings substantial new material, including numerous new examples, a detailed explanation of the new module system, and two new chapters centered on multiple states and garbage collection.
Roberto Ierusalimschy is an Associate Professor of Computer Science at PUC-Rio (the Pontifical Catholic University in Rio de Janeiro), where he works with programming-language design and implementation. He is the leading architect of the Lua programming language and the author of "Programming in Lua" (now in its second edition and translated to Chinese, Korean, German, and Japanese).
Roberto has a M.Sc. Degree (1986) and a D.Sc. Degree (1990) in Computer Science, both from PUC-Rio. He was a visiting researcher at the University of Waterloo, (Canada, 1991), ICSI (CA, USA, 1994), GMD (Germany, 1997), and at UIUC (IL, USA, 2001/2002). As a professor at PUC-Rio, Roberto was the advisor of several students that later became influential members of the Lua community. Lately he has been developing LPEG, a novel pattern-matching package for Lua.
在用premake,于是周末把内容和例子大概一遍,lua的确很简洁,而且够用,和javascript比较类似(table/object, 函数式),但没有javascript那些臭毛病。我的感觉lua的应用有三:一是做为配置文件;二是作为领域语言;三是作为独立程序,并且由C扩展 接着又读了第二遍,算是精读,每天1个小时,结合例子,效果非常好
评分看的电子书,那时候边看manual边看pil捣鼓了一个牌九游戏逻辑
评分Simple
评分编排合理 突出要点
评分CH1-10
读到Metatables and Metamethods一章时,深深地被震撼了。以极简单的东西实现了极高妙的技术,有出神入化之妙。 总的来说,Lua语言的设计非常简洁,容易上手,读这本书的前几章就可以写一些够用的脚本处理许多任务了。如果要做较大的项目,再慢慢去读OO的内容。(本段是为了凑...
评分看到元表那章开始,我就感觉到自己一直作为一个静态语言开发者的思想的局限性了 table 继承的方法之一是 table 的 metatable 中的 __index 字段引用父 table, 然后其实 table 可以作为自身的 metatable 比如 a = 1 g = { __index = _G } setmetatable(g, g) g.print(a) ...
评分最近看了风云的开源游戏引擎ej2d,里面主要变成语言就是Lua。后来又看到美国总部一个医疗项目也大量是用了Lua做为脚本和测试框架。正好也想认真学点东西,就开始看这本书了。 第一次认真看一本英文本,不过总体上还是挺流利的。这本书对Lua编程的讲解还是很到位的,而且通俗易...
评分花了一天的时间把全书浏览了一遍,对于之前完全没有接触过Lua的童鞋来说是很好的入门书籍。 看的是luachina翻译的245页中文版,总共是四篇29章+1章附录,建议多花点时间在第一篇(0-10章)的基本介绍上就好了,如果需要用到与C/C++的交互可以再看看第四篇的对应内容,至于...
评分尽管Lua被认为是一种小而强大的语言,但从使用上来说,我很不喜欢Lua的文法风格。语义古怪另类,不符合传统C/C++、C#、JavaScript等体系语言的审美与使用规则,大有标新立异之嫌。例如下标从1开始、函数有多个返回值、以及if-then-end、for-end、do return end等啰嗦的写法。没...
Programming in Lua, Second Edition pdf epub mobi txt 电子书 下载 2024