Re: Some basic guidance to designing functional vs. state parts of app

2010-03-06 Thread Jeff Rose
If you make a design decision to use an atom, you are effectively committing to never, ever being able to update that atom within a transaction. refs can do everything atoms can do and more.  They are slightly slower, perhaps, but much safer.  So unless you have an explicit performance

Re: clojure.contrib.sql : how not to use a transaction ?

2010-03-06 Thread Stephen C. Gilardi
On Mar 5, 2010, at 5:43 AM, rdunklau wrote: So, is there any function which exposes the PreparedStatement.executeUpdate() method directly ? There is no such function currently. Is calling the Java method directly an undesirable option? --Steve -- You received this message because you are

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-06 Thread James Reeves
On Mar 6, 5:58 am, Phil Hagelberg p...@hagelb.org wrote: If you're using git, this should be avoided. git is remarkably bad at storing binary data. I seem to recall that recent versions of Git have improved significantly in this area. However, there's still the fundamental problem that changing

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-06 Thread Brian Schlining
If you're using git, this should be avoided. git is remarkably bad at storing binary data. I seem to recall that recent versions of Git have improved significantly in this area. However, there's still the fundamental problem that changing the dependencies increases the size of the

Re: clojure.contrib.sql : how not to use a transaction ?

2010-03-06 Thread Bill Pyne
Have you tried the do-prepared function? On Mar 5, 5:43 am, rdunklau rdunk...@gmail.com wrote: Hello. I'm trying to use clojure.contrib.sql to set up my database (on postgresql) However, i'm running into some problems : I did not find a way to execute a (prepared) statement outside a

enclojure install killed netbeans 6.8

2010-03-06 Thread strattonbrazil
Has anyone had problems with netbeans starting with the enclojure alpha? I restarted my session and it died. Now when I try to run netbeans, it throws a classpath exception. Can I remove this plugin or am I missing something in my install? Exception in thread main

Re: Windows: SLIME/Swank freezes on GUI-related input. (Was: Stumped - Java hangs when using Swing in Slime)

2010-03-06 Thread Rickard Bennekom
I've just filed a bug report: http://github.com/technomancy/swank-clojure/issues#issue/10 Thanks, Rickard -- 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

Re: clojure slides

2010-03-06 Thread Tom Hicks
PDF of slides from my presentation at a recent Tucson JUG: http://tinyurl.com/yjrnh55 (licensed as Creative Commons Attribution-Noncommercial). If you need the Powerpoint email me. regards, -tom On Mar 3, 8:58 pm, Wilson MacGyver wmacgy...@gmail.com wrote: Looks like I'll be doing a talk

Re: Default value for structure

2010-03-06 Thread Manfred Lotz
On Mon, 1 Mar 2010 11:01:36 -0800 (PST) ataggart alex.tagg...@gmail.com wrote: No, but if you need to do that, then you can do what deftype sort-of does: user= (defstruct St :a :b) #'user/St user= (defn st ([a] (struct St a 0.0)) ([a b] (struct St a b))) #'user/st user= (st 5) {:a 5, :b

Re: Default value for structure

2010-03-06 Thread Mike Mazur
Hi, On Sat, Mar 6, 2010 at 20:36, Manfred Lotz manfred.l...@arcor.de wrote: Now I tried a different way: (defstruct st :a :b) (defn my-struct-map [s inits]  (let [sm (struct-map s inits)]    (if (= nil (sm :b))      (assoc sm :b 0.0)      sm))  ) Unfortunately, the part sm

Re: Jython interop

2010-03-06 Thread rob
Since we had this discussion I've been using Jython in Clojure and I've been growing a little library to make things easier. I decided it was useful enough to make live (though probably far from complete, seeing as my use case has been solely on one python library, nltk).