# Haxe

**URL:** https://community.haxe.org/c/haxe/1.md?page=1

[Latest](https://community.haxe.org/latest.md) · [Categories](https://community.haxe.org/categories.md) · [Tags](https://community.haxe.org/tags.md)

**Page:** 2

---

## [More stuff on type level composition](https://community.haxe.org/t/more-stuff-on-type-level-composition/4791)

<div class="topic-metadata">

**Author:** [@0b1kn00b](https://community.haxe.org/u/0b1kn00b)\
**Replies:** 0\
**Last updated:** [March 18, 2026, 11:07am UTC](https://community.haxe.org/t/more-stuff-on-type-level-composition/4791 "2026-03-18T11:07:25Z")

</div>

Doing combinators with A & B typedefs it really satisfying as afaict it’s completely open ended. This here allows you to compose an open ended, automatically typed partial function (like a fold), and it just requires th…

---

## [With the eval/macro interpreter, can I hotpatch new methods into a class at runtime?](https://community.haxe.org/t/with-the-eval-macro-interpreter-can-i-hotpatch-new-methods-into-a-class-at-runtime/4790)

<div class="topic-metadata">

**Author:** [@davidgiven](https://community.haxe.org/u/davidgiven)\
**Replies:** 1\
**Last updated:** [March 16, 2026, 7:27am UTC](https://community.haxe.org/t/with-the-eval-macro-interpreter-can-i-hotpatch-new-methods-into-a-class-at-runtime/4790 "2026-03-16T07:27:54Z")

</div>

Objective C allows this, and it’s incredibly useful for certain esoteric things — for the use case I have in mind, testing. Does the haxe eval/macro runtime allow this kind of run-time system manipulation?

---

## [Has anyone looked into Church encoding in the type system?](https://community.haxe.org/t/has-anyone-looked-into-church-encoding-in-the-type-system/4788)

<div class="topic-metadata">

**Author:** [@0b1kn00b](https://community.haxe.org/u/0b1kn00b)\
**Replies:** 2\
**Last updated:** [March 12, 2026, 8:10pm UTC](https://community.haxe.org/t/has-anyone-looked-into-church-encoding-in-the-type-system/4788 "2026-03-12T20:10:28Z")

</div>

I wondered if it could be done. The runtime value and the type system representation match up. I knew you could use church encoding to encode integers, but here the GADTs allow the type representation to have the same d…

---

## [It's possible to do the Eff Monad in Haxe](https://community.haxe.org/t/its-possible-to-do-the-eff-monad-in-haxe/4789)

<div class="topic-metadata">

**Author:** [@0b1kn00b](https://community.haxe.org/u/0b1kn00b)\
**Replies:** 0\
**Last updated:** [March 11, 2026, 4:03pm UTC](https://community.haxe.org/t/its-possible-to-do-the-eff-monad-in-haxe/4789 "2026-03-11T16:03:09Z")

</div>

Here’s another thing I didn’t know you could do, the Eff monad: function main(){ final c : Eff\<HasOne,Bool\> = new Eff(() -\> true); final d : Eff\<HasTwo,Float\> = new Eff(() -\> 99.9); final e = c.then( (x) -\> …

---

## [GC.setFinalizer vs NativeGc.addFinalizable?](https://community.haxe.org/t/gc-setfinalizer-vs-nativegc-addfinalizable/4782)

<div class="topic-metadata">

**Author:** [@singpolyma](https://community.haxe.org/u/singpolyma)\
**Replies:** 0\
**Last updated:** [March 3, 2026, 8:29pm UTC](https://community.haxe.org/t/gc-setfinalizer-vs-nativegc-addfinalizable/4782 "2026-03-03T20:29:20Z")

</div>

They are implemented quite differently inside of hxcpp but seem to have the same overall effect? Any reason to use one over the other?

---

## [Having Trouble Getting Haxe To Work With VSCode](https://community.haxe.org/t/having-trouble-getting-haxe-to-work-with-vscode/4777)

<div class="topic-metadata">

**Author:** [@MrBean](https://community.haxe.org/u/MrBean)\
**Replies:** 2\
**Last updated:** [February 22, 2026, 1:21am UTC](https://community.haxe.org/t/having-trouble-getting-haxe-to-work-with-vscode/4777 "2026-02-22T01:21:11Z")

</div>

I just installed haxe today and the lime extension for VSCode but when I try to open a project it reports “Haxe version check failed: “/bin/sh: line 1: haxe: command not found”“. I am on steamos witch is a branch of Arch…

---

## [Is Haxe still a good choice?](https://community.haxe.org/t/is-haxe-still-a-good-choice/4774)

<div class="topic-metadata">

**Author:** [@kenwayy](https://community.haxe.org/u/kenwayy)\
**Replies:** 3\
**Last updated:** [February 20, 2026, 1:46am UTC](https://community.haxe.org/t/is-haxe-still-a-good-choice/4774 "2026-02-20T01:46:45Z")

</div>

Hi everyone, I’m a beginner game developer but with some experience (I’ve made one small game and several prototypes). For the past few days, I’ve been considering migrating completely from Godot to Haxe, and this questi…

---

## [Custom string encodings](https://community.haxe.org/t/custom-string-encodings/4775)

<div class="topic-metadata">

**Author:** [@davidgiven](https://community.haxe.org/u/davidgiven)\
**Replies:** 0\
**Last updated:** [February 20, 2026, 12:11am UTC](https://community.haxe.org/t/custom-string-encodings/4775 "2026-02-20T00:11:00Z")

</div>

I’m trying to do some email processing. It’s a quagmire of weird encoding types… I find I have the requirement to write my own specific string encoding routines. It’d be really nice if I could just create my own Encodin…

---

## [Stuck. Attempt at creating an Infinite Treadmill Terrain with Away3D 5.0.9 (Code included)](https://community.haxe.org/t/stuck-attempt-at-creating-an-infinite-treadmill-terrain-with-away3d-5-0-9-code-included/4772)

<div class="topic-metadata">

**Author:** [@jul](https://community.haxe.org/u/jul)\
**Replies:** 2\
**Last updated:** [February 19, 2026, 7:40pm UTC](https://community.haxe.org/t/stuck-attempt-at-creating-an-infinite-treadmill-terrain-with-away3d-5-0-9-code-included/4772 "2026-02-19T19:40:42Z")

</div>

So far, this is the best result I have been able to achieve… (Haxe 4.3.6, Away3D 5.0.9, OpenFl 9.5.0, Lime 8.3.0, Hxcpp 4.3.2) It’s supposed to be an heightmap based terrain, with volumes of course, but it’s all fla…

---

## [A new C# target for Haxe 5](https://community.haxe.org/t/a-new-c-target-for-haxe-5/4764)

<div class="topic-metadata">

**Author:** [@jeremyfa](https://community.haxe.org/u/jeremyfa)\
**Replies:** 3\
**Last updated:** [February 16, 2026, 1:16pm UTC](https://community.haxe.org/t/a-new-c-target-for-haxe-5/4764 "2026-02-16T13:16:31Z")

</div>

I have been working on a new C# target for Haxe 5, and reached an important milestone: the test suite is passing! So I opened a draft pull request on main Haxe repository to start reviewing this work / discussing about i…

---

## [Haxe 4.2.4 and colyseus-haxe problem](https://community.haxe.org/t/haxe-4-2-4-and-colyseus-haxe-problem/4763)

<div class="topic-metadata">

**Author:** [@jul](https://community.haxe.org/u/jul)\
**Replies:** 3\
**Last updated:** [February 13, 2026, 12:58pm UTC](https://community.haxe.org/t/haxe-4-2-4-and-colyseus-haxe-problem/4763 "2026-02-13T12:58:19Z")

</div>

I’m trying to use this: However I get the following error when I try to compile with “lime test html5” : ../../src/io/colyseus/serializer/schema/Decoder.hx:326: characters 34-35 : Unexpected ? Any idea/workaround…

---

## [Enumerating maps of pointers doesn't work right?](https://community.haxe.org/t/enumerating-maps-of-pointers-doesnt-work-right/4769)

<div class="topic-metadata">

**Author:** [@davidgiven](https://community.haxe.org/u/davidgiven)\
**Replies:** 0\
**Last updated:** [February 12, 2026, 8:35pm UTC](https://community.haxe.org/t/enumerating-maps-of-pointers-doesnt-work-right/4769 "2026-02-12T20:35:10Z")

</div>

Example code: var value = 99; var valuep: Pointer\<Int\> = untyped \_\_cpp\_\_("&{0}", value); var map: Map\<Pointer\<Int\>, String\> = new Map(); map\[valuep\] = "thing"; trace(map); for (lhs =\> rhs in map) trace(l…

---

## [Is there any way to stop haxe from generating ::hx::ClassOf\<T\>() when passing in a haxe type to native code?](https://community.haxe.org/t/is-there-any-way-to-stop-haxe-from-generating-classof-t-when-passing-in-a-haxe-type-to-native-code/4747)

<div class="topic-metadata">

**Author:** [@Vortex](https://community.haxe.org/u/Vortex)\
**Replies:** 2\
**Last updated:** [February 11, 2026, 11:57pm UTC](https://community.haxe.org/t/is-there-any-way-to-stop-haxe-from-generating-classof-t-when-passing-in-a-haxe-type-to-native-code/4747 "2026-02-11T23:57:22Z")

</div>

Im making a haxe community account because im genuinely about to lose my mind with this if i try and pass a haxe type into a native c++ function function foo(bar:Dynamic) // does cool native stuff and then i try and c…

---

## [Questions regarding contributing to HaxeManual, and regarding documentation in the wider Haxe ecosystem](https://community.haxe.org/t/questions-regarding-contributing-to-haxemanual-and-regarding-documentation-in-the-wider-haxe-ecosystem/4755)

<div class="topic-metadata">

**Author:** [@kevin-kmetz](https://community.haxe.org/u/kevin-kmetz)\
**Replies:** 3\
**Last updated:** [February 11, 2026, 11:51am UTC](https://community.haxe.org/t/questions-regarding-contributing-to-haxemanual-and-regarding-documentation-in-the-wider-haxe-ecosystem/4755 "2026-02-11T11:51:26Z")

</div>

I’m presently working on several projects that use Haxe and various frameworks in the ecosystem, and so am gradually getting a tour of the ecosystem, and occasionally I come across places where HaxeManual or API document…

---

## [WASMIX - WASM In Haxe](https://community.haxe.org/t/wasmix-wasm-in-haxe/4767)

<div class="topic-metadata">

**Author:** [@back2dos](https://community.haxe.org/u/back2dos)\
**Replies:** 3\
**Last updated:** [February 10, 2026, 7:04am UTC](https://community.haxe.org/t/wasmix-wasm-in-haxe/4767 "2026-02-10T07:04:07Z")

</div>

Heya, I wanted to share a small experimental project with you, called wasmix: GitHub - back2dos/wasmix: WASM In haXe Essentially it allows you to compile parts of your code to WebAssembly when targeting JS. The perform…

---

## [Does the cpp HTTP API do persistent connections?](https://community.haxe.org/t/does-the-cpp-http-api-do-persistent-connections/4765)

<div class="topic-metadata">

**Author:** [@davidgiven](https://community.haxe.org/u/davidgiven)\
**Replies:** 5\
**Last updated:** [February 6, 2026, 11:11pm UTC](https://community.haxe.org/t/does-the-cpp-http-api-do-persistent-connections/4765 "2026-02-06T23:11:38Z")

</div>

If I make multiple consecutive HTTP requests to the same host using the C++ backend, is there any way to persuade the runtime to reuse the same socket for each connection? Context: I’m trying to fetch email from a JMAP …

---

## [How do I create Array\<Dynamic\> literals?](https://community.haxe.org/t/how-do-i-create-array-dynamic-literals/4756)

<div class="topic-metadata">

**Author:** [@davidgiven](https://community.haxe.org/u/davidgiven)\
**Replies:** 4\
**Last updated:** [January 24, 2026, 1:24am UTC](https://community.haxe.org/t/how-do-i-create-array-dynamic-literals/4756 "2026-01-24T01:24:45Z")

</div>

In haxe, \[1, 2, 3\] creates an array. All the members must be of the same type. If you want to create an array where the elements are of different types, you need to explicitly tell the compiler that it’s an Array\<Dynamic\>…

---

## [Lix 16: New Major Release](https://community.haxe.org/t/lix-16-new-major-release/4725)

<div class="topic-metadata">

**Author:** [@back2dos](https://community.haxe.org/u/back2dos)\
**Replies:** 10\
**Last updated:** [January 20, 2026, 6:34pm UTC](https://community.haxe.org/t/lix-16-new-major-release/4725 "2026-01-20T18:34:16Z")

</div>

Heyall, For any lix users out there: I’ve just published a new version of lix, which can handle multiple different versions of Neko at the same time, while not messing up older lix setups. If you update, you will thus …

---

## [How stable really is sys.net.Socket?](https://community.haxe.org/t/how-stable-really-is-sys-net-socket/4752)

<div class="topic-metadata">

**Author:** [@Davvex87](https://community.haxe.org/u/Davvex87)\
**Replies:** 3\
**Last updated:** [January 14, 2026, 5:54pm UTC](https://community.haxe.org/t/how-stable-really-is-sys-net-socket/4752 "2026-01-14T17:54:00Z")

</div>

I’m working on a big project that requires a server running sockets listening on a few ports for incoming clients. These sockets need to be running on for many weeks straight without failing, with client connections last…

---

## [Haxe Numeric Types](https://community.haxe.org/t/haxe-numeric-types/4746)

<div class="topic-metadata">

**Author:** [@commonwomble](https://community.haxe.org/u/commonwomble)\
**Replies:** 1\
**Last updated:** [January 2, 2026, 1:21am UTC](https://community.haxe.org/t/haxe-numeric-types/4746 "2026-01-02T01:21:00Z")

</div>

The Haxe docs say that Int represents an integral number. What does that mean? I am guessing it means a 32-bit signed integer? Or perhaps, because of JavaScript’s influence, it means the integral part of an IEEE float-6…

---

## [How to correctly compare algebraic Enums?](https://community.haxe.org/t/how-to-correctly-compare-algebraic-enums/4745)

<div class="topic-metadata">

**Author:** [@Alectronik](https://community.haxe.org/u/Alectronik)\
**Replies:** 2\
**Last updated:** [January 1, 2026, 2:35pm UTC](https://community.haxe.org/t/how-to-correctly-compare-algebraic-enums/4745 "2026-01-01T14:35:56Z")

</div>

enum E { One(i: Int); } class Main { public static function main() { var o1 = One(123); var o2 = One(123); var is = (o1 == o2); trace( is ); } } Output is false. Why? How ca…

---

## [Haxie Newb questions -- Memory Management](https://community.haxe.org/t/haxie-newb-questions-memory-management/4739)

<div class="topic-metadata">

**Author:** [@commonwomble](https://community.haxe.org/u/commonwomble)\
**Replies:** 1\
**Last updated:** [December 31, 2025, 6:14pm UTC](https://community.haxe.org/t/haxie-newb-questions-memory-management/4739 "2025-12-31T18:14:09Z")

</div>

Hi I am new to the Haxe community – considering using it for some cross platform apps. I have been studying the Haxe docs and have a question around Haxe memory management. Suppose I make a call from Haxie to an exter…

---

## [HaxeLib wont overwrite the first major version of my library](https://community.haxe.org/t/haxelib-wont-overwrite-the-first-major-version-of-my-library/4742)

<div class="topic-metadata">

**Author:** [@MonekyTheShep](https://community.haxe.org/u/MonekyTheShep)\
**Replies:** 1\
**Last updated:** [December 30, 2025, 11:17pm UTC](https://community.haxe.org/t/haxelib-wont-overwrite-the-first-major-version-of-my-library/4742 "2025-12-30T23:17:12Z")

</div>

How do you overwrite version 1.0.0. It seems to not allow for it

---

## [Haxie Newb questions -- The Developer Experience](https://community.haxe.org/t/haxie-newb-questions-the-developer-experience/4740)

<div class="topic-metadata">

**Author:** [@commonwomble](https://community.haxe.org/u/commonwomble)\
**Replies:** 2\
**Last updated:** [December 30, 2025, 1:21pm UTC](https://community.haxe.org/t/haxie-newb-questions-the-developer-experience/4740 "2025-12-30T13:21:03Z")

</div>

Hi I am new to the Haxe community – considering using it for some cross platform apps. I have some questions around the developer experience with Haxe. I am used to developing in environments with rapid turnaround – c…

---

## [Haxe is sooo](https://community.haxe.org/t/haxe-is-sooo/4736)

<div class="topic-metadata">

**Author:** [@semmi](https://community.haxe.org/u/semmi)\
**Replies:** 0\
**Last updated:** [December 28, 2025, 3:05am UTC](https://community.haxe.org/t/haxe-is-sooo/4736 "2025-12-28T03:05:48Z")

</div>

amazing … → creating little new macro today to \`switch\` between existing typed(files) changing type and type-\\params/ Totally AWESOME \\o/^^ → https://github.com/maitag/viktor/blob/main/src/Viktor.hx#L5 (haxe my LO…

---

## [How to prevent macro from running when using vshaxe and only run when actually compiling code?](https://community.haxe.org/t/how-to-prevent-macro-from-running-when-using-vshaxe-and-only-run-when-actually-compiling-code/4723)

<div class="topic-metadata">

**Author:** [@Davvex87](https://community.haxe.org/u/Davvex87)\
**Replies:** 10\
**Last updated:** [December 23, 2025, 9:08am UTC](https://community.haxe.org/t/how-to-prevent-macro-from-running-when-using-vshaxe-and-only-run-when-actually-compiling-code/4723 "2025-12-23T09:08:53Z")

</div>

How can i prevent my macro from being called because of the haxe LSP when coding my project in vscode with vshaxe and only run the function when we actually run haxe build.hxml?

---

## [The Haxe Paradox: What Can We Do to Make Haxe Less 'Boring'?](https://community.haxe.org/t/the-haxe-paradox-what-can-we-do-to-make-haxe-less-boring/4717)

<div class="topic-metadata">

**Author:** [@neimanpinchas](https://community.haxe.org/u/neimanpinchas)\
**Replies:** 16\
**Last updated:** [December 19, 2025, 6:48am UTC](https://community.haxe.org/t/the-haxe-paradox-what-can-we-do-to-make-haxe-less-boring/4717 "2025-12-19T06:48:05Z")

</div>

I need to start this post by saying I am not joking. I am a huge supporter of Haxe, and I genuinely believe we should maintain a collection of methods to combat the sense of “boringness” that can sometimes accompany the …

---

## [Targeting Flash (in fact Ruffle) for new code in 2025](https://community.haxe.org/t/targeting-flash-in-fact-ruffle-for-new-code-in-2025/4727)

<div class="topic-metadata">

**Author:** [@rot26](https://community.haxe.org/u/rot26)\
**Replies:** 4\
**Last updated:** [December 14, 2025, 10:32pm UTC](https://community.haxe.org/t/targeting-flash-in-fact-ruffle-for-new-code-in-2025/4727 "2025-12-14T22:32:26Z")

</div>

How far back in time do I need to drive my DeLorean to develop (green fields code) for Flash/Ruffle in Haxe? I don’t have much Haxe ecosystem experience so an answer like “I would do this, with these ingredients (libs)”…

---

## [If some one is "booring" here ,) -\> write SAMPLES together!](https://community.haxe.org/t/if-some-one-is-booring-here-write-samples-together/4722)

<div class="topic-metadata">

**Author:** [@semmi](https://community.haxe.org/u/semmi)\
**Replies:** 0\
**Last updated:** [December 5, 2025, 4:50am UTC](https://community.haxe.org/t/if-some-one-is-booring-here-write-samples-together/4722 "2025-12-05T04:50:44Z")

</div>

into boring wintertimes uKnow → i am try to make sound by GPU again: to make also the AUdIO anD sndSPICE→ ################ lime -\>SYNC\<- peote fully ######### (^\_^) ######### inside my little environment So here my…

---

## [A hard to form question about Haxe and its nature](https://community.haxe.org/t/a-hard-to-form-question-about-haxe-and-its-nature/4719)

<div class="topic-metadata">

**Author:** [@methinkus](https://community.haxe.org/u/methinkus)\
**Replies:** 7\
**Last updated:** [December 2, 2025, 8:16am UTC](https://community.haxe.org/t/a-hard-to-form-question-about-haxe-and-its-nature/4719 "2025-12-02T08:16:17Z")

</div>

I tried writing some basic code to see how Haxe feels, and I naturally started with a simple serializer. I chose HashLink runtime, betting on it being maintained actively and on deep integration with the language. Howe…

[Previous page](https://community.haxe.org/c/haxe/1.md)

[Next page](https://community.haxe.org/c/haxe/1.md?page=2)
