I'm rather biased because I am a Roblox dev who's also contributed to Luau and its tooling environment. I would generally recommend Luau over Lua in most cases. If you don't need the simplicity that Lua provides (C is a lot easier to compile than C++), there's no contest to me, especially for game development. LuaJIT is great, but if you plan to ship to mobile or console, you can't use JIT. You could use its FFI libr…
Thank you, very insightful! Yes, mobile is very important to us, so we ruled out LuaJIT anyway. I've read that garbage collection has been improved in Luau, can we know now exactly when the last reference on a table is lost? It's not critical, but would simplify in things for us in a few situations. Thanks again!
Ask HN: Looking for platforms, other than Roblox, that have adopted Luau
21–25 of 25 posts
Re: Ask HN: Looking for platforms, other than Roblox, that have adopted Luau
#22Not crazy. Sounds like a good idea given your used case. Is there a transpired from Luau to Lua? Otherwise you could never go back, you would eventually be forced to use their run time. Do they have an interpreter only mode? Can you run on web assembly?
Good point, I don't know how hard transitioning back would be, we would need to review the language diff. Is it simple stuff like removing type annotations and reverting "i += 1" (Luau) by "i = i + 1" (Lua) ? I don't know if they have an interpreter only mode. Yes, our projet runs on WebAssembly. ( https://app.cu.bzh )
Re: Ask HN: Looking for platforms, other than Roblox, that have adopted Luau
#23Not crazy. Sounds like a good idea given your used case. Is there a transpired from Luau to Lua? Otherwise you could never go back, you would eventually be forced to use their run time. Do they have an interpreter only mode? Can you run on web assembly?
Re: Ask HN: Looking for platforms, other than Roblox, that have adopted Luau
#24Not crazy. Sounds like a good idea given your used case. Is there a transpired from Luau to Lua? Otherwise you could never go back, you would eventually be forced to use their run time. Do they have an interpreter only mode? Can you run on web assembly?
Darklua can compile Luau to Lua 5.1: https://github.com/seaofvoices/darklua