Live data from Hacker News

Haxe 4.2

community.haxe.org

41–50 of 105 posts

Re: Haxe 4.2

#41
post #18

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?

It’s been used to make a number of popular games - Dead Cells and Northgard come to mind, and I think there is a decent number more.

Dead Cells was made on Haxe? Wow

Re: Haxe 4.2

#43
post #18

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?

It’s been used to make a number of popular games - Dead Cells and Northgard come to mind, and I think there is a decent number more.

Also BrawlHalla on consoles

Re: Haxe 4.2

#45
post #42

I can't tell from the project page whether this is an obligate-GC language.

IIRC, Haxe is kind of a meta language that transpiles through different language/targets. IIRC, mostly GC, yes.

Re: Haxe 4.2

#46
Since I've got current pet hobby regarding static compilation (Zig is good friend at this point, the cached static cross-platform output C compiles via musl is crazy good!) I had to look up if Haxe supports this, turns out yes* when targeting C++.

*https://github.com/HaxeFoundation/hxcpp/issues/729

Re: Haxe 4.2

#47

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?

The showcase page for games [0] is extremely impressive you got some really major indie titles there e.g.

- Papers Please

- Dead Cells

- Northgard

- Rymdkapsel

- Evoland

[0] https://haxe.org/use-cases/games/

Re: Haxe 4.2

#48
post #33
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?

I have not used Haxe, but looked over at it while writing Typescript - one thing I noticed were macros, which could make writing high-performance Typescript/javascript much more bearable. For example iterator protocols in JavaScript almost necessarily allocate memory (especially for user-defined types), but manually writing a for loop does not (but is a bunch of copypasta for a complex data structure).

Haxe macros are very powerful, but not needed for that particular issue - the compiler supports inlining of methods and even constructors (which is useful for iterators in particular): https://haxe.org/manual/lf-inline-constructor.html

Re: Haxe 4.2

#49
I used Haxe full time for several years for web development (even started a startup with it!)

It predated Typescript, so at the time the killer feature was being able to write type-safe JavaScript, and being able to share code with a backend which is potentially another language (like PHP).

These days I’m at a company with a lot of TS, and too many other languages (Elm, Ruby, Kotlin, Elixir...) so we’re not looking to add something like Haxe, but I often still miss the expressive type system, the really nice language server integrations, having the multiple output targets so it’s the same language everywhere, and the type safe macro system.

So I often use Haxe for hobby projects still, but then I miss things from the JS ecosystem. You have access to NPM but there’s no equivalent project to DefinitelyTyped. Some of the tools integrate well (webpack as an example), some don’t (Jest). React works, but the way JSX works doesn’t integrate as nicely with the language server. Etc

I also missed some modern es6 syntax. Haxe finally got arrow functions in v4. The thing I’m excited by in this release is module level fields - previously everything had to be in a class, now they don’t. Haxe was already good for writing functional style code. Now when you read the source code it’ll look like it and not have the “class” keyword when you don’t need it.

Re: Haxe 4.2

#50
post #18

Earlier quoted context omitted.

It’s been used to make a number of popular games - Dead Cells and Northgard come to mind, and I think there is a decent number more.

Dead Cells was made on Haxe? Wow

Haxe was made by one of the founders of the studio
Post reply on HN