Description
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 [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.