Lua
2025-03-26 23:23:02 0 举报
AI智能生成
Lua是一门高效的轻量级编程语言,以其易用性和灵活性闻名于嵌入系统、游戏开发及嵌入式应用领域。它拥有简洁的语法和强大的功能,比如协程、垃圾回收器等,使其成为一个多功能的脚本工具。Lua脚本常用于快速原型开发,以及定制已有软件的功能。因其文件通常以".lua"为扩展名,使得程序员可以轻松识别。此外,Lua被设计为可以嵌入至C语言程序中,这极大地增强了其适用性。作为嵌入式语言,它几乎不需要额外的运行时库,确保了在多种环境下均能高效运行。
作者其他创作
大纲/内容
OpenResty
HTTP
Test Driven Development (TDD)
RESTful API & API Gateway
Microservice
Domain Specific Language (DSL)
C10K & C1M
non-blocking & asynchronous I/O
event loop
coroutine
Streaming processing
I/O multiplexing
数据存储与中间件
MySQL
Redis
Kafka
Docker
KONG
regex
测试与工具
TDD & Unit Testing
Test::Nginx
curl & ab & wrk
调试与性能分析
debugging log
core dump
flame graph
on-CPU & off-CPU
nginx-systemtap-toolkit
stapxx
nginx-gdb-utils
核心概念
Basic Concepts
ngx.shared.DICT
lua-resty-/tucache
dog-pile effect
lua-resty-lock
lua-resty-shcache
ngx_srcache
功能与配置
log
static file
load balancer
proxy
phase
tuning for performance
if is evil
Lua 与 JIT
JIT (Just-In-Time Compiler)
NYI (Not Yet Implemented)
ffi.* API
lua-resty-core Library
Standard Lua
OpenResty 高级特性
directives
Nginx API for Lua (ngx.*, tcpsock.*, coroutine.*)
resty-core
semaphore
balancer_by_lua
ssl_certificate_by_lua
cosocket TCP/UDP
hot load lua code
0 条评论
下一页