News for hackers. Stuff that matters.
Re:Luvit – Asynchronous I/O for Lua by matt_m on Saturday March 16, 2013 @03:34PM (#5386465)
I've been using this lately on a personal project.

For those who don't know, this is basically a clone of the Node.js API in the Lua language (using the LuaJIT compiler). This is interesting because:

- LuaJIT is often faster than V8 and uses less memory

- LuaJIT has a built in C FFI and supports C datatypes for working with low level libraries (or even writing low level code in Lua)

- Lua has coroutines

I think this is already being used in production at Rackspace, mainly because of the lower memory usage.

Re:Luvit – Asynchronous I/O for Lua by s_baby on Saturday March 16, 2013 @04:07PM (#5386577)
I think Rackspace is using openresty.

http://openresty.org/

Re:Luvit – Asynchronous I/O for Lua by pquerna on Saturday March 16, 2013 @04:13PM (#5386609)
Rackspace use hundreds of open source projects.

Luvit.io is specifically being used in our Host Monitoring Agent, which is open source and you can find here:

https://github.com/racker/virgo

This is used to collect all kinds of host metrics (CPU, disk, ram, custom scripts, mysql, etc) for the Cloud Monitoring Product.

Re:Luvit – Asynchronous I/O for Lua by pooriaazimi on Saturday March 16, 2013 @10:44PM (#5387827)
also:

- Lua (as a language) is for the most part better designed than JavaScript

Re:Luvit – Asynchronous I/O for Lua by graue on Saturday March 16, 2013 @07:59PM (#5387322)
Link to the project? I always like to see examples.

Blogging about your experience using it would probably get you some decent traffic, too.

Re:Luvit – Asynchronous I/O for Lua by russell_h on Saturday March 16, 2013 @09:04PM (#5387494)
I suspect the project he's referring to is our monitoring agent: https://github.com/racker/virgo

We're working on splitting this out into a reusable platform for writing lightweight host-based agents. Luvit works out fairly well for this - our monitoring agent runs in around 5mb resident memory, works on Windows (although we haven't released that yet) and is relatively easy to code on.

Shameless plug: if this sort of stuff interests you, hit me up, my email is in my profile.

Re:Luvit – Asynchronous I/O for Lua by minikomi on Sunday March 17, 2013 @06:33AM (#5388772)
Looks interesting. If I may ask, what inspired using luvit for this project in the first place?
Re:Luvit – Asynchronous I/O for Lua by russell_h on Sunday March 17, 2013 @03:00PM (#5390517)
We use Node.js on our backend, were involved in some of the work that led to libuv being split out from node core, and were already planning to use Lua based on our experience with the Cloudkick agent. All told, when we saw what Tim was doing with luvit it seemed like a natural fit.
Re:Luvit – Asynchronous I/O for Lua by minikomi on Monday March 18, 2013 @11:00PM (#5398650)
Thanks. If lua and node are already part of your workflow, it makes sense to build on that. Looks like a lot of fun!
Re:Luvit – Asynchronous I/O for Lua by graue on Saturday March 16, 2013 @11:48PM (#5388031)
I was referring to the "personal project" matt_m mentioned, but I'll take a closer look at this too.
Re:Luvit – Asynchronous I/O for Lua by matt_m on Sunday March 17, 2013 @07:01PM (#5391465)
I haven't released it yet, maybe I'll do a Show HN in the future!
Re:Luvit – Asynchronous I/O for Lua by graue on Sunday March 17, 2013 @07:52PM (#5391645)
That would be cool. Please do!