Live data from Hacker News

Haxe 4.2

community.haxe.org

1–10 of 105 posts

Re: Haxe 4.2

#2
I remember thinking that this was a MUCH better language than AS3 for Flash & Flex development. Now, 10 years later, I'm honestly surprised that it still exists and is being maintained.

I'm curious how popular it is at this point? Is there a big benefit over something like Typescript now?

Re: Haxe 4.2

#5
Does anyone have any real world experiences with Haxe? I've been hearing about it for years and generally thought "wow, that's neat!" but that's been it. Does it actually achieve what it aims for?

Re: Haxe 4.2

#6
For those not already familiar with Haxe perhaps the most interesting property is the huge variety of transpilation targets (1). I would not call the resulting code highly readable, but I don't know of anything else with this level of targetability.

1: https://haxe.org/documentation/introduction/compiler-targets...

Re: Haxe 4.2

#7
This looks pretty neat. How does this work, do you code and specify a target output? Curious if there is a link somewhere that shows the output files ...

I like learned on the front-page example a multi-state (?) switch statement. What is this called and any other languages support this?

switch [playerA.move, playerB.move] { case [Rock, Scissors] | [Paper, Rock] | [Scissors, Paper]: Winner(playerA);

...

Re: Haxe 4.2

#8
post #2

I remember thinking that this was a MUCH better language than AS3 for Flash & Flex development. Now, 10 years later, I'm honestly surprised that it still exists and is being maintained. I'm curious how popular it is at this point? Is there a big benefit over something like Typescript now?

The benefit is that the Haxe compiler can target many more languages than any Typescript compiler. I've never used it, but I've seen some presentations and AFAICT its features and relative maturity (particularly of the overall project and community; i.e. its brain trust) make it a useful piece of technology for some companies making real products. Version compatibility is spotty, but that seems to be because Haxe features and targets are largely demand-driven by whatever product someone is currently trying to design and ship.

Re: Haxe 4.2

#9
post #2

I remember thinking that this was a MUCH better language than AS3 for Flash & Flex development. Now, 10 years later, I'm honestly surprised that it still exists and is being maintained. I'm curious how popular it is at this point? Is there a big benefit over something like Typescript now?

Multiple compiler backends.

Re: Haxe 4.2

#10

looks better than typescript at first glance

Well yes but it's not the same thing at all.

Ecma / JavaScript -> Typescript

Ecma / ActionScript -> Haxe

Haxe is truly fascinating and Neko is a great engine as far as I could test. But the language suffers from global scale adoption, not due for the quality but due to the lack of big names representing, I feel.

Post reply on HN