Skip to content

Possible collab with go2hx compiler and/or Haxe #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
PXshadow opened this issue Apr 2, 2025 · 2 comments
Open

Possible collab with go2hx compiler and/or Haxe #7

PXshadow opened this issue Apr 2, 2025 · 2 comments

Comments

@PXshadow
Copy link

PXshadow commented Apr 2, 2025

Hello I am the creator of the go2hx compiler, which transpiles Go code -> into Haxe code.
At the moment I am using a simple 1 thread 1 goroutine approach to mimic the behavior from Go, and I am looking to write a scheduler + co-routines in the future.

Perhaps we could collaborate if you're interested. go2hx has the tests, and the real need for coroutine support, and c-coroutine, has an implementation without a case study or means to prove the stability.

The 2 important things to note is that Haxe:

  1. Has it's own VM that is the core target I test on, and it's written in C. So perhaps there is a fast way to bridge the projects.

  2. Haxe is planning to add coroutines for it's next major release [work in progress] Coroutines for Haxe HaxeFoundation/haxe#11554 (comment) though it's looking for help with the implementation and general guidance, maybe it would be well suited, to your guidance and or help implementing it.

Let me know if anything sounds interesting or if you have any other ideas on the matter.

@PXshadow PXshadow changed the title Possible collab with go2hx compiler Possible collab with go2hx compiler and/or Haxe Apr 2, 2025
@TheTechsTech
Copy link
Contributor

This project is a work in progress as far as integrating Libuv. The coroutine part is a misnomer now, brought in as dependency on the main branch. This project will eventually be renamed, TBD.

I have no problems collaborating, i will read up some more about go2hx. I came across Haxe sometime before, doing some research, forgetting what it was now.

I will take a look at documentations, test things out, try understanding the logic on how things stand.

@TheTechsTech
Copy link
Contributor

From what I read in discussions go2hx/go2hx#190, and HaxeFoundation/haxe#11554, it seems some implementations are already available in Haxe.

Are you aware of
https://github.com/RealyUniqueName/Coro, https://github.com/nadako/haxe-coroutines, https://lib.haxe.org/p/yield/, https://lib.haxe.org/p/tink_await/?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants