I write some caving software in JS/Java and a friend of mine writes his own in C++. We’re looking to combine forces and I’m hoping to use Haxe to do that.
For example I want to write some file parsers in Haxe and then publish the output JS as npm packages, output Java as Maven packages that I can use in my projects, and output C++ that he can use in his projects.
However I get the vague impression that people mostly put the bulk of their application code in Haxe and e.g. call Java code via Haxe externals rather than have the bulk of their application code in Java and call to Haxe-generated Java code. Is this the case for most users or do some people use it to share routines between vastly different programs written in different languages?
For instance the hxjava output bundles the
haxe/lang stuff into the JAR so practically speaking we can only use one JAR output by Haxe, unless we move
haxe/lang to a separate JAR manually. I see the
--java-lib option I’m guessing it’s for classes our Haxe externs need to reference rather than
Has anyone used Haxe for publishing packages in target languages like I’m describing? Have any tips?