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.
Lua is becoming 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 ga...
评分亲.29.9卖不~亲.29.9卖不~亲.29.9卖不~亲.29.9卖不~亲.29.9卖不~亲.29.9卖不~亲.29.9卖不~亲.29.9卖不~亲.29.9卖不~亲.29.9卖不~亲.29.9卖不~亲.29.9卖不~亲.29.9卖不~亲.29.9卖不~亲.29.9卖不~亲.29.9卖不~亲.29.9卖不~亲.29.9卖不~亲.29.9卖不~亲.29.9卖不~亲.29.9卖不~亲.29...
评分看到元表那章开始,我就感觉到自己一直作为一个静态语言开发者的思想的局限性了 table 继承的方法之一是 table 的 metatable 中的 __index 字段引用父 table, 然后其实 table 可以作为自身的 metatable 比如 a = 1 g = { __index = _G } setmetatable(g, g) g.print(a) ...
评分table{},sequence,# sequence也是table,只是把这个从1开始的系列提取出来的部分。(从1开始) #长度,针对string,sequence table如果key为table这样的复杂结构,是用pointer来hash和rawequal,所以不要指望你setmetatable,添加__equal了,让key1==key2,就可以用key2从tabl...
评分最近看了风云的开源游戏引擎ej2d,里面主要变成语言就是Lua。后来又看到美国总部一个医疗项目也大量是用了Lua做为脚本和测试框架。正好也想认真学点东西,就开始看这本书了。 第一次认真看一本英文本,不过总体上还是挺流利的。这本书对Lua编程的讲解还是很到位的,而且通俗易...
这本书简直是我近期遇到的一个宝藏!作为一名 Lua 新手,我曾经尝试过阅读一些其他的 Lua 入门资料,但总感觉抓不住重点,学习起来磕磕绊绊。直到我翻开了《Programming in Lua, Second Edition》,一切都豁然开朗了。这本书的讲解方式非常循序渐进,从最基础的概念讲起,比如变量、数据类型、控制流,都用非常清晰易懂的例子来阐述。我尤其喜欢它在讲解函数时,不仅仅是停留在语法层面,还深入到了闭包、匿名函数等高级特性,让我对函数的理解上升了一个台阶。而且,书中对 Lua 的哲学和设计理念也有很好的介绍,这对于理解语言本身非常有帮助,而不是简单地照搬语法。
评分最近在开发一款游戏,需要使用 Lua 进行脚本编写,之前对 Lua 了解不多,听朋友推荐了这本《Programming in Lua, Second Edition》。这本书真的让我事半功倍!它非常注重实际应用,书中大量的代码示例都非常贴合游戏开发中的常见场景,比如如何处理游戏状态、如何实现 UI 交互、如何进行数据序列化等等。特别是关于协程(coroutine)的讲解,简直是为游戏开发量身定做的,让我能够轻松实现异步操作和复杂的游戏逻辑。而且,书中对 Lua 在嵌入式开发和 Web 开发中的应用也有涉及,让我对 Lua 的应用领域有了更广阔的认识。这本书就像一个经验丰富的导师,手把手教我如何在实际项目中高效地运用 Lua。
评分我是一名已经有几年编程经验的开发者,主要接触 C++ 和 Python,这次想深入了解一下 Lua。这本书的内容深度完全超出了我的预期,完全不是一本简单的“语法速查手册”。它深入剖析了 Lua 的元表(metatable)机制,这对于理解 Lua 的面向对象特性以及实现一些高级设计模式至关重要。书中关于垃圾回收的章节也写得非常透彻,让我对 Lua 内存管理有了更清晰的认识,这对于编写高性能的 Lua 程序非常有帮助。而且,它还讲解了如何编写 C API 来扩展 Lua,这对于将 Lua 集成到大型项目或者开发高性能插件非常有价值。这本书的理论深度和实践指导并重,绝对是 Lua 进阶者的必备读物。
评分我是一名在校学生,正在学习计算机科学,老师推荐了这本 Lua 的教材。《Programming in Lua, Second Edition》这本书的讲解风格非常适合我这样的初学者。它从最基础的语法开始,用非常直观的方式介绍了 Lua 的核心概念。我特别喜欢书中对数据结构,比如表(table)的深入讲解,它清晰地展示了 Lua 中表的多样性,以及如何利用它来模拟数组、字典甚至是对象。而且,书中在讲解一些相对复杂的概念时,比如模块化和错误处理,都配有详细的示例和解释,让我能够一步步地理解并掌握。这本书不仅教会了我 Lua 的编程技巧,还培养了我对编程逻辑的思考能力,对我打下坚实的编程基础非常有帮助。
评分作为一名对语言设计和底层原理有浓厚兴趣的开发者,我一直对 Lua 的简洁和高效感到好奇。《Programming in Lua, Second Edition》这本书满足了我对 Lua 深入探索的渴望。它不仅仅讲解了语言本身的特性,还花了不少篇幅介绍 Lua 的虚拟机(VM)架构,这对于理解 Lua 代码是如何被执行的非常有帮助。书中对 Lua 的 C API 的讲解也让我眼前一亮,它展示了如何利用 C 语言的强大能力来增强 Lua 的功能,实现性能上的极致追求。读完这本书,我感觉自己对 Lua 的理解已经从“如何使用”提升到了“为什么这样设计”的层面,这对于我后续的学习和开发非常有指导意义。
评分game ui/logic programming at Perfect World
评分看的电子书,那时候边看manual边看pil捣鼓了一个牌九游戏逻辑
评分原版书籍,装帧好,当做wiki了。
评分原版书籍,装帧好,当做wiki了。
评分Simple
本站所有内容均为互联网搜索引擎提供的公开搜索信息,本站不存储任何数据与内容,任何内容与数据均与本站无关,如有需要请联系相关搜索引擎包括但不限于百度,google,bing,sogou 等
© 2026 book.quotespace.org All Rights Reserved. 小美书屋 版权所有