News for hackers. Stuff that matters.
Re:Libdill: Structured concurrency in C by partycoder on Saturday June 04, 2016 @04:07AM (#11835456)
I am more familiar with the "futures and promises" approach. https://en.wikipedia.org/wiki/Futures_and_promises
Re:Libdill: Structured concurrency in C by adrianratnapala on Saturday June 04, 2016 @04:58AM (#11835586)
It seems libdill supports channels -- blocking FIFOs.

In Golang (which seems to have indirectly inspired libdill), you would implement such logic by returning a channel (future) over which is sent just one value. That result itself might be a channel and so on.

No doubt the syntax in C would not be as convenient as in some other language -- but lightweight channels that work as first-class objects are a lot like futures.