lupa icon indicating copy to clipboard operation
lupa copied to clipboard

Add support for Luau

Open jmkd3v opened this issue 3 years ago • 11 comments

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

jmkd3v avatar Feb 23 '22 18:02 jmkd3v

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

scoder avatar Feb 23 '22 19:02 scoder

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.

jmkd3v avatar Feb 23 '22 19:02 jmkd3v

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

SpazElectro avatar Apr 09 '23 18:04 SpazElectro

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

jmkd3v avatar Apr 09 '23 22:04 jmkd3v

Sorry for the bump but, any news on this? Really looking forward to it.

SpazElectro avatar Mar 15 '24 12:03 SpazElectro

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

Hedwig7s avatar Apr 10 '24 14:04 Hedwig7s