Add support for Luau
Luau (lowercase u, /ˈlu.aʊ/) is a fast, small, safe, gradually typed embeddable scripting language derived from Lua. https://luau-lang.org
Lupa should have support for Luau. Luau's C APIs have some variations. There is not currently a documented list of these changes, but this GitHub issue is tracking that: https://github.com/Roblox/luau/issues/251
If this can be done (mostly) via C macros, and doesn't add too much to the maintenance burden, and assuming that luau is not just someone's hobby language but something that is actually being used (I had never heard of it myself), I wouldn't object to looking at a PR. Once there is a working implementation, this can be added to the list in https://github.com/scoder/lupa/issues/196
If this can be done (mostly) via C macros
I've never worked with Lua or Luau's C APIs, but from the changes listed in Roblox/luau#251 I don't think it can be done mostly with C macros.
Up, Luau is a great variation of Lua, It was made by Roblox and is the current language for scripting, The best features are probably the typing and that it runs JIT (just line LuaJIT) and it's very fast and continuously being maintained
Up, Luau is a great variation of Lua, It was made by Roblox and is the current language for scripting, The best features are probably the typing and that it runs JIT (just line LuaJIT) and it's very fast and continuously being maintained
Luau doesn't run JIT:
While Luau doesn't currently implement JIT/AOT, this is likely to happen at some point; beyond the usual implementation challenges and security concerns, one significant limitation is that we don't have access to JIT on many platforms so for us maintaining excellent interpreted performance for gameplay and application code is more important than reaching peak FLOPS on numerical code.
https://luau-lang.org/why
Sorry for the bump but, any news on this? Really looking forward to it.
I would highly recommend this be implemented as Luau implements a lot of useful stuff such as typechecking, assignment operators and buffers while also being fully compatible with Lua 5.1 and being more optimized It also has a JIT compiler now