Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Luau #204

Open
jmkd3v opened this issue Feb 23, 2022 · 6 comments
Open

Add support for Luau #204

jmkd3v opened this issue Feb 23, 2022 · 6 comments
Labels

Comments

@jmkd3v
Copy link

jmkd3v commented Feb 23, 2022

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: luau-lang/luau#251

@scoder
Copy link
Owner

scoder commented Feb 23, 2022

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 #196

@scoder scoder added the feature label Feb 23, 2022
@jmkd3v
Copy link
Author

jmkd3v commented Feb 23, 2022

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 luau-lang/luau#251 I don't think it can be done mostly with C macros.

@SpazElectro
Copy link

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

@jmkd3v
Copy link
Author

jmkd3v commented Apr 9, 2023

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

@SpazElectro
Copy link

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

@Hedwig7s
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants