Re: Jesus, how the heck to do anything?

2011-03-23 Thread Stefan Sigurdsson
On Wed, Mar 23, 2011 at 8:50 AM, ultranewb wrote: > Short version: How do I just open an editor, type in some Clojure > code, save it in a file, and then run it? > Open a new file hello.clj in your current directory. Type in (println "hello world"), save and close. Run with java -jar /path/to

Re: Jesus, how the heck to do anything?

2011-03-23 Thread Stefan Sigurdsson
Maybe try Leiningen? It is very nice, and it can take care of much of the Java hassle more or less behind the scenes. First download https://github.com/technomancy/leiningen/raw/master/bin/lein (Linux, OSX, Cygwin) https://github.c

Re: gen-class and state...

2011-03-27 Thread Stefan Sigurdsson
How do you guys normally manage resources when using lazy sequences? I was playing around with this question, and I looked into extending line-seq to take a file path parameter that is coerced to reader: (defn line-seq ([^java.io.BufferedReader rdr] (when-let [line (.readL

Re: gen-class and state...

2011-03-27 Thread Stefan Sigurdsson
1 at 12:17 PM, Stefan Sigurdsson wrote: > How do you guys normally manage resources when using lazy sequences? > > I was playing around with this question, and I looked into extending > line-seq to take a file path parameter that is coerced to reader: > &