Re: Clojure/ClojureScript code and refs

2012-01-01 Thread Stuart Sierra
Hi Nicolas, You're the first person to bring this up, as far as I know. ClojureScript, of course, is designed to run in JavaScript VMs, which are usually single-threaded, so Refs don't really apply. I'm not sure you even need to do special detection whether Refs are available: just define some

Clojure/ClojureScript code and refs

2011-12-20 Thread Nicolas Buduroi
I'm thinking about writing some code that would better be transactional and thus use refs in a multi-threaded environment like Clojure. But then it would also be nice to be able to run that code as ClojureScript code (which obviously doesn't support refs) so I'm wondering if anybody has worked on