go blocks tend to spread in Clojure programs just like async/await in 
C#/Hack/Python, etc. The problem is that they aren't cheap.

I was curious to know what you guys think of the following workaround: 
http://blog.martinraison.com/clojure/2015/07/27/clojure-core-async-go-blocks-everywhere.html
(TL;DR: use "go" only in the few functions that do some actual work, in all 
other places use an alternate version - called "async" in the article - 
that doesn't use the dispatcher and doesn't create a chan. The only thing 
"async" does is handling the state machine stuff, so that <!, alt!, etc 
work as expected.)

Does that seem reasonable or do you see a better way to do this?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to