How hard would it be to make a converter nim to haxe source. You could concentrate on a limited subset.
Modules could be translated to a class. Proc becomes static function in that class. Import x expands to multiple static imports of all a class functions. {}; are added. Type Object makes a class. Stack allocation becomes heap.
It would be godsend if someone is making Haxe target for Nim.
Since I'm working on an XSL library(xslt/xpath/xsl-fo) implementation in Nim, having the Haxe target will enable interface for other platforms. Think PHP, JS, etc. perfect for ending the Saxonica java implementation monopoly.
I didn't know that Nim has PHP target. If it is stable enough then I can finally break free from Haxe.
Most of my work requires PHP because wordpress and drupal, and I've been using Haxe to get away from PHP.