# Latest

**URL:** https://community.haxe.org/latest.md?page=5

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

**Page:** 6

---

## [PHP use keyword](https://community.haxe.org/t/php-use-keyword/4428)

<div class="topic-metadata">

**Author:** [@pat](https://community.haxe.org/u/pat)\
**Replies:** 3\
**Last updated:** [October 16, 2024, 10:48am UTC](https://community.haxe.org/t/php-use-keyword/4428 "2024-10-16T10:48:17Z")

</div>

Hello Haxers! I started using Haxe for a legacy PHP project, as a “more sane” alternative for new features, and at the moment im (re) writing old features to Haxe to get better type safety, and access to the awesome l…

---

## [Debugging cppia?](https://community.haxe.org/t/debugging-cppia/4373)

<div class="topic-metadata">

**Author:** [@keslinger](https://community.haxe.org/u/keslinger)\
**Replies:** 3\
**Last updated:** [October 6, 2024, 7:01pm UTC](https://community.haxe.org/t/debugging-cppia/4373 "2024-10-06T19:01:50Z")

</div>

Howdy. I’ve got a hxcpp host loading .cppia files from a watched directory. All is working great, but I can’t figure out how to step into the loaded modules. Is there a way to do that? I’d love to be able to set brea…

---

## [Define function args via reification](https://community.haxe.org/t/define-function-args-via-reification/4263)

<div class="topic-metadata">

**Author:** [@Geokureli](https://community.haxe.org/u/Geokureli)\
**Replies:** 4\
**Last updated:** [October 3, 2024, 5:17pm UTC](https://community.haxe.org/t/define-function-args-via-reification/4263 "2024-10-03T17:17:56Z")

</div>

I know how to define a function via: FFun({ args:functionArgs, expr: macro { $b{\[fields.map((f)-\>macro this.push($i{f.name}))\]} return length; } }); But Is there a way to define the function args via reificatio…

---

## [Can't watch value of static member in VS Code Haxe at runtime](https://community.haxe.org/t/cant-watch-value-of-static-member-in-vs-code-haxe-at-runtime/4366)

<div class="topic-metadata">

**Author:** [@Kyliathy](https://community.haxe.org/u/Kyliathy)\
**Replies:** 2\
**Last updated:** [September 30, 2024, 10:10pm UTC](https://community.haxe.org/t/cant-watch-value-of-static-member-in-vs-code-haxe-at-runtime/4366 "2024-09-30T22:10:41Z")

</div>

Got Continuum.hx, got Container in it, got characters in Container. Can’t find how to see, at runtime, during debug, the value of Continuum.Container.characters. Any ideas? This adds to the cumbersomeness of working wit…

---

## [Prevent Program From Crashing Regardless](https://community.haxe.org/t/prevent-program-from-crashing-regardless/4355)

<div class="topic-metadata">

**Author:** [@Ongokiller50](https://community.haxe.org/u/Ongokiller50)\
**Replies:** 1\
**Last updated:** [September 25, 2024, 7:50pm UTC](https://community.haxe.org/t/prevent-program-from-crashing-regardless/4355 "2024-09-25T19:50:14Z")

</div>

Is there any way to make my program not crash regardless of the error?

---

## [Lua Target Bloated?](https://community.haxe.org/t/lua-target-bloated/4337)

<div class="topic-metadata">

**Author:** [@inc0der](https://community.haxe.org/u/inc0der)\
**Replies:** 1\
**Last updated:** [September 16, 2024, 11:10pm UTC](https://community.haxe.org/t/lua-target-bloated/4337 "2024-09-16T23:10:40Z")

</div>

Is it normal for the Lua target to have 900+ lines for a simple test class with a trace in it? I have DCE set to full, but maybe I’m doing something wrong? I know there should be a bit of extra boilerplate like the JS t…

---

## [TUnification.Unify\_error(\_)](https://community.haxe.org/t/tunification-unify-error/2880)

<div class="topic-metadata">

**Author:** [@filt3rek](https://community.haxe.org/u/filt3rek)\
**Replies:** 12\
**Last updated:** [September 10, 2024, 7:51pm UTC](https://community.haxe.org/t/tunification-unify-error/2880 "2024-09-10T19:51:09Z")

</div>

Hej ! I have a huge projet, I’ve done many changes and now I get “TUnification.Unify\_error(\_)” without any more infos. No dump even with -D dump. Can anyone hint me please where from it can come, where can I look pleas…

---

## [While as an expression](https://community.haxe.org/t/while-as-an-expression/4334)

<div class="topic-metadata">

**Author:** [@neimanpinchas](https://community.haxe.org/u/neimanpinchas)\
**Replies:** 2\
**Last updated:** [September 9, 2024, 1:16pm UTC](https://community.haxe.org/t/while-as-an-expression/4334 "2024-09-09T13:16:09Z")

</div>

Haxe is said to follow everything is an expression, which is true with if, try, blocks, and list comprehensations, this is very good to reduce the chance of not initializing a varibale in some condition. But it seems no…

---

## [ApplicationMain.hx:321: characters 48-52](https://community.haxe.org/t/applicationmain-hx-characters-48-52/4332)

<div class="topic-metadata">

**Author:** [@Drplague6510](https://community.haxe.org/u/Drplague6510)\
**Replies:** 1\
**Last updated:** [September 2, 2024, 3:15pm UTC](https://community.haxe.org/t/applicationmain-hx-characters-48-52/4332 "2024-09-02T15:15:35Z")

</div>

PS D:\\psych2\\hxCodec-main\> lime test windows Type not found : art.Version ERROR export/release/windows/haxe/ApplicationMain.hx:321: characters 48-52 321 | @:keep @:dox(hide) class DocumentClass extends Main {} | …

---

## [Having the Extern blues again :(](https://community.haxe.org/t/having-the-extern-blues-again/4329)

<div class="topic-metadata">

**Author:** [@Kyliathy](https://community.haxe.org/u/Kyliathy)\
**Replies:** 3\
**Last updated:** [August 28, 2024, 7:29am UTC](https://community.haxe.org/t/having-the-extern-blues-again/4329 "2024-08-28T07:29:51Z")

</div>

Hi people :). For more than 5 years I’ve been toiling away at a rather massive Haxe project, which I intended and still intend to be a pretty major release for the ecosystem. It’s still under wraps however, until I clari…

---

## [Nwjs library archived](https://community.haxe.org/t/nwjs-library-archived/4192)

<div class="topic-metadata">

**Author:** [@zagortenej](https://community.haxe.org/u/zagortenej)\
**Replies:** 4\
**Last updated:** [August 25, 2024, 11:08am UTC](https://community.haxe.org/t/nwjs-library-archived/4192 "2024-08-25T11:08:32Z")

</div>

Just found out today that this exists: GitHub - cedx/nwjs.hx: Type definitions for using NW.js with Haxe., Haxe extern definitions for the nw.js platform (https://nwjs.io/) and noticed that the repository has been archiv…

---

## [How to convert haxe.macro.Type to Expr?](https://community.haxe.org/t/how-to-convert-haxe-macro-type-to-expr/4313)

<div class="topic-metadata">

**Author:** [@barisyild](https://community.haxe.org/u/barisyild)\
**Replies:** 5\
**Last updated:** [August 24, 2024, 9:58pm UTC](https://community.haxe.org/t/how-to-convert-haxe-macro-type-to-expr/4313 "2024-08-24T21:58:39Z")

</div>

var clazz = Context.getType("SampleClass"); var expr = macro $clazz; haxe.macro.Type should be haxe.macro.Expr var clazz = Context.toComplexType(Context.getType("SampleClass")); var expr = macro $clazz; Null\<haxe.macr…

---

## [\[js-es6\]Must call \`super()\` constructor before accessing \`this\` in classes derived from an extern class with constructor](https://community.haxe.org/t/js-es6-must-call-super-constructor-before-accessing-this-in-classes-derived-from-an-extern-class-with-constructor/2870)

<div class="topic-metadata">

**Author:** [@Zhan](https://community.haxe.org/u/Zhan)\
**Replies:** 5\
**Last updated:** [August 23, 2024, 4:48pm UTC](https://community.haxe.org/t/js-es6-must-call-super-constructor-before-accessing-this-in-classes-derived-from-an-extern-class-with-constructor/2870 "2024-08-23T16:48:08Z")

</div>

\[js\]Must call super() constructor before accessing this in classes derived from an extern class with constructor -D js-es=6 I found this issue already close, but I still got this error in haxe 4.1.5. @:native("cc.Comp…

---

## [Macro or feature for dynamic field access](https://community.haxe.org/t/macro-or-feature-for-dynamic-field-access/4312)

<div class="topic-metadata">

**Author:** [@neimanpinchas](https://community.haxe.org/u/neimanpinchas)\
**Replies:** 2\
**Last updated:** [August 21, 2024, 9:36am UTC](https://community.haxe.org/t/macro-or-feature-for-dynamic-field-access/4312 "2024-08-21T09:36:27Z")

</div>

I have a lot of code taking many keys from a dynamic var qry.name qry.address etc, I want to change the dynamic to some type that would use the string to calculate the value, like es6 proxy, one way is with abstract arra…

---

## [\[Solved\] Autocomplete in a macro function](https://community.haxe.org/t/solved-autocomplete-in-a-macro-function/4310)

<div class="topic-metadata">

**Author:** [@alex\_dja](https://community.haxe.org/u/alex_dja)\
**Replies:** 1\
**Last updated:** [August 12, 2024, 3:35pm UTC](https://community.haxe.org/t/solved-autocomplete-in-a-macro-function/4310 "2024-08-12T15:35:52Z")

</div>

Hello, guys! Is it possible to have an autocomplete ability in a macro function input expression? For example: class MyMacro { public static macro function process(expr: Expr): Expr { ... …

---

## [Haxe 4.3.6 released](https://community.haxe.org/t/haxe-4-3-6-released/4309)

<div class="topic-metadata">

**Author:** [@kLabz](https://community.haxe.org/u/kLabz)\
**Replies:** 0\
**Last updated:** [August 7, 2024, 2:28pm UTC](https://community.haxe.org/t/haxe-4-3-6-released/4309 "2024-08-07T14:28:28Z")

</div>

Dear Community, On behalf of the Haxe Foundation, we are proud to announce the official release of Haxe 4.3.6! This is a bugfix release. It is available along with the changelog at https://haxe.org/download/version/4.3…

---

## [Initializing HXCPP project on raspberry](https://community.haxe.org/t/initializing-hxcpp-project-on-raspberry/4303)

<div class="topic-metadata">

**Author:** [@Yann](https://community.haxe.org/u/Yann)\
**Replies:** 1\
**Last updated:** [August 6, 2024, 6:38pm UTC](https://community.haxe.org/t/initializing-hxcpp-project-on-raspberry/4303 "2024-08-06T18:38:13Z")

</div>

Hello! Sorry for the newby question, but how do you initialize a hxcpp project on rpi? So far I did : -\>install haxe 4.2.5, hxcpp and hxcpp-debug-server on the raspberry -\>install vscode and associated extensions -\>u…

---

## [Wrapping CivetWeb in haxe, hx::GCEnterBlocking()](https://community.haxe.org/t/wrapping-civetweb-in-haxe-hx-gcenterblocking/4299)

<div class="topic-metadata">

**Author:** [@neimanpinchas](https://community.haxe.org/u/neimanpinchas)\
**Replies:** 3\
**Last updated:** [August 5, 2024, 11:43am UTC](https://community.haxe.org/t/wrapping-civetweb-in-haxe-hx-gcenterblocking/4299 "2024-08-05T11:43:00Z")

</div>

CivetWeb will spawn and reuse threads to handle requests. Civetweb is calling my callback in every new thread so I could set it up (register in GC). On every request, civetweb will call my haxe function (in the worker …

---

## [\[PAID WORK\] Looking for experienced Haxe (w/ OpenFL) developer to finish porting our game to mobile (fully remote)](https://community.haxe.org/t/paid-work-looking-for-experienced-haxe-w-openfl-developer-to-finish-porting-our-game-to-mobile-fully-remote/4240)

<div class="topic-metadata">

**Author:** [@leonvn](https://community.haxe.org/u/leonvn)\
**Replies:** 2\
**Last updated:** [August 5, 2024, 3:57pm UTC](https://community.haxe.org/t/paid-work-looking-for-experienced-haxe-w-openfl-developer-to-finish-porting-our-game-to-mobile-fully-remote/4240 "2024-08-05T15:57:19Z")

</div>

Hi there everyone, Clockwork Acorn is looking for an experienced Haxe developer to take the lead on porting our game Jetstream to iOS and Android. The ideal person has experience launching Haxe-based titles onto iOS and…

---

## [Using Haxe from C++ and being careful with the GC](https://community.haxe.org/t/using-haxe-from-c-and-being-careful-with-the-gc/3984)

<div class="topic-metadata">

**Author:** [@singpolyma](https://community.haxe.org/u/singpolyma)\
**Replies:** 2\
**Last updated:** [June 28, 2023, 10:49pm UTC](https://community.haxe.org/t/using-haxe-from-c-and-being-careful-with-the-gc/3984 "2023-06-28T22:49:02Z")

</div>

I am writing a library in Haxe that I would like to use from C++. What do I need do to C++ side with references I get back from Haxe method calls to be sure the GC knows they are still live?

---

## [Haxe 4.3.5 released](https://community.haxe.org/t/haxe-4-3-5-released/4293)

<div class="topic-metadata">

**Author:** [@kLabz](https://community.haxe.org/u/kLabz)\
**Replies:** 8\
**Last updated:** [August 2, 2024, 6:04am UTC](https://community.haxe.org/t/haxe-4-3-5-released/4293 "2024-08-02T06:04:47Z")

</div>

Dear Community, On behalf of the Haxe Foundation, we are proud to announce the official release of Haxe 4.3.5! This release includes a number of bugfixes, as well as some nice things we thought would be useful before …

---

## [New HaxeUI component explorer!](https://community.haxe.org/t/new-haxeui-component-explorer/4298)

<div class="topic-metadata">

**Author:** [@ianharrigan](https://community.haxe.org/u/ianharrigan)\
**Replies:** 2\
**Last updated:** [July 31, 2024, 5:29pm UTC](https://community.haxe.org/t/new-haxeui-component-explorer/4298 "2024-07-31T17:29:36Z")

</div>

Howdy Haxers! Ive been working, for what feels like months (probably is months to be fair!), on a new component explorer, which can be found here: https://haxeui.org/explorer Pretty much every example has changed in…

---

## [Help with wrapping CivetWeb in haxe error C2664](https://community.haxe.org/t/help-with-wrapping-civetweb-in-haxe-error-c2664/4297)

<div class="topic-metadata">

**Author:** [@neimanpinchas](https://community.haxe.org/u/neimanpinchas)\
**Replies:** 4\
**Last updated:** [July 29, 2024, 3:39pm UTC](https://community.haxe.org/t/help-with-wrapping-civetweb-in-haxe-error-c2664/4297 "2024-07-29T15:39:48Z")

</div>

Hi I am trying to convert my haxe apps from hashlink/weblink to haxecpp and CivetWeb So far I’ve been successfull with: calling from haxe/cpp initialization code. calling from cpp handler a haxe static method. initi…

---

## [Unable to get the value after parsing with json](https://community.haxe.org/t/unable-to-get-the-value-after-parsing-with-json/4292)

<div class="topic-metadata">

**Author:** [@kopmba](https://community.haxe.org/u/kopmba)\
**Replies:** 2\
**Last updated:** [July 29, 2024, 12:34pm UTC](https://community.haxe.org/t/unable-to-get-the-value-after-parsing-with-json/4292 "2024-07-29T12:34:31Z")

</div>

I am using a service to get a value from Id but receive. This value needs to be stringify, parsed and retrieved to another iteration. Is that code have an issue? class Test { static function getById(id:Int, list:Arr…

---

## [Hxcpp: Ways to retain objects outside of Haxe?](https://community.haxe.org/t/hxcpp-ways-to-retain-objects-outside-of-haxe/4294)

<div class="topic-metadata">

**Author:** [@kevinresol](https://community.haxe.org/u/kevinresol)\
**Replies:** 6\
**Last updated:** [July 22, 2024, 10:49am UTC](https://community.haxe.org/t/hxcpp-ways-to-retain-objects-outside-of-haxe/4294 "2024-07-22T10:49:14Z")

</div>

Let’s say I want to interop with some external C/C++ libraries which has their own memory management and they expose an allocation function: // allocates memory of the specified size // and returns the pointer to the me…

---

## [Move control back to haxe thread without registering](https://community.haxe.org/t/move-control-back-to-haxe-thread-without-registering/4210)

<div class="topic-metadata">

**Author:** [@singpolyma](https://community.haxe.org/u/singpolyma)\
**Replies:** 1\
**Last updated:** [July 10, 2024, 6:29pm UTC](https://community.haxe.org/t/move-control-back-to-haxe-thread-without-registering/4210 "2024-07-10T18:29:19Z")

</div>

Is it possible to move control from a thread created by a C++ library, back to a Haxe thread, without registering the foreign thread with the GC using SetTopOfStack? Ideally I just want the smallest thing I can do, push …

---

## [Getting a sound/musics time in PCM samples?](https://community.haxe.org/t/getting-a-sound-musics-time-in-pcm-samples/4284)

<div class="topic-metadata">

**Author:** [@goku](https://community.haxe.org/u/goku)\
**Replies:** 1\
**Last updated:** [July 9, 2024, 9:17pm UTC](https://community.haxe.org/t/getting-a-sound-musics-time-in-pcm-samples/4284 "2024-07-09T21:17:56Z")

</div>

I’d like to get a sound or music’s time in samples instead of milliseconds. Something like the timeSamples variable in unity. How can this be achieved?

---

## [Avoid serving legacy JavaScript to modern browsers](https://community.haxe.org/t/avoid-serving-legacy-javascript-to-modern-browsers/4279)

<div class="topic-metadata">

**Author:** [@MaxiHaxe](https://community.haxe.org/u/MaxiHaxe)\
**Replies:** 3\
**Last updated:** [July 9, 2024, 3:49pm UTC](https://community.haxe.org/t/avoid-serving-legacy-javascript-to-modern-browsers/4279 "2024-07-09T15:49:16Z")

</div>

Hi all, I am focusing on performance of javascript and pagespeed.web.dev/ throw me this warning (attachment) (Publiez, livrez et installez du code JavaScript moderne pour des applications plus rapides | Articles |…

---

## [Sending cookies with Cross Origin (CORS) request](https://community.haxe.org/t/sending-cookies-with-cross-origin-cors-request/4278)

<div class="topic-metadata">

**Author:** [@rat-moonshine](https://community.haxe.org/u/rat-moonshine)\
**Replies:** 3\
**Last updated:** [July 9, 2024, 12:17pm UTC](https://community.haxe.org/t/sending-cookies-with-cross-origin-cors-request/4278 "2024-07-09T12:17:19Z")

</div>

Currently our application calls server agent with URLLoader+URLRequest ways. We sends requisite data and headers by attaching to URLRequest API. Now the need came up to send something like this: xhrFields: { …

---

## [Malformed file. Source files must be encoded with UTF-8](https://community.haxe.org/t/malformed-file-source-files-must-be-encoded-with-utf-8/4280)

<div class="topic-metadata">

**Author:** [@MiguelMinha](https://community.haxe.org/u/MiguelMinha)\
**Replies:** 0\
**Last updated:** [July 5, 2024, 3:50pm UTC](https://community.haxe.org/t/malformed-file-source-files-must-be-encoded-with-utf-8/4280 "2024-07-05T15:50:48Z")

</div>

source/states/OutdatedState.hx:1: character 1 : Malformed file. Source files must be encoded with UTF-8. source/states/OutdatedState.hx:1: character 1 : Malformed file. Source files must be encoded with UTF-8. source/s…

[Previous page](https://community.haxe.org/latest.md?page=4)

[Next page](https://community.haxe.org/latest.md?page=6)
