Would Haxe work for creating libraries?

后端 未结 2 534
被撕碎了的回忆
被撕碎了的回忆 2020-12-06 17:43

I was thinking of using Haxe for it\'s cross-language ability, but wasn\'t sure if it was the best for this task. I\'m going to write a generic library that should be able t

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-06 18:17

    Haxe isn't designed for writing cross-language libraries, although it can be done and I've seen a few examples that it works:

    • polygonal, a data structure and physics engine usable in Haxe and AS3.
    • verb, a NURBS-based CAD Library that is usable in Haxe and JS.
    • daff, a library for comparing tables, usable in JS, Python, Java, C#, C++, Ruby, and PHP.

    However, for C++ specifically, since hxcpp generates a lot of Haxe specific stuff, including GC, it may need plenty of cleanup or it is non-trivial to use. You may ask in the Haxe mailing list.

提交回复
热议问题