Programming in Lua (4th Edition)
Tags
Summary
Editor's review
Who it's for
A good fit for
- 已有其他语言基础、想快速上手Lua的程序员
- 从事游戏开发、嵌入式、OpenResty等Lua实战场景的开发者
- 需要把Lua嵌入自有C/C++程序、扩展脚本能力者
- 想借一门小而完整的语言理解编程语言设计与实现的读者
Not a good fit for
- 完全没有编程经验的零基础读者
- 只想找Lua插件速查表、不打算系统学习的人
- 希望本书直接讲解某个具体游戏引擎Lua API的读者
Reading tips
- 先按顺序读完第1部分并完成每章练习,打牢表、函数、字符串的基础。
- 第2、3部分的案例建议在本地敲一遍代码,配合独立解释器观察输出。
- 第4部分C API需要边读边写小型C宿主程序,可对照官方参考手册验证。
- 遇到Lua版本差异时,留意书中关于5.3整型与位运算的兼容性说明。
About the publisher
The Publishing House of Electronics Industry is a comprehensive publisher distinguished by its focus on electronic information and related fields. Judging from the more than 3,000 titles in its catalogue, its publishing covers programming and design, artificial intelligence, computer science, finance and economics, photography, and social sciences, attending both to cutting-edge technology and to general readers. Representative titles include Factor Investing: Methods and Practice, x86 Assembly Language: From Real Mode to Protected Mode, The RISC-V Reader, Artificial Intelligence: Speech Recognition, Understanding and Practice, Phased Array Radar Technology, Radar Target Characteristics, and 100 Go Mistakes and How to Avoid Them, most of which centre on technical methods and engineering practice. Its authors include Shi Chuan, Li Zhong, Wang Xiaobo, David Patterson, Andrew Waterman, and Yu Zihao, among others from China and abroad. Owing to limited public information, no further publishing features are elaborated here.
Contents
- Part 1 The Language
- 1 Getting Started
- 2 Interlude: The Eight-Queens Puzzle
- 3 Numbers
- 4 Strings
- 5 Tables
- 6 Functions
- 7 Input and Output
- 8 The Bits and Pieces
- Part 2 Real Programming
- 9 Closures
- 10 Pattern Matching
- 11 Interlude: Most Frequent Words
- 12 Dates and Times
- 13 Bits and Bytes
- 14 Data Structures
- 15 Data Files and Serialization
- 16 Compilation, Execution, and Errors
- 17 Modules and Packages
- Part 3 The Language Itself
- 18 Iterators and the Generic for
- 19 Interlude: Markov Chains
- 20 Metatables and Metamethods
- 21 Object-Oriented Programming
- 22 Environments
- 23 Garbage Collection
- 24 Coroutines
- 25 Reflection
- 26 Interlude: Multithreading with Coroutines
- Part 4 The C API
- 27 An Overview of the C API
- 28 Extending Your Application
- 29 Calling C from Lua
- 30 Techniques for Writing C Functions
- 31 User-Defined Types in C
- 32 Managing Resources
- 33 Threads and States
FAQ
这本书对应Lua的哪个版本?
没有其他编程语言基础能读懂吗?
这本书和官方参考手册有什么区别?
书里的C语言API部分需要什么基础?
中文译本质量如何?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.