The issue of Multi-threading has cropped up WRT templating. It's not clear from the StringTemplate documentation what is and what isn't thread safe. From the look of the API, though I wouldn't be on anything.
Fleet, mentioned in the previous message seems to have a real problem here too since fleet templates /have no parameters/ it seems they communicate with the model by calling functions defined in some namespace. My code generator is multi-threaded, i.e. creates a bunch of thunks for the classes to be generated and then runs these with pmap. This works great when you whole "templating system", such as it is, is build on Clojure's persistent data structures and pure functions. This becomes a problem when trying to offload the templating work onto StringTemplate, a Java library that's not obviously given much though to the issue. Fleet could be made to work with creative use of (binding [...]), but I hesitate to go there because an earlier version of my code generator did this and I was happy when I'd removed that wart and replaced it with explicit arguments. // Ben -- 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