Re: How to try/catch Let bindings?

2017-10-06 Thread 'bertschi' via Clojure
On Monday, October 2, 2017 at 11:04:52 PM UTC+2, Didier wrote: > > > Even in an impure language such as Common Lisp we frown on such LET forms > > True, but as far as I know, in Common Lisp, the condition handler is > always in scope of where the error happened, so I wouldn't face this >

Re: Ensure more concurrency

2017-03-09 Thread 'bertschi' via Clojure
lly stuck (> 99%) at clojure.lang.LockingTransaction.tryWriteLock (). Am Mittwoch, 8. März 2017 14:40:01 UTC+1 schrieb Herwig Hochleitner: > > 2017-03-06 12:06 GMT+01:00 'bertschi' via Clojure <clo...@googlegroups.com > >: > > > From the docs it says "Allows

Ensure more concurrency

2017-03-06 Thread 'bertschi' via Clojure
For a lecture I have implemented the write-skew example from Mark Volkmann's article: (defn write-skew [] (let [cats (ref 1) dogs (ref 1) john (future (dosync (when (< (+ @cats @dogs) 3) (alter cats inc mary