News for hackers. Stuff that matters.
Re:Show HN: Sailor, an MVC web framework in Lua by armandososa on Saturday July 11, 2015 @02:53PM (#9871072)
Wow. I never expected to see Sailor Moon references in HN.

I never tried Lua before. Is this a good place to start? I'm looking to learn something new.

Re:Show HN: Sailor, an MVC web framework in Lua by teamhappy on Saturday July 11, 2015 @03:48PM (#9871302)
LÖVE might be a fun place to start: https://love2d.org/

(Also, I can't believe I didn't get the Sailor Moon reference...)

Check out http://moonscript.org/ too (CoffeeScript for Lua).

Re:Show HN: Sailor, an MVC web framework in Lua by etiene on Saturday July 11, 2015 @05:02PM (#9871558)
Lua is Moon in Portuguese, so for some people it might be easier to get ;)
Re:Show HN: Sailor, an MVC web framework in Lua by etiene on Saturday July 11, 2015 @04:03PM (#9871345)
I'm always so happy when people get the reference :D

I think it's a great place to start! Lua is a fantastic language!

Re:Show HN: Sailor, an MVC web framework in Lua by justincormack on Saturday July 11, 2015 @03:07PM (#9871129)
Don't see why not as a place to start. The book "Programming in Lua" is really well written if you want some background, but you can probably pick up the basics easily anyway.
Re:Show HN: Sailor, an MVC web framework in Lua by statenjason on Saturday July 11, 2015 @04:32PM (#9871445)
Check out Lua Missions[1] for a quick tour of basic Lua.

[1]: https://github.com/kikito/lua_missions

Re:Show HN: Sailor, an MVC web framework in Lua by culo on Sunday July 12, 2015 @01:47AM (#9872699)
Play with https://github.com/mashape/kong - becoming the largest Lua project.
Re:Show HN: Sailor, an MVC web framework in Lua by user237 on Saturday July 11, 2015 @05:07PM (#9871571)
I've been paying attention to this project for a while since the space for Lua frameworks is rather quite small. While I am interested in evaluating it once it matures, the biggest stumbling block for it so far is that the documentation and tutorials needs more polish and love.

I understand that it may be difficult finding someone willing to edit and clean up documentation, much less fill it in where things are currently empty, but it's not too soon to try and prioritize this. It may be worth trying to collect donations to start a bounty in the hopes of attracting someone who wishes to do the work and I personally would be happy to pitch in what I could toward it.

Re:Show HN: Sailor, an MVC web framework in Lua by etiene on Saturday July 11, 2015 @05:14PM (#9871595)
I've been putting a good effort into the documentation recently :) But I agree that the more the better!
Re:Show HN: Sailor, an MVC web framework in Lua by dccoolgai on Saturday July 11, 2015 @04:37PM (#9871468)
With the coming of WebAssembly, I think Lua might become a popular choice. I've only dabbled with it, but it seems impressive. Thank you for the heads-up on this. I plan to check it out.
Re:Show HN: Sailor, an MVC web framework in Lua by etiene on Saturday July 11, 2015 @04:45PM (#9871498)
There has been some discussions about WebAssembly at the lua mail list and I get sooooo excited thinking about the implications it could have! _ I too believe it could make Lua a popular choice.
Re:Show HN: Sailor, an MVC web framework in Lua by meowface on Sunday July 12, 2015 @12:17AM (#9872567)
I definitely prefer Lua to Javascript, but in my opinion the languages are roughly similar enough that it's not worth going through the trouble to swap one out for the other.

You don't get any of the weak typing, but you still have very similar syntax and features, same dynamic typing, same prototype OOP. Lua doesn't hold enough of an advantage over JS to warrant the cost of trying to get it in the browser.

Re:Show HN: Sailor, an MVC web framework in Lua by tavish1 on Saturday July 11, 2015 @03:49PM (#9871305)
I really like lua, and have been using openresty(nginx+lua) apart from lua inside openwrt environments. Will try this when I need anything resembling MVC.
Re:Show HN: Sailor, an MVC web framework in Lua by culo on Sunday July 12, 2015 @01:52AM (#9872704)
Try http://getkong.org (openresty+nginx)
Re:Show HN: Sailor, an MVC web framework in Lua by wink on Monday July 13, 2015 @01:44AM (#9876622)
I've been lightly following this for a while now (and it looks really good) but sadly so far I see hardly any benefit in using Lua without openresty for web development (I have two fun projects using Lapis and some more boring stuff in production in pure openresty+Lua, without any external libs). Why openresty? Simply for performance reasons - when using Python the ecosystem is just exponentially bigger than Lua's and for the stuff I need Flask usually is the right answer and gives quick results and stable(!) libraries for everything are at hand.
Re:Show HN: Sailor, an MVC web framework in Lua by etiene on Monday July 13, 2015 @05:10AM (#9877069)
I don't understand your comment, Sailor can be used with various web servers, openresty included! :)
Re:Show HN: Sailor, an MVC web framework in Lua by wink on Thursday July 16, 2015 @09:51AM (#9897141)
Awesome! Maybe I just didn't look properly but I was under the impression (from a while back) that I only saw Apache support.
Re:Show HN: Sailor, an MVC web framework in Lua by etiene on Thursday July 16, 2015 @05:37PM (#9900018)
That was a goooood while back ^_^' The openresty support is not perfect yet, but it's there and one of the next steps is to make it better :D
Re:Show HN: Sailor, an MVC web framework in Lua by brackenbury on Saturday July 11, 2015 @03:38PM (#9871266)
I can't comment about the framework since I don't speak Lua, but I want to congratulate the author for her work. Less than 1% of opensource contributors are women. Women are already under-represented in tech, but in opensource women are even more under-represented, so this is good to see.
Re:Show HN: Sailor, an MVC web framework in Lua by thunderbong on Saturday July 11, 2015 @04:37PM (#9871467)
I don't know about you, but for me that's really irrelevant. And honestly, why is this the top comment? Why should the gender of a person contributing code, of all things, matter?

I know that I'm not living in an ideal world and I know what kind of discrimination, both overt and covert, women go through in all walks of life. I also understand that it takes a lot for any group of people, not just women, to succeed when they are being discriminated against.

However, I feel, that giving someone a pat on the back just because they are from a discriminated group is demeaning. Why not instead comment on the code? Commend good code, suggest code improvements. I would rather appreciate the output than make any comment on their gender, because finally, that is the true achievement and that should speak for itself. And in my opinion, that is what that person is looking for - to be judged not because of who they are or where they come from but for what they have done.

Re:Show HN: Sailor, an MVC web framework in Lua by etiene on Saturday July 11, 2015 @04:48PM (#9871505)
Whether their comment was appropriate or not, we don't need to make this a discussion here! Please.
Re:Show HN: Sailor, an MVC web framework in Lua by brackenbury on Saturday July 11, 2015 @04:43PM (#9871489)
Does it make sense to have special laws to protect endangered species? Why not protect all species? Does it make sense to have more severe punishment for cop killers? Why not have severe punishment for all killers? Does it make sense to have extra fines for drivers who break rules in construction zones? Does it make sense to have a special coaching for girls who code ( https://girlswhocode.com/ ?) Why not provide that extra coaching to all kids? Because we live in the real world, not some utopia.
Re:Show HN: Sailor, an MVC web framework in Lua by Immortalin on Saturday July 11, 2015 @10:47PM (#9872421)
Another good one is Lapis (leafo.net/lapis/)