Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

神奇的 lua | 兔子先生 #54

Open
liupzmin opened this issue Oct 8, 2023 · 0 comments
Open

神奇的 lua | 兔子先生 #54

liupzmin opened this issue Oct 8, 2023 · 0 comments

Comments

@liupzmin
Copy link
Owner

liupzmin commented Oct 8, 2023

https://liupzmin.com/2023/10/05/theory/lua/

从来没去了解过 lua,今天抽空看了一下原理,特此记录一下。 在此,我们先不去管 lua 的语法,仅就其神奇之处论之,看看它到底神在哪里。 lua 的神奇之处是它的解释器很小,目前 5.4.6 版本的二进制只有 300k,及其小巧! 唯其如此,它才可以被嵌入到服务端程序的内部!根据 lua 提供的 API,你可以在进程里启动一个 lua 虚拟机,来解释客户端提交上来的 lua 脚本或者字节码。 这

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant