Re: generating java classes at runtime

2009-06-24 Thread RD
I wont be extending classes or interface since I have to generate classes on the fly, reading some arbitrary xml schemas at runtime. I'm thinking of just parsing the xml schema in clojure and generating a list (which would contain a text representation of how I would generate a normal java cl

Basic hadoop example in clojure.

2009-07-27 Thread RD
Hi all, I'm having trouble converting the basic hadoop example to clojure. Here's my code. (ns maxtemperature (:gen-class) (:import [org.apache.hadoop.io IntWritable Text] [org.apache.hadoop.mapred JobConf JobClient FileInputFormat FileOutputFormat

Re: Basic hadoop example in clojure.

2009-07-27 Thread RD
it's finished compiling. To work around that, use > (Class/forName "maxtemperature") instead. > > You can also see my (very task-specific) Hadoop/Clojure integration at > <http://tinyurl.com/mqv2os> > and <http://tinyurl.com/lznlg2>. > > -SS > > >

Re: Basic hadoop example in clojure.

2009-07-27 Thread RD
Hi Emeka, thanks for the reply, I know the old code had some bugs. But taking the suggestion by Stuart i.e instead of using maxtemperature directly I tried using (Class/forName "maxtemperature") and this worked. So I'm not sure if I was referring to different class-paths in my cod

idiomatic way to use cond.

2009-12-27 Thread RD
Hello All, When every I write clj code that involves cond. It always involves a "do" in almost all of the classes. somethiing like (cond condition1 (do exp1 exp2 exp) condition2 (do exp1 exp2 ...) true (do ...)) Is there a better way (without the explicit "do"