Transpiling to Luau #1022
Replies: 6 comments 1 reply
-
I don't expect anyone to answer this if they can't. If anyone wants to try this on their own the link is here: https://coffeescript.org/#try: If you didn't read my FYI, I converted JAVASCRIPT into coffeescript. Not c++ or lua. It doesn't look like c++ of lua anyways. |
Beta Was this translation helpful? Give feedback.
-
I have converted this to a discussion because we do not plan to provide any sort of transpiling tools. Roblox-TS already exists which you could look into. |
Beta Was this translation helpful? Give feedback.
-
This is actually amazing thank you! Is it just TypeScript though or is there any other language? Sorry for the late reply by the way. |
Beta Was this translation helpful? Give feedback.
-
This reminds me of the roblox-pyc project, which supports compiling/transpiling Python to Luau. It's part of the Roblox Compiler Collection, which also includes a number of experimental compilers for other languages (including C++!). |
Beta Was this translation helpful? Give feedback.
-
I totally support this feature, being able to write your code in other languages which are easier and then transpiling it to LUAu would be amazing for many many developers. Especially when it comes to OOP it would save you a lot of time because you write more code rather than thinking about writing it. Now I know there already is Roblox-TS but thats TypeScript and not Python or C++ (or wtv) and the existence of Roblox-TS does not mean that there is no need for an official transpiling tool. My point is that it would be great for developers to be able to choose which language they want to write their code in since everyone is best at the language the know the best (you can literally take google translate as an example, instead of everyone having to learn each others language, they can simply let the translator do the job for them). |
Beta Was this translation helpful? Give feedback.
-
I want to drop in and clarify/reiterate: the Luau team is not interested in maintaining a transpiler of any form at this time. We're a small team with limited resources, and it doesn't make sense to spend those resources on an auxiliary project right now when they can be better spent making the language itself better. |
Beta Was this translation helpful? Give feedback.
-
It's probably not possible, but is there a way to translate a different programming language to Luau? Like for example can I code c++ and possibly convert it to luau? If you still don't understand or probably think it's completely impossible let me explain. Jeremy Ashkenas, the creator of coffeescript, made some sort of terminal, on the coffeescript documentation, that allows you to write in any type of program language you type, and turns it into coffeescript. Here's a photo to show you:
Since Javascript is like coffeescript but less simpler, Luau is like c++ and lua combined. Roblox does use c++ and lua in their code, so I was wondering if you do the same thing that the coffeescript website did.
If you don't understand I totally get it, it's nonsense and I don't expect anyone to understand, and even if you do, "translate" c++ or lua to luau. If you want to try it yourself the link is here: https://coffeescript.org/#try:
FYI: THE EXAMPLE IS JAVASCRIPT!
Beta Was this translation helpful? Give feedback.
All reactions