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 (future
asically 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 >:
>
> > From the docs it says "Allows for more concurrency than
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
> proble