PanosK92 / SpartanEngine

A game engine with an emphasis on real-time cutting-edge solutions
https://panoskarabelas.com
MIT License
2.22k stars 187 forks source link

Multi-Language Scripting API #11

Open erherhh4herh opened 6 years ago

erherhh4herh commented 6 years ago

I know this engine is set to support C# scripting soon, but I have an idea that could potentially enable the engine to support a multitude of programming languages while only maintaining one. You may have heard of a programming language called "Haxe". Well, not many seem to know that it's compiler has an interesting feature that allows it to trans-pile to multiple different languages, including C#, C++, lua, java, etc! It might not be perfect, but Haxe, including it's compiler, is open-source... It's just an idea to consider!

If you wish to read up on the language and it's compiler, they have a manual: https://haxe.org/manual/compiler-usage.html

Thanks for your time, erherhh4herh.

PanosK92 commented 6 years ago

I haven't heard of it actually. At first glance, the fact that it's open source and that it can generate source code for a multitude of languages are two big pluses. If Haxe hides the trans-pilation complexity well enough (e.g. it trully comes down to those compiler arguments) then I can't think of anything negative.

Of course, I'm just thinking out loud here, I will have a look at it during the weekend to get a more in-depth understanding. I'll leave this issue open as a reminder that scripting has to be taken care of at some point and/or further discussion etc.

Thanks for your time as well erherhh4herh :-)

bayganik commented 3 years ago

is C# scripting still continuing?

PanosK92 commented 3 years ago

Yes. Although I'll probably switch to .Net Core instead of moving forward with Mono.