SpartanEngine icon indicating copy to clipboard operation
SpartanEngine copied to clipboard

Multi-Language Scripting API

Open erherhh4herh opened this issue 5 years ago • 3 comments

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.

erherhh4herh avatar Nov 05 '18 20:11 erherhh4herh

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 :-)

PanosK92 avatar Nov 08 '18 18:11 PanosK92

is C# scripting still continuing?

bayganik avatar Aug 02 '21 13:08 bayganik

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

PanosK92 avatar Aug 02 '21 13:08 PanosK92