tag:blogger.com,1999:blog-6301633.post4856952655693384395..comments2023-08-17T02:38:45.068-05:00Comments on Messages not Models: Inflexible, unmaintainable, fragile code in Clojurehughwhttp://www.blogger.com/profile/04766131116514643236noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6301633.post-17480873506029351592009-07-18T20:44:42.814-05:002009-07-18T20:44:42.814-05:00Well, I will tell you that coordinating writes to ...Well, I will tell you that coordinating writes to the filesystem with changing the state of Clojure Refs and Agents is tricky. If you want synchronous changes to Refs, you need STM, but you can't do I/O within a Clojure 'dosync. Agents can do I/O, but the effects happen asynchronously (via send-off). This is a tricky issue using old fashioned locking as well -- but I have experience doing it the old-fashioned way. I haven't learned the patterns for the new-fangled Clojure ways, and sorta made some up.hughwhttps://www.blogger.com/profile/04766131116514643236noreply@blogger.comtag:blogger.com,1999:blog-6301633.post-45595667815610868902009-07-18T08:58:19.169-05:002009-07-18T08:58:19.169-05:00Thank you for a refreshing mea culpa. Any details...Thank you for a refreshing mea culpa. Any details you can share?Bob Erbhttps://www.blogger.com/profile/08191171988896636276noreply@blogger.com