Hacker Newsnew | past | comments | ask | show | jobs | submit | tjkells's commentslogin

Running a complete hosted telephony service using nearly the exact stack defined in this article - https://developers.corvisa.com/

It has worked remarkably well and allowed us to scale up/down during peak hours or unexpected high traffic peaks.


Thanks for reading!


Shameless plug here, but if you're interested in voice platforms and are growing weary of Twilio, I'm working on a new hosted telephony platform that uses embedded lua executing directly on our hosted servers. Check it out - https://developers.corvisa.com/


Why did you choose Lua?


It was designed to be embedded, has a very small footprint, is relatively fast ( we use luajit ), and has few opinions as a language. That said, there is nothing locking us in to lua permanently as we would just need to implement a small-ish set of language bindings and docker configs to execute the language du jour.


Can we PLEASE not refer people to penlight anymore? It's half broken, poorly documented, and poorly maintained. It drives me crazy to see it referred to all over the place as a good example of anything.

That being said, this is FANTASTIC. Due to the nature of lua it may well always lack a good community but thankfully people seem to be trying.


Author/maintainer here - Thanks for the kind words! Lua's nature is definitely a bit prohibitive to a tight community, so part of my intention with this list is to provide an overview of what's out there.

As far as penlight goes - feel free to open an issue or PR to discuss any inclusions/exclusions. I haven't actually used it myself, but as a fan of microlight I decided to include the big brother. Everything can be reconsidered.


> Lua's nature is definitely a bit prohibitive to a tight community

Is that for technical reasons or because Lua is commonly used in proprietary apps?


The Lua language and LuaJIT are great.

The user base is fragmented (version 4, 5.1 (LuaJIT) vs 5.2), as Lua is usually used as embedded language (alongside C, C++, ...) for video games (World of Warcraft, Far Cry, ...), applications (Adobe Lightroom, ...), etc.

And the http://lua.org website is a bit too minimalistic to offer community features. The project only hosts a mailing list and a old-school wiki. The additional libraries are/were hosted on http://luaforge.net , an outdated sourceforge clone. The documentation is static and the development process itself is not so open. The Lua language standard library is lacking functions almost every other language ship with their default package (so everyone has to either find & download additional libraries or reinvent the wheel).

Other languages like PHP have a documentation that allows the community to add comments and code samples.


If someone created a community site with editable docs, do you think it would gain traction?


Not necessarily proprietary apps, but a wide variety of use cases; Lua is embedded in all kinds of different stuff and used for game dev, webdev, embedded scripting, WoW, configuration, and much more, whereas JS, for example, is used in just two main (related) cases. This makes Lua's userbase rather fragmented across these niches.


I disagree strongly with that.

Penlight is the closest thing there is to a Lua standard library (loosely modeled after what exists in Python). It is maintained by Steve Donovan who is one of the most active members of the community and the author of http://www.luafaq.org/, LDoc and lake.

Having contributed to Penlight myself I can say it is certainly not poorly maintained compared to most other Lua projects.

I agree, Penlight is not the best at everything it does, and it probably does too much (which is why there is microlight), but it is still a tool most Lua users need to know about.


Why do you say that? WRT doco it's one of the better Lua libraries.


Are there alternatives to penlight you'd recommend?


PL is an enormous library so its really superseded by a few different libraries. The stuff I used most often were the functional tools and Moses (https://github.com/Yonaba/Moses/) blows the doors off of PL in that regard.


Have you looked at luafun? If so, what's your opinion?

https://github.com/rtsisyk/luafun


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

Search: