Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If anybody is looking for something stable for years, have a look at haxe [1]

[1] https://haxe.org




Do you have an example on how to use Haxe for a cross platform API client? Eg. Develop once, use in 12 different programming languages?

The first requirement seems to be a go ( https://api.haxe.org/haxe/Http.html ) but i'm not sure of other variables for implementing this

Other sources:

- https://github.com/tbrosman/haxe-rest-client

- https://github.com/tnwinc/rehx


Not sure if it helps, but have a look at Swagger/OpenAPI if you haven't already.


Good call, installed it in the past for trying the exact same thing :)


Can I ask how Haxe is connected to Flash?

For some reason, the first time I looked at Haxe I got the impression that Haxe is an open-source Flash / Flash successor. (Mostly, I think, because Flash keeps getting mentioned with projects associated with Haxe, like OpenFL and Flambe, and several times in the Haxe Wikipedia article).

Clearly Haxe isn't "just" an open Flash, but how is Haxe related to Flash?


Haxe can compile to Flash, which is such a distinguishing feature that people actually use it to write Flash applets:

https://haxe.org/manual/target-flash-getting-started.html

If you have ever tried to write Flash applets the old-fashioned way, it feels more like a scriptable paint program.


Haxe is a programming language and should be compared to as3. It is much more powerful and can compile to 12 targets including JavaScript,php, c++, and as3. OpenFL is a cross-plateform port of the flash API in Haxe. All this flash stuff are just a part of an amazing technology.


[flagged]


I realize it's sometimes not considered cool to point out competing projects, but the OneLang project FAQ explicitly says that it's a proof of concept, not ready for production use, with no documentation, and may never be finished.

https://github.com/koczkatamas/onelang/wiki/FAQ

OneLang does seem like a nifty project, but given its current state, it seems pretty reasonable to point toward Haxe for anyone interested in something similar that has been around for years, well documented, and used in production by many teams.


How so? Haxe is the de facto king of the compile-to-everything space. Therefore, it's inevitable that Haxe will be mentioned on a submission like this.


also consider https://blog.plan99.net/graal-truffle-134d8f28fb69

> Truffle is a framework for writing interpreters with annotations and small bits of extra code in them which, when Truffle is paired with its sister project Graal, allow those interpreters to be converted into JIT compiling VMs … automatically.

> If Truffle is a framework for writing AST interpreters, then Graal is the thing that makes them fast.

> Truffle provides a language interop framework called Polyglot that allows Truffle languages to call each other


> Haxe is the de facto king of the compile-to-everything space.

Indeed, I remember stumbling across it years ago while looking for a way to develop Flash games without Adobe Flash Professional. I never got around to actually try it but I keep seeing it every now and then, even saw a couple of books about it in a physical bookstore some years ago. It was the first thing that popped to mind for me as well when I saw that OP title mentioned write code in multiple languages at the same time.


What's the problem? It's a related project for those people who are interested in this sort of thing.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: