Live data from Hacker News

Haxe: Cross-Platform Development's Best-Kept Secret

toptal.com

1–10 of 42 posts

Re: Haxe: Cross-Platform Development's Best-Kept Secret

#2
It might be time to try Haxe. I’ve always wondered why it doesn’t get a lot of buzz around it. It seems like a genuinely good way to achieve “write once, run anywhere.”

It’s always interesting how the chicken-and-egg problem applies to programming languages.

Re: Haxe: Cross-Platform Development's Best-Kept Secret

#3
post #2

It might be time to try Haxe. I’ve always wondered why it doesn’t get a lot of buzz around it. It seems like a genuinely good way to achieve “write once, run anywhere.” It’s always interesting how the chicken-and-egg problem applies to programming languages.

Its a nice language though some of the output is weird. Like I did a PHP target as a test and I think I did a print statement and it added a lot of code in there when i was expecting a simple echo or something. So it can have its downsides depending on what you do. Definitely curious where it stands for Mobile though.

Re: Haxe: Cross-Platform Development's Best-Kept Secret

#4
The biggest thing that interests me about Haxe is it is rare to find a high-level language with a sophisticated static type system and familiar syntax. This is why TypeScript is so much beloved, but Haxe has some awesome features TypeScript lacks, like a pattern-matching switch statement (with guards), and array comprehensions.

Re: Haxe: Cross-Platform Development's Best-Kept Secret

#5
post #4

The biggest thing that interests me about Haxe is it is rare to find a high-level language with a sophisticated static type system and familiar syntax. This is why TypeScript is so much beloved, but Haxe has some awesome features TypeScript lacks, like a pattern-matching switch statement (with guards), and array comprehensions.

And don't forget the macro preprocessor, it's made life a lot easier for me in so many ways. Syntax sugar, automatic asset inclusion, compiling tasks, and much more.

Re: Haxe: Cross-Platform Development's Best-Kept Secret

#6
post #2

It might be time to try Haxe. I’ve always wondered why it doesn’t get a lot of buzz around it. It seems like a genuinely good way to achieve “write once, run anywhere.” It’s always interesting how the chicken-and-egg problem applies to programming languages.

Its a nice language though some of the output is weird. Like I did a PHP target as a test and I think I did a print statement and it added a lot of code in there when i was expecting a simple echo or something. So it can have its downsides depending on what you do. Definitely curious where it stands for Mobile though.

It's great for mobile games - it has a nice foundational library, OpenFL, and an assortment of wd game engines.

Re: Haxe: Cross-Platform Development's Best-Kept Secret

#8
post #7

Is haxe used for anything other than games? The userbase seems to have a focus on flash, games etc.

I’ve used it for web (my failed startup was in Haxe, my side projects still are mostly Haxe).

To be honest these days I mostly just use it as a “better JavaScript” because I’d prefer my backend to be NodeJS rather than PHP or Java or sone other Haxe target. But I really do prefer it to JavaScript, even with Babel and Flow and ES6 and all the things to modernise Js.

Re: Haxe: Cross-Platform Development's Best-Kept Secret

#9
post #7

Is haxe used for anything other than games? The userbase seems to have a focus on flash, games etc.

For sure--see the examples of FontStruct, TiVo, DAZN, Heidi, etc. in the article, along with the part just before the quick start section. :) (It's true, it does have a large gamedev following, but it's actually quite versatile.)

Re: Haxe: Cross-Platform Development's Best-Kept Secret

#10
post #7

Is haxe used for anything other than games? The userbase seems to have a focus on flash, games etc.

There are some people used it quite extensively for web development (both front and back-end). This year's Hong Kong Open Source Conference will feature two Haxe talks, both are web focused:

* https://hkoscon.org/2018/topic/haxe-better-javascript-practi...

* https://hkoscon.org/2018/topic/type-safe-rest-api-haxe

I believe there will be live streams, or you can checkout the video that will be available shortly after.

(I'm a member of the Haxe Foundation, also the organizer of the HKOSCon Haxe track)

Post reply on HN