日韩三级在线_国产精品3区_亚洲精品a_成人网页_国产成人精品久久_国产精品国产精品国产专区不片

課程目錄:Comprehensive Lua培訓(xùn)
4401 人關(guān)注
(78637/99817)
課程大綱:

  Comprehensive Lua培訓(xùn)

 

 

 

Introduction to Lua
A bit of history
Lua's goals, features and non-goals
Resources of Lua documentation and tutorials
Installing the Lua interpreter
Setting up and using LuaRocks
Basic syntax and semantics
Identifiers
Comments, block comments
Global variables and enforcing of strictness
Local variables
Standalone programs, program arguments
Compilation units, chunks, expressions, semicolons
Data types and data structures
Basic types: nil, boolean, number, string
Object types: function, userdata, thread, table
References/objects vs. basic values
The importance of tables in Lua
Introduction to tables and their versatility
Tables as an associative array
Tables as numeric arrays, sequences
Basic control structures
The if then elseif else end
The while loop
The repeat loop
The simple for loop
Error handling
Return values vs exceptions
Converting a return value to an exception
Converting an exception to a return value
Error levels
Example programs
Polynomial evaluation
Breadth first search
Additional exercises
More about functions
Named arguments
Object-oriented calls
Closures
Currying
Tail calls
Multiple assignment and return
Varargs
Iterators and co-routines
The generic for loop
Stateless vs stateful iterators
Differences between iterators and co-routines
Metatables and metamethods
The set example
The __tostring metamethod
Arithmetic metamethods
The __index, __newindex metamethods
The __len metamethod
Modules and packages
Using modules
Creating modules
Organizing modules into packages
Advanced tables
Tables for queues and stacks
Tables describing graphs
Matrices as tables
Linked lists as tables
String buffers
Metatables through examples
Proxies
Readonly
Memoization
Dynamic programming with memoization
The Fibonacci example
Environments
Relationship between global variables and environments
Free variables
The _ENV table and the _G table
More about modules
Different approaches to creating modules
Modules that change the behavior
Module initialization and arguments
Using environments to implement safe modules
Advanced iterators and co-routines
Producer, consumer, filter
Wrapping co-routines to get iterators
Stateless iterator for linked lists
Contributing to the Ecosystem
Uploading packages to MoonRocks
Functional paradigm in Lua
The map function
The reduce / fold function
Object-oriented Programming
Different approaches to OOP
Different approaches to inheritance
Examples
A walkthrough of the Lua Standard Libraries
Compilation
Compilation
Eval
Relationship with the environment
Binary chunks
Garbage collection
Weak tables
Finalizers, the __gc meta-method
Lua bytecode and virtual machine
Generating bytecode from source code
Reading and analyzing bytecode
Quick tour of the source code of the Lua VM
C modules
Calling C from Lua
Search path and loading of C modules
Calling Lua from C
The Stack
Error handling
Continuations
Handling Lua values and types from C
Arrays
Strings
Userdata
Metatables
Object oriented calls
Light userdata
Memory management
Allocators
GC API
Threads in Lua
Co-routines vs threads
Real multi-threading and Lua states

主站蜘蛛池模板: 一级全黄毛片 | 亚洲 另类 在线 欧美 制服 | 精品国产综合成人亚洲区 | 四虎精品永久在线 | 亚洲欧美a| 国产美女一级特黄毛片 | 亚洲视频大全 | 国产精品ⅴ视频免费观看 | 在线不卡日韩 | 欧美高清视频一区 | 国产不卡一区 | 亚洲va乱码一区二区三区 | 亚洲第一网站在线观看 | 国产欧美在线视频 | 国产免费播放 | 亚洲一级二级三级 | 国产国拍亚洲精品午夜不卡17 | 精品日韩欧美国产一区二区 | 日韩精品小视频 | 精品国产91乱码一区二区三区 | 欧美成人禁片在线观看网址 | 全免费a级毛片免费毛视频 热re91久久精品国产91热 | 成人久久精品一区二区三区 | 久久伊人亚洲 | 国产又黄又a又潮娇喘视频 国产淫视频 | 91香蕉国产亚洲一区二区三区 | 国产日韩欧美视频 | 91欧美激情一区二区三区成人 | 美日韩免费视频 | 亚洲综合欧美日本另类激情 | 欧美亚洲自拍偷拍 | 国产精品久久久久久久 | 国产成人91一区二区三区 | 亚洲国产成人久久一区二区三区 | 91av中文字幕 | 在线观看亚洲一区二区 | 国产一区二区三区久久精品 | 午夜视频在线播放 | 欧美精品亚洲精品日韩专区va | 国产精品视频免费视频 | 中文字幕亚洲精品 |