Hi, In a couple of months I will teach a new course on concurrent/parallel programming at the University of Brussels. I will use Clojure for a large part of the course. I primarily want the students to learn how to make effective use of the STM as Clojure programmers, but I would also like to expose them to some "under the hood" implementation details. One option would be to dive into the actual Java implementation of Clojure's STM, but my fear is that this will be too complex. Another option I've been thinking of is to write a simple, didactic STM in Clojure itself (following the SICP meta-circular interpreters tradition). It goes without saying that high performance is not the goal here. Rather, it should help students to grasp atomicity, isolation, interactions between readers/writers, the differences between alter and commute, etc.
My questions to the list: - has anyone already experimented with a toy STM in Clojure for didactic purposes? - what would be a good resource to start such a design from? (my current plan is to start from <http://java.ociweb.com/mark/stm/article.html>) Thanks, Tom -- 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