Clojure STM not serializable

2009-06-18 Thread Eric Willigers
Hi all, I'm enjoying using Clojure. It is clean, concise and powerful. The containers and even defmacro are easy to use correctly. However, I'm yet to be convinced the same applies with the STM implementation. In the user code below, people might expect b == a + 1 after the two transactions r

Re: Clojure STM not serializable

2009-06-19 Thread Eric Willigers
On Jun 18, 9:35 pm, Rich Hickey wrote: > http://clojure.org/refs > > point #8: > > "If a constraint on the validity of a value of a Ref that is being   > changed depends upon the simultaneous value of a Ref that is not being   > changed, that second Ref can be protected from modification by calli

Re: Making a jar where the "main" class in manifest is from gen-class

2009-06-19 Thread Eric Willigers
On Jun 20, 3:42 am, "Stephen C. Gilardi" wrote: > One important need filled by gen-class is exactly this case: you need   > a class with a name you can specify completely and use elsewhere. > > > I need to enter the Main class in a jar's Manifest, and was wondering > > how you guys have done it.

Re: Clojure only (in-memory) database / locking granularity

2009-07-01 Thread Eric Willigers
On Jul 1, 1:02 am, Chouser wrote: > On Tue, Jun 30, 2009 at 8:37 AM, Rowdy Rednose wrote: > > > Would it be easy to implement an in-memory database in clojure that > > allows concurrent access? > > > It sounds pretty easy, as most of the features are already provided by > > Clojure. I'm not sur