News for hackers. Stuff that matters.
Re:OneLang – A tool to help writing code in multiple languag... by tpetry on Monday February 19, 2018 @03:34PM (#16415513)
If anybody is looking for something stable for years, have a look at haxe [1]

[1] https://haxe.org

Re:OneLang – A tool to help writing code in multiple languag... by NicoJuicy on Monday February 19, 2018 @04:49PM (#16416024)
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

Re:OneLang – A tool to help writing code in multiple languag... by simonpantzare on Monday February 19, 2018 @05:17PM (#16416211)
Not sure if it helps, but have a look at Swagger/OpenAPI if you haven't already.
Re:OneLang – A tool to help writing code in multiple languag... by NicoJuicy on Monday February 19, 2018 @08:11PM (#16417111)
Good call, installed it in the past for trying the exact same thing :)
Re:OneLang – A tool to help writing code in multiple languag... by MikeTheGreat on Tuesday February 20, 2018 @12:52AM (#16418141)
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?

Re:OneLang – A tool to help writing code in multiple languag... by sshine on Tuesday February 20, 2018 @01:22AM (#16418231)
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.

Re:OneLang – A tool to help writing code in multiple languag... by damoebius on Wednesday February 21, 2018 @01:48PM (#16431848)
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.
[dead]
Re:OneLang – A tool to help writing code in multiple languag... by Stratoscope on Monday February 19, 2018 @03:57PM (#16415684)
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.

Re:OneLang – A tool to help writing code in multiple languag... by Cyph0n on Monday February 19, 2018 @04:32PM (#16415915)
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.
Re:OneLang – A tool to help writing code in multiple languag... by platz on Monday February 19, 2018 @04:42PM (#16415971)
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

Re:OneLang – A tool to help writing code in multiple languag... by bringtheaction on Monday February 19, 2018 @06:09PM (#16416498)
> 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.

Re:OneLang – A tool to help writing code in multiple languag... by fao_ on Monday February 19, 2018 @04:10PM (#16415776)
What's the problem? It's a related project for those people who are interested in this sort of thing.