Sleeping Barber Implementation in Go

I wanted to learn (at least try) some new language, because I have feeling that I haven’t learnt anything in a long time. So I catched hype wave around Go. It is statically typed, with garbage collector, without OOP (I don’t like it anyway), by default statically linked language that was invented in Google. There is really nice and short tour that guided me in the beginings. Go’s killer feature is it’s concurrency model. It uses so called goroutines that are more lightweight than threads and channels that take care of communication between goroutines. ...

August 12, 2014 · 1 min