News for hackers. Stuff that matters.
Re:Tell HN: Lois - Golang like channels for Java by dsymonds on Monday April 14, 2014 @08:44AM (#7585764)
The 'select' statement does more than just multiplex (and it doesn't really multiplex since you can't do it over a slice of channels). It allows blocking on any one of a set of send or receive operations. This is similar to the select(2) system call in BSD

Spec: http://golang.org/ref/spec#Select_statements

Re:Tell HN: Lois - Golang like channels for Java by mrphoebs on Monday April 14, 2014 @09:17AM (#7585917)
Thanks, the analogy to the system call helps heaps in my understanding of the intent. It's value wasn't clear to me when I was debating it's inclusion in the library. I'll have a deeper look and see how best I can include something similar in the library. Sadly, I doubt the interface for it would be as elegant as the one Go has.