c-coroutine
c-coroutine copied to clipboard
Possible collab with go2hx compiler and/or Haxe
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:
-
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.
-
Haxe is planning to add coroutines for it's next major release https://github.com/HaxeFoundation/haxe/pull/11554#issue-2120979655 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.
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.
From what I read in discussions https://github.com/go2hx/go2hx/issues/190, and https://github.com/HaxeFoundation/haxe/pull/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/?