Stream: contributing

Topic: Concurrency design


view this post on Zulip Jack Scully (Nov 21 2026 at 04:36):

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.

https://github.com/GW-Jack/roc/blob/concurrency-explicit-suspension/design/language/concurrency/README.md

view this post on Zulip Luke Boswell (Nov 21 2026 at 05:03):

Would it help you if I shared how I've done Tasks in some of my platforms?

view this post on Zulip Luke Boswell (Nov 21 2026 at 05:03):

Just as some background maybe, I'm still digesting what you've shared so not sure if it's really helpful or not

view this post on Zulip Luke Boswell (Nov 21 2026 at 05:05):

Or maybe it would help to make a branch and replace the implementation to try a design out

view this post on Zulip Luke Boswell (Nov 21 2026 at 05:08):

nvm, I don't think that will help much here... disregard

view this post on Zulip Jack Scully (Nov 21 2026 at 05:26):

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!

view this post on Zulip Steve Howell (Nov 21 2026 at 15:10):

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