开发者

Is Lua an event-based programming language?

开发者 https://www.devze.com 2023-03-10 00:39 出处:网络
Is Lua event-based or thread-based? I\'ve been reading a lot about Node.js lately, and it appears that one of the the largest selling points for it is related开发者_运维技巧 to it being event-based a

Is Lua event-based or thread-based?

I've been reading a lot about Node.js lately, and it appears that one of the the largest selling points for it is related开发者_运维技巧 to it being event-based as opposed to thread-based. What is Lua?


Do not mix terms. Lua is a programming language. Node.js is an evented library/framework written using JavaScript.

Lua can be (almost) anything you want ;) You can write your code thread-based using libraries like Lua-Lanes, or you can create/use event-based libraries. In fact, there is a Lua port of Node.js in development.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号