core-async

2020-04-26T16:57:45.116100Z

Any book recommendations with good coverage of core async? In particular, i’m looking for something that talks about non-blocking patterns for event producers. I think alt! with :default to process events in my main loop along with just <! with a drop policy from the go block function is the pattern I want to use and should cause no blocking but since I’m a noob I’d like to learn a little more on proper patterns first.

Ben Sless 2020-04-26T18:18:18.116400Z

surprisingly(?) reading the original CSP paper gave me a few ideas. It's a good read, but dense. The beginning may be hard to get through, but if you blink you might miss the implementation of objects using channels https://www.cs.cmu.edu/~crary/819-f09/Hoare78.pdf

2020-04-26T19:24:29.116600Z

thanks for the link, I’ll have a look.

nikolavojicic 2020-04-26T22:03:05.117100Z

This book covers basics: https://www.braveclojure.com/core-async/ Maybe this one, didn't read it: https://www.amazon.com/Clojure-Reactive-Programming-Asynchronous-Applications/dp/1783986662

nikolavojicic 2020-04-26T22:06:20.117300Z

You can also watch Go-lang concurrency patterns, a lot of presentations on YouTube.

nikolavojicic 2020-04-26T22:11:21.117500Z

https://github.com/martintrojer/go-tutorials-core-async