Re: Today is Get Your App on Clojure 1.2 Day

2010-08-01 Thread Mark Engelberg
On Fri, Jul 30, 2010 at 8:52 AM, Stuart Halloway stuart.hallo...@gmail.comwrote: http://github.com/clojure/clojure/blob/1.2.x/changes.txtAlso, while microbenchmarks are often misleading, if you have some that seem to show 1.2 issues I would be happy to run them and take a look. Stu Yeah,

Re: Clojure 1.2 RC1

2010-08-01 Thread Mark Engelberg
Meant to say, ...zip doesn't have a compiled jar... On Sun, Aug 1, 2010 at 1:36 AM, Mark Engelberg mark.engelb...@gmail.comwrote: On Fri, Jul 30, 2010 at 8:00 AM, Stuart Halloway stuart.hallo...@gmail.com wrote: Clojure 1.2 RC 1 is now available, along with a corresponding Clojure Contrib,

Re: dtd question

2010-08-01 Thread Manfred Lotz
Hi Randy, Thanks for your help. A bit late my answer because in the meantime I was on vacation and only now found the time to pursue it further. On Tue, 29 Jun 2010 18:53:30 -0700 (PDT) RandyHudson randy_hud...@mac.com wrote: Yes, you can do this by defining an EntityResolver that corrects the

Re: dtd question

2010-08-01 Thread Randy Hudson
Hi Manfred, I'm sorry the code wasn't quite correct. The EntityResolver is set on the parser's XMLReader, not on the parser itself: (def parser (.newSAXParser (SAXParserFactory/newInstance)) (.setEntityResolver (.getXMLReader parser) resolver) You don't need any external jars: all the classes

Re: Today is Get Your App on Clojure 1.2 Day

2010-08-01 Thread Phil Hagelberg
On Fri, Jul 30, 2010 at 3:33 PM, Bootvis bobjan...@gmail.com wrote: There seems to be a problem with the RC on Windows. I was following http://mmcgrana.github.com/2010/07/develop-deploy-clojure-web-applications.html using the RC and doing lein.bat run script/run.clj errors with: Exception in

Re: dtd question

2010-08-01 Thread Manfred Lotz
Hi Randy, On Sun, 1 Aug 2010 06:23:58 -0700 (PDT) Randy Hudson randy_hud...@mac.com wrote: Hi Manfred, I'm sorry the code wasn't quite correct. The EntityResolver is set on the parser's XMLReader, not on the parser itself: (def parser (.newSAXParser (SAXParserFactory/newInstance))

Re: How to do multiple trys

2010-08-01 Thread abhinav sarkar
Thanks to everyone for their suggestions. This is what I have used finally: (defn parse-date [date-str] (when-not (blank? date-str) (let [clean-date-str (trim date-str) parse-or-nil (fn [format] (try (.parse format clean-date-str)

Re: Today is Get Your App on Clojure 1.2 Day

2010-08-01 Thread lozh
These should be fixed in technomancy's github. He pushed http://github.com/downloads/technomancy/leiningen/leiningen-1.3.0-SNAPSHOT-standalone.jar yesterday, which I'd expect to include the fixes, though I haven't tested it myself. On Jul 30, 11:33 pm, Bootvis bobjan...@gmail.com wrote: There

abstract structural binding

2010-08-01 Thread doug
Hey all! can't seem to get the last element to bind. tia -doug user cj-mpdata [0010335602 40.00 1060.51 6/23/2010 DISCOVER E- PAYMENT 7796 (DISCOVER)] user (let [[[_ ck db cr _ dt _ _ _][dsc]] [[Acct Chk Debt Crd Bal Date Desc Payee Catagory] [newDescript]]]

Looking to fit Clojure into my architecture and am in need of your informed advice!

2010-08-01 Thread Kent Larsson
Hi! I'm not any good at Clojure, but it seems like a great language! I have tried some examples and am reading a book about it. I have dabbled with Haskell before and I am really fascinated by the functional paradigm. I'm planning to reduce my time at my full time job to create a small startup.

Re: dtd question

2010-08-01 Thread Michael Wood
On 1 August 2010 17:15, Manfred Lotz manfred.l...@arcor.de wrote: Hi Randy, On Sun, 1 Aug 2010 06:23:58 -0700 (PDT) Randy Hudson randy_hud...@mac.com wrote: Hi Manfred, I'm sorry the code wasn't quite correct. The EntityResolver is set on the parser's XMLReader, not on the parser itself:

Re: abstract structural binding

2010-08-01 Thread Rasmus Svensson
2010/8/1 doug 395curra...@gmail.com Hey all! can't seem to get the last element to bind. tia -doug user cj-mpdata [0010335602 40.00 1060.51 6/23/2010 DISCOVER E- PAYMENT 7796 (DISCOVER)] user (let [[[_ ck db cr _ dt _ _ _][dsc]] [[Acct Chk Debt Crd Bal Date Desc

Re: dtd question

2010-08-01 Thread Randy Hudson
Right you are Michael; sorry for the missing paren at the end of the def. On Aug 1, 11:59 am, Michael Wood esiot...@gmail.com wrote: On 1 August 2010 17:15, Manfred Lotz manfred.l...@arcor.de wrote: Hi Randy, On Sun, 1 Aug 2010 06:23:58 -0700 (PDT) Randy Hudson randy_hud...@mac.com

Re: dtd question

2010-08-01 Thread Manfred Lotz
Hi Randy, On Sun, 1 Aug 2010 10:04:16 -0700 (PDT) Randy Hudson randy_hud...@mac.com wrote: Right you are Michael; sorry for the missing paren at the end of the def. Now compiling the code works: (def parser (.newSAXParser (SAXParserFactory/newInstance))) (.setEntityResolver

Re: Clojure 1.2 RC1

2010-08-01 Thread Btsai
The jar can be located in the target sub-directory. On Aug 1, 2:37 am, Mark Engelberg mark.engelb...@gmail.com wrote: Meant to say, ...zip doesn't have a compiled jar... On Sun, Aug 1, 2010 at 1:36 AM, Mark Engelberg mark.engelb...@gmail.comwrote: On Fri, Jul 30, 2010 at 8:00 AM, Stuart

Re: Clojure 1.2 RC1

2010-08-01 Thread Mark Engelberg
Aha, so it is. Thanks! -- 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 are moderated - please be patient with your first post. To unsubscribe from this

Re: Bug: contains? doesn't work on transient maps or sets

2010-08-01 Thread Mark Engelberg
I just tested this in Clojure 1.2, and the bug is still there: (contains? (transient #{1 2}) 1) - false ;should return true On Mon, Mar 22, 2010 at 5:46 PM, Mark Engelberg mark.engelb...@gmail.comwrote: Disturbingly, it doesn't error, it just always returns false. This is in version

setting classpath and using namespace: how to enable example scripts in library?

2010-08-01 Thread jandot
Hi all, I'm writing a library which is organized using lein new, so the directory structure contains an src and test. I have added a directory examples with scripts that should be able to run by just typing ./example-1.clj. So the directory structure is: pre +- project.clj +- src |+-

Re: dtd question

2010-08-01 Thread Randy Hudson
I think we're almost there, sorry for the various mistakes. If you look in the source for clojure.xml, you can see that the default startparse argument for xml/parse is (defn startparse-sax [s ch] (.. SAXParserFactory (newInstance) (newSAXParser) (parse s ch))) and we've only gotten as far as

Re: abstract structural binding

2010-08-01 Thread doug
thanks- you are correct. it is -what it is! -doug On Aug 1, 1:03 pm, Rasmus Svensson r...@lysator.liu.se wrote: 2010/8/1 doug 395curra...@gmail.com Hey all! can't seem to get the last element to bind. tia -doug user cj-mpdata [0010335602       40.00 1060.51 6/23/2010 DISCOVER

Symbol substitution in macro

2010-08-01 Thread Kyle Schaffrick
Hello, I'm trying to write a library with two main parts. The first is a macro, I'll call it 'with-feature, that walks through forms passed inside it, and any time it sees a call to another function in my library, 'feature, do some transformations. The problem I'm concerned about is as follows:

Re: Bug: contains? doesn't work on transient maps or sets

2010-08-01 Thread Jason Wolfe
Related: in 1.2 RC1, find also fails to work with transient maps (although it does throw an error, rather than fail silently). On Aug 1, 12:25 pm, Mark Engelberg mark.engelb...@gmail.com wrote: I just tested this in Clojure 1.2, and the bug is still there: (contains? (transient #{1 2}) 1) -

Re: Symbol substitution in macro

2010-08-01 Thread Heinz N. Gies
On Aug 2, 2010, at 3:34 , Kyle Schaffrick wrote: Hello, I'm trying to write a library with two main parts. The first is a macro, I'll call it 'with-feature, that walks through forms passed inside it, and any time it sees a call to another function in my library, 'feature, do some