Reputation: 15
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?
Upvotes: 1
Views: 1205
Reputation: 16753
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.
Upvotes: 9