I made a prototype of a potential design for concurrency in roc.
It was based Richard's greenthreads prototype from about a year ago, but I made some changes and developed it further.
I would love to have some feedback on the design from the community.
Criticism welcome pls.
Would it help you if I shared how I've done Tasks in some of my platforms?
Just as some background maybe, I'm still digesting what you've shared so not sure if it's really helpful or not
Or maybe it would help to make a branch and replace the implementation to try a design out
nvm, I don't think that will help much here... disregard
Yeah this proposal is about how one might write concurrent application logic in roc, rather than writing a platform that executes roc code concurrently behind the scenes.
I do think it is cool that you can hide some concurrency behind the platform boundary and would like to see how you use it out of curiousity!
The design seems reasonable to me. I would probably use this in my chat app once the design matured. Right now I have to handle all the concurrency in my underlying zig platform with a pretty coarse mutex.
Last updated: Nov 26 2026 at 20:35 UTC