We use Lua scripting into our IOT/SCADA platform since 2013. The core process is written in C++. Vanilla lua 5.3 hooks in nicely. It allows us to sandbox highly custom customer functionality. The coroutine system in Lua is a huge. Calling c/c++ functions from Lua that do IO can yield and resume when complete. We commonly have thousands of coroutines 'running' at a time. The c-style longjump for error handling surprisingly hasn't been an issue. MVC++ cleans up
zvesda7
0
Posts
3
Replies
40
Reputation
4 Replies
74,622 Views
Will we ever get to see the AI source code similar to what CIV IV did? Always interesting to see how the sausage is made
51 Replies
204,410 Views
I sometimes listen to a playlist of national anthems
3 Replies
9,873 Views
I discovered Stardock recently when I bought Galciv 2 on Steam during the thanksgiving sale. I love civilization and scifi. It's really nice to see a merger. Very nicely done. Since then I've read a lot of the Stardock story. Your blog is fascinating. Very neat to learn the story of you and your company. Not many early 90s software companies have lasted without being sold. Also amazed you have time to blog while running the company.
19 Replies
60,939 Views