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