Usage with luau lang

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
3xau1o
Prole
Posts: 4
Joined: Sat Nov 30, 2024 4:28 pm

Usage with luau lang

Post 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
User avatar
dusoft
Party member
Posts: 654
Joined: Fri Nov 08, 2013 12:07 am
Location: Europe usually
Contact:

Re: Usage with luau lang

Post by dusoft »

I don't think so, LOVE uses standard Lua.
MrFariator
Party member
Posts: 559
Joined: Wed Oct 05, 2016 11:53 am

Re: Usage with luau lang

Post 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.
3xau1o
Prole
Posts: 4
Joined: Sat Nov 30, 2024 4:28 pm

Re: Usage with luau lang

Post 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
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 9 guests