This is a great example of both Stuart Sierra's suggested workflow (from his talk at Clojure/West) and of using core.async to simplify concurrent, collaborating processes! Thanks for sharing!
Sean On Mon, Jul 15, 2013 at 11:10 AM, mybuddymichael <michael.b.han...@gmail.com> wrote: > I recently rewrote my team's IRC bot to use tools.namespace and > core.async. You can check out the source on GitHub at > https://github.com/mybuddymichael/pgbot. > > To explain briefly, the bot is basically several loops communicating > over channels. The primary processes are two async/threads, reading > lines from the socket and printing lines to it. A few subsystems running > in async/go blocks can each give a few channels to the connection loops. > The two connection threads are continuously >!-ing or alts!!-ing with > those channels to distribute and gather messages. > > Even though the app is small, using channels is very nice for decoupling > the subsystems from the connection object and its message loops. And > using tools.namespace has been a dream for development. I can make > changes and have a new IRC bot running with the new code in > milliseconds. Totally dreamy stuff. My interaction with tools.namespace > all happens through the user namespace, which is excluded from jars via > Leiningen's profiles feature. > > Our bot is now running in production internally without any hiccups. > Much thanks to Rich, Stuart, and the rest of the gang for building such > cool libraries. And suggestions for improvements to the system or > workflow are always welcome. > > -- > -- > 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/groups/opt_out. > > -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880) -- -- 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/groups/opt_out.