Hacker News new | past | comments | ask | show | jobs | submit login
Luvit 0.6.0 released (asynchronous I/O for Lua) (plus.google.com)
41 points by philips on Dec 20, 2012 | hide | past | favorite | 12 comments



I like Luvit, but what makes node so awesome is people wrote evented drivers for databases and such. I'm not sure that there is a community there to do that again in Lua. Also, the openresty approach seems like an interesting way to get high performance web lua without writing evented code.


We are using Luvit to build a monitoring agent using an async programming model. Using node was not an option given the memory consumption.

https://github.com/racker/virgo

That said there are some modules coming out of the community: https://github.com/luvit/luvit/wiki/Projects



I believe that both Luvit and OpenRESTy use coroutines to manage async code.

You're not forced to use callbacks as you are in JavaScript.


Lua is an embedded language. I don't ever see the day when Luvit will be used for a backend server in lieu of Nodejs. In general, you shouldn't ever need an evented DB driver except for perhaps sqlite.


That Lua is an "embedded" language is a strength, not a weakness: it's small enough and interoperable enough to be used in ways that most language implementations can't. The fact that it can do this while at the same time being quite a bit more powerful (and efficient) than Javascript is a marvel of design. It has yet to be fully appreciated. We're going to see a lot more Lua on the server.


Kansface, the main pros for lua(jit) are reduced memory footprint and generally superior code execution performance to js. There's also the FFI which is more sophisticated in lua(jit) than node.

So depending on the details, I think there is a strong argument for luvit over nodejs - particularly when the breadth of the nodejs ecosystem isn't required and when a stronger language implementation is required.


Another pro for Lua is it has weak references and JS does not.


Isn' that a little like saying:

"Javascript is an embedded language. I don't ever see the day when node.js will be used for a backend server in lieu of php/perl/python/ruby."


Not creating a google plus profile to read.

http://luvit.io/ describes the project.


Sorry, it should be public. This is the text of the post.

New luvit release! 0.6.0. Lots of good stability and bug fixes in this one. Check it out http://luvit.io

... And lots of changelog entries ...

https://raw.github.com/luvit/luvit/master/ChangeLog


I could read everything without a google plus profile. Clicking on "luvit" let me see all other public posts by luvit too, again without a profile.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: