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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.