News for hackers. Stuff that matters.

davenoul

Re:Coroutines for Go on Tuesday July 18, 2023 @01:38PM (#36776371)
Something along what Cuda, OpenCL or ISPC do, but integrated to the language.
Re:Coroutines for Go on Tuesday July 18, 2023 @01:36PM (#36776348)
I think there is. How do you describe data parallelism? coroutine are too big when all your function call are doing the same things, but on a different data (think ISPC, shaders, cuda). There is still one more step in parallelism where coroutine cost to much :-)
Re:Coroutines for Go on Tuesday July 18, 2023 @12:40PM (#36775337)
Don't forget that the important bit in Go is readability of the code. To me the range form is much easier to reason about than this for loop.