Re: How to add extend print-method without screwing up ?

2010-01-06 Thread Meikel Brandmeyer
Hi, On Jan 5, 11:14 pm, Gabi wrote: > This think could be solved easily if defmethod supported hierarchy as > arg (or in meta). This doesn't even solve your problem, since the hierarchy is used to find out *which* method should be called. So hooking a hierarchy on a method doesn't really help.

parsing/processing of big xml files...

2010-01-06 Thread Alex Ott
Hello all I have question about processing big XML files with lazy-xml. I'm trying to analyze StackOverflow dumps with Clojure, and when analyzing 1.6Gb XML file with posts, i get java stack overflow, although i provide enough memory for java (1Gb of heap). My code looks following way (ns sta

peepcode screencasts

2010-01-06 Thread Konrad Scorciapino
Hey guys, I think it is worth convincing peepcode to develop more Clojure screencasts, like this awesome one[1] from Phil Hagelberg. If you have some time, please show them your enthusiasm by voting up here: http://suggestions.peepcode.com/pages/15-general/suggestions/349533-more-lisp-clojure-sc

Re: peepcode screencasts

2010-01-06 Thread Jeff Heon
I would add the suggestion to buy the current screencast, as it is excellent and would go an extra mile than the vote 8) PS. I just loved the grue reference 8) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojur

Re: Having difficulties with compilation in slime, emacs and clojure-project

2010-01-06 Thread Phil Hagelberg
Rob Lachlan writes: > I have src and test in the directory I'm passing in. The problem > however, seems to be on the emacs end. In the mini-buffer when I > enter in Project root: and press return, the cursor > just moves to the next line in the mini- buffer. So I think that the > clojure-proj

Re: Leiningen uberjar: excluding dev-dependencies; new minus-clojure task

2010-01-06 Thread Perry Trolard
On Jan 2, 12:35 am, Phil Hagelberg wrote: > I'm a little reluctant to make calculating the classpath any more > complicated than it currently is since that logic needs to be duplicated > in a few places, but I agree that the current situation is not great. > > Another idea would be to write a h

Re: parsing/processing of big xml files...

2010-01-06 Thread Graham Fawcett
Hi Alex, On Wed, Jan 6, 2010 at 9:06 AM, Alex Ott wrote: > Hello all > > I have question about processing big XML files with lazy-xml.  I'm trying to > analyze > StackOverflow dumps with Clojure, and when analyzing 1.6Gb XML file with > posts, i get java stack overflow, although i provide enough

ClassCastException from RT.java in Day Communique

2010-01-06 Thread Warren Wood
The cast in the following method from RT.java throws a ClassCastException when trying to compile Clojure within the Day Communique 4.2.1 content management system. Any suggestions? thanks, Warren static public long lastModified(URL url, String libfile) throws Exception{ if(url.getProtocol().equ

Re: ClassCastException from RT.java in Day Communique

2010-01-06 Thread Warren Wood
Here is what the exception says : Caused by: java.lang.RuntimeException: java.lang.ClassCastException: com.day.cq.net.jar.ContentBusJarURLConnection cannot be cast to java.net.JarURLConnection at clojure.lang.RT.(RT.java:291) On Jan 6, 3:11 pm, Warren Wood wrote: > The cast in the following meth

Re: Understanding the continuation monad's bind operator

2010-01-06 Thread Steven E. Harris
Konrad Hinsen writes: > Exactly. The result of m-bind must be a continuation-accepting > function again. Yes, and invoking 'mv' yields such a function. > That's the role of the outer layer (fn [c] ...). That one adds /another/ layer, but the inner function returned by 'mv' has the same "sign

Re: Understanding the continuation monad's bind operator

2010-01-06 Thread Steven E. Harris
jim writes: > Don't know if you saw, but I did a whole tutorial on the continuation > monad. Your essay is how I got started with monads in Clojure. I've read it six times now (along with five other of your essays on the subject), but perhaps I missed the requirement pertaining to delaying evalu

Re: Understanding the continuation monad's bind operator

2010-01-06 Thread Steven E. Harris
I have a few more questions concerning how one interacts with a continuation monad. It's clear that a monadic function accepts some "base value" and returns a monadic value, in turn being a function accepting a single continuation argument. That means that a monadic function has a signature like

ANN: 6pm Sat, Dec 9th: Wraith Scheme, Paralell & Distributed Clojure at the Hacker Dojo

2010-01-06 Thread nallen05
Two very cool presentations this Saturday at the Hacker Dojo in Mountain View: 1. An introduction to Wraith Scheme by Jay Reynolds Freeman 2. An introduction to parallel and distributed programming with Clojure by Amit Rathore Go here for more info: http://www.meetup.com/balisp/calendar/12248048/

Re: Having difficulties with compilation in slime, emacs and clojure-project

2010-01-06 Thread Rob Lachlan
Thanks for the help. I had initially installed slime, clojure-mode and swank following the instructions at http://riddell.us/tutorial/slime_swank/slime_swank.html I tried simply installing swank-clojure, but that seemed to conflict with what I already had. So I removed everything -- slime, cloj

Re: ANN: 6pm Sat, Dec 9th: Wraith Scheme, Paralell & Distributed Clojure at the Hacker Dojo

2010-01-06 Thread ajay gopalakrishnan
It's Jan 9 I guess On Wed, Jan 6, 2010 at 10:53 PM, nallen05 wrote: > Two very cool presentations this Saturday at the Hacker Dojo in > Mountain View: > > 1. An introduction to Wraith Scheme by Jay Reynolds Freeman > 2. An introduction to parallel and distributed programming with > Clojure by Am