Quote:Original post by cypherx
I was actually inspired to roll-my-own scripting language after struggling to get LuaPlus to work with gcc under OSX. It appears to have been written exclusively for windows...and while there's no real dependency on anything win32, I couldn't get LuaPlus to compile on anything but my windows XP laptop.
Squirrel, however, I've never seen before and will definitely check out.
Thanks,
-Alex
Yes, LuaPlus is very powerful, and very cool, however it does rely heavily on template metaprogramming. Thus, when something fails on (library) compile or at runtime, it's harder to debug/fix (this is true of all the metaprogramming methods; boost-based methods will have similar issues. There is a partially implemented template library for Squirrel called Squadd, which uses boost (Alberto's macro based solution is easy and simple enough (and faster) than current template-based methods)). It is also interesting to note that a single metaprogramming template-based script-to-C++ call can incur around 10 (perhaps more) "helper" calls before calling C++ code (as well as the return process).
It would appear that Squirrel could compile on OSX's gcc (works on Linux gcc 3.2.3). They are also working on getting Squirrel to full 64-bit compatibility.
It would be cool to get more of LuaPlus's feature into Squirrel. For now, I'm testing with both scripting languages at the same time in the same app (easy to do).
Let us know if you get Squirrel working in OSX.