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. Lua also has established itself as a major language in software development for mobile devices. 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 Third Edition updates the text to Lua 5.2 and brings substantial new material. In particular, it brings more than one hundred exercises distributed through all chapters, ranging from simple questions about the language to full small-size projects.
Roberto Ierusalimschy is an Associate Professor of Computer Science at PUC-Rio (the Pontifical Catholic University of 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 and a D.Sc. Degree in Computer Science, both from PUC-Rio. He was a visiting researcher at the University of Waterloo, ICSI, GMD, and UIUC, and a Tinker Professor at Stanford. As a professor at PUC-Rio, Roberto was the advisor of several students that later became influential members of the Lua community. Roberto is also a Distinguished ACM Speaker.
table{},sequence,# sequence也是table,只是把这个从1开始的系列提取出来的部分。(从1开始) #长度,针对string,sequence table如果key为table这样的复杂结构,是用pointer来hash和rawequal,所以不要指望你setmetatable,添加__equal了,让key1==key2,就可以用key2从tabl...
评分一星给原作:好书,问题不多。 译作太糟糕,翻译、语法错误太多就不多说了,代码问题也不多说,竟然有几处认知错误,糟蹋好书不如去吃屎;举几个例子: P130 L-16:若误改了一个全局变量也没什么 -> 不存在误改全局变量的风险 P216 L15:如果发生内存分配错误,其他大多数函...
评分抱歉,有些标题党。 Lua 美极了——优雅,简洁,自不必多说。此谓之瑜。 所谓瑕,是我发现的一处笔误。 在 28.3 节《面向对象的访问》中提到,为了使用户自定义类型能够使用面向对象的语法来操作,一定要为元表设置“--index 元方法”。 就这里错了,把 __index(下划线)写成...
评分一星给原作:好书,问题不多。 译作太糟糕,翻译、语法错误太多就不多说了,代码问题也不多说,竟然有几处认知错误,糟蹋好书不如去吃屎;举几个例子: P130 L-16:若误改了一个全局变量也没什么 -> 不存在误改全局变量的风险 P216 L15:如果发生内存分配错误,其他大多数函...
评分不管是java还是c这些主流语言光经典巨著就有好几十本。每次都要选半天,晕头转向的。还是lua好,就这么一本。 首先我是外行,既不了解lua,对c也只限于语法,所以评论都是基于初学的观点。 书的质量不错,纸张比较有质感,排版还算合理。不过要是代码能够用比较突出的字体区...
好书,三天时间看完了它,前面两章是认真看了的,后面讲标准库和C接口的那部分简单看了一下。看书还是不能太局限,多看点别的可以触类旁通,看这本书我倒是明白了以前学Python时没能看懂的东西,包括元、闭包。。。
评分好书,三天时间看完了它,前面两章是认真看了的,后面讲标准库和C接口的那部分简单看了一下。看书还是不能太局限,多看点别的可以触类旁通,看这本书我倒是明白了以前学Python时没能看懂的东西,包括元、闭包。。。
评分很精巧的语言。作者本身是Lua创始人之一,所以讲述起来句句命中要害。从Lua看,GC和闭包已经成为标配了。此次只看书的前17章,后面的就选读了。
评分如果第一版的 JS 就能达到 Lua 这样的设计,该有多好。当然 Lua 也有让我觉得不舒服的地方,但总体还是好评,可以在 Unity 下尝试一下 ( Lua 的应用场景实在是... ) 跟 the web C language -- JavaScript 没得比啊
评分想写些Lua脚本,一没尽兴看完了(第一部分)… 对于拖延症晚期患者,早就发现学习比工作反馈快多了,小聪明决不可要啊。当然,书循循善诱,读的时候一气呵成,closure、coroutine这些稍微有别于其它语言的东西,都讲的非常清晰。
本站所有内容均为互联网搜索引擎提供的公开搜索信息,本站不存储任何数据与内容,任何内容与数据均与本站无关,如有需要请联系相关搜索引擎包括但不限于百度,google,bing,sogou 等
© 2025 book.quotespace.org All Rights Reserved. 小美书屋 版权所有