News for hackers. Stuff that matters.
Re:Lua in the NetBSD Kernel [pdf] by eric_bullington on Sunday February 17, 2013 @12:14PM (#5235834)
It's very small, fast, and uses little memory. It's easy to learn and easy to interop with C. It's got two great implementations, with one (LuaJIT) probably holding the top spot among all dynamic, garbage-collected language currently in existence, measured by performance (although the creator -- `mikep` on HN -- is very careful to avoid making this sort of claim).

It's also got one of the coolest GUI toolkits around in IUP. If you've ever wondered by a cross-platform GUI toolkit that uses native widgets has to be so huge and complex, IUP's what you're looking for. Unfortunately, IUP doesn't yet have a native OSX driver, but you can use motif graphics driver to build a program that will run on OSX. Like Lua, IUP's in portable C, so a number of other languages have built bindings, notably go and perl. Like Lua, IUP has a very liberal license license (MIT), so you can use it for commercial projects without worrying about dynamic or static linking.

Re:Lua in the NetBSD Kernel [pdf] by arundelo on Sunday February 17, 2013 @12:31PM (#5235900)
Correction: LuaJIT's creator Mike Pall is http://news.ycombinator.com/user?id=mikemike .
Re:Lua in the NetBSD Kernel [pdf] by eric_bullington on Sunday February 17, 2013 @02:18PM (#5236305)
Thanks for the correction. I should have verified the HN username for Mike; not sure where I pulled `mikep` out of since I always enjoy reading his comments here and elsewhere. It's too late for me to correct it in my original comment, so thanks again.
Re:Lua in the NetBSD Kernel [pdf] by swah on Sunday February 17, 2013 @03:04PM (#5236498)
He's mikemike on reddit as well.
Re:Lua in the NetBSD Kernel [pdf] by snogglethorpe on Sunday February 17, 2013 @06:09PM (#5237150)
IUP seems cool in theory, but in practice, I've never even been able to compile/install it, despite trying multiple times over the years! Unfortunately the build system seems to be mostly of the "Works great on the author's system!" sort... ><

I always try a bit to hack around the issues, but the problems have always exceeded my "oh this is too annoying, I'll try again next year" threshold (part of the problem being that it's an unusual build system, not just a few Makefiles, so it's less familiar).

Re:Lua in the NetBSD Kernel [pdf] by eric_bullington on Sunday March 03, 2013 @10:05AM (#5313944)
I just noticed your comment, so sorry for the belated reply. I just wanted to mention that the tecgraf, makers of IUP, has thankfully simplified their build system -- no more custom build system. Also, they've started releasing pre-built binaries for all major OSs, including Linux and OSX. So now it's as easy and downloading a file and running sudo ./install. And if you want to build it yourself, it's as simple as running a few make files (make; make install each for the IUP, CD, and IM libraries).

But absolutely, the first time I tried to use IUP a few years ago, I couldn't get it build due to the complexity of the build system. Fortunately, that's all changed now.