Is Lua an event-based programming language?
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.
精彩评论