[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Using Lua for core application logic, gluing to C++ GUI
- From: Sean Conner <sean@...>
- Date: Tue, 28 Aug 2018 13:44:05 -0400
It was thus said that the Great Ivan Krylov once stated:
> Speaking of outside dependencies, I absolutely need TLS sockets and
> hashing and may try to use DTLS, sound I/O and codecs in the future.
I just finished up a TLS wrapper for Lua  and I have used it with Lua
coroutines  to handle event-driven servers .
> Is it a good idea to write the core/library part of a networked
> application in Lua, then wrap it in C++ launcher/interface (built using
> Qt or JUCE for most cross-platform compatibility)?
I guess. I tend to write the main application in Lua and use C for
wrapping up libraries or for speed (in my case, mostly wrapping up
libraries). I also create an executable that embeds Lua plus all the
modules required for the program to run included. I have no opinion on the
GUI part as I don't write those types of programs.
but not yet available via LuaRocks. Soon though ...
 Again, I need to publish this code ... sigh.
 I do a similar thing at work---use Lua with extensive coroutine
support to handle SIP processing.