Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wonder how much of go (et al.) channels abstractions could be done this way.


In Go you can control the length of the channel queue, and chan create a zero-buffering channel which blocks the writer until a reader is available. Unfortunately mkfifo does not seem to allow this at all.


fifos by themselves aren't useful if you're trying to do multi-process signaling with them, as input from multiple programs is not separated or delimited in any way. fifodirs are a nice signalling mechanism built on top of fifos:

http://www.skarnet.org/software/s6/fifodir.html




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: