Page 1 of 1

Usage with luau lang

Posted: Sat Nov 30, 2024 4:33 pm
by 3xau1o
newbie here
Found https://luau.org/ a typed superset of lua, in a similar way typescript is a typed superset of javascript, would it be possible to use it in Love2D?

All existing lua 5.1 code is compatible with luau, but luau has more features and it's more type safe

Re: Usage with luau lang

Posted: Sat Nov 30, 2024 6:05 pm
by dusoft
I don't think so, LOVE uses standard Lua.

Re: Usage with luau lang

Posted: Sat Nov 30, 2024 6:23 pm
by MrFariator
You can rebuild LÖVE from source to replace luajit (which is an off-shoot of lua 5.1 with some features from 5.2) with luau (which itself is an off-shoot of 5.1). However, due to the differences between luajit and luau, you may need some elbow grease to do so.

Re: Usage with luau lang

Posted: Sat Nov 30, 2024 9:11 pm
by 3xau1o
thanks, yes actually realized it's not possible as Luau has it's own VM and does not compile down to lua like moonscript or teal
got teal working with love2D, should be enough