lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sat, Mar 15, 2014 at 3:20 PM, Andrew Starks <andrew.starks@trms.com> wrote:


On Saturday, March 15, 2014, Tim Hill <drtimhill@gmail.com> wrote:

On Mar 14, 2014, at 11:33 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:


a mixture of C and Lua is where perfection lies

+1

+100 lol

I always explain it to my guys as “C is the muscle, Lua is the brain”. We try to keep compute intensive code in C and decision-making logic in Lua. The trick of course is keeping the interface between the two as clean as possible.

—Tim


Yes! This is my current "passion" and the process has been really revealing, so far at least.

Nothing wrong with C++. Creating application-level abstractions is too expensive for us. Lua is much more productive and the trend so far has been almost 100% "more Lua."

-Andrew

I've been working on a Lua library recently that uses classes, but other than that I've avoided C++ features (such as templates and the STL) for fear that I don't want my library to depend on a huge C++ runtime. I hope I haven't got it all wrong... Classes are damn nice to have (and templates would be nice too), but I don't want to drag in all of the STL and have my library be potentially unusable on small devices.

--
Sent from my Game Boy.