3 ms·
We use Lua 5.1 in an embedded system and it works great. We use only a few standard libraries and have several dozen of our custom libraries exposed as Lua APIs
by astatine 7y ago
We use Lua 5.1 in an embedded system and it works great. We use only a few standard libraries and have several dozen of our custom libraries exposed as Lua APIs. Predictable memory usage is really good. It's several years since we picked the then current version of Lua and have had no reason to upgrade. What would be the motivations to upgrade to a new Lua version on an embedded system where there is a working version?
- dividuum 7y agoI don't think there's any reason to upgrade unless some of your dependencies require a higher version and backporting is more expensive that porting over all your existing code. Since it sounds like you expose libraries with your own code and you have full control over your ecosystem, I don't think it makes sense to upgrade. At least in my project I see no reason to switch away from LuaJIT (so ~5.1/5.2). It works perfectly well and I don't see why that would change.
- ufo 7y agoIn an embedded system sometimes the "leave it alone" factor outweighs the new features. Anyway, you can find a summary of changes since 5.1 here: https://www.lua.org/versions.html https://www.lua.org/versions.html One of the biggest changes was the introduction of 64 bit integers in Lua 5.3 Perhaps my favorite little change is that you don't need to type = in the repl to print an expression anymore.