• Advertisement
Sign in to follow this  

What are the differences between Lua and Squirell??

This topic is 4865 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Can someone list some of the key differences between Squirell and Lua? I know Squirell is based on Lua and very similar, but what are the key differences in terms of the underpinnings, GC, and language constructs?

Share this post


Link to post
Share on other sites
Advertisement
Take a look at this post(http://www.gamedev.net/community/forums/topic.asp?topic_id=230021&PageSize=25&WhichPage=2
on the second page) I answer this question.

Plus Squirrel 1.1 will add weak assignment and proper classes/inheritance.

ciao
Alberto


Share this post


Link to post
Share on other sites
HI, fagiano,

I have read your post on the difference between Lua and Squirrel, and you mentioned that you use reference counting(RC) to recycle garbages. Also, you can call GC if needed explicitly. But why bother to present two sets of algorithms in it? Just curious.

Share this post


Link to post
Share on other sites
Reference counting helps spread the cost of memory deallocation out across time, potentially making performance more predictable. However garbage collection helps with cyclic references that might be hard to deallocate using reference counting alone.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement