4 ms·
Please could you explain to me, if Squirrel is "similar to Lua, but uses a C like syntax", why I wouldn't want to use C or Lua instead? Is this about Steam? If
by vegabook 10y ago
Please could you explain to me, if Squirrel is "similar to Lua, but uses a C like syntax", why I wouldn't want to use C or Lua instead?
Is this about Steam? If not, is this (even) faster than Lua? Is it easier or safer than C? Am I missing something? You better have something seriously good to offer if in your first breath you're pitching yourself alongside the very best of both interpreted and compiled languages.
- Jtsummers 10y agoYou would use this in the same arena you'd use Lua, not where you'd use C. That is, you want something more flexible than compiled C for your particular application. Why you'd use it over Lua, I haven't figured out yet, but I don't use either so I have no basis for comparison.
- je42 10y agoActually, there are arena's where C is replaced by Lua (with LuaJIT) see OpenResty / Nginx with Lua. Where the normally C plugins to nginx are implemented with lua.
- technomancy 10y agoFrom the wiki (http://wiki.squirrel-lang.org/default.aspx/SquirrelWiki/Lua%20Compared%20to%20Squirrel.html http://wiki.squirrel-lang.org/default.aspx/SquirrelWiki/Lua%...) it looks like most of the reasons Squirrel was created stemmed from problems that have since been fixed in Lua. The remaining differences seem pretty minor; IMO having the OO system baked into the language instead of implemented in user-space is a step backwards. The 0-indexing might be nice if you do a lot of FFI with C, I suppose. Hardly worth giving up the insane performance of LuaJIT for though.