Re: (series of swap! on atom) ==> single swap!

2014-02-16 Thread Ramesh
You can use a ref instead of an atom. And use dosync with multiple alter, so everything is safely inside a transaction. On Feb 16, 2014 2:04 PM, "t x" wrote: > Hi John, > > Your solution is perfectly valid and optimal for the problem I > described above. > > > Unfortunately, I forgot to menti

Re: load-file & namespace

2013-10-20 Thread Ramesh
ring (str "(do (load-file \"" (first args) "\") (hello/someconst))" Thanks, ramesh On Sun, Oct 20, 2013 at 1:22 AM, juan.facorro wrote: > Hi Ramesh, > > Based on the stack-trace, the error is thrown during compile-time. This > means the compiler is ha

load-file & namespace

2013-10-19 Thread Ramesh
ang.Compiler.resolveIn(Compiler.java:6844) at clojure.lang.Compiler.resolve(Compiler.java:6818) at clojure.lang.Compiler.analyzeSymbol(Compiler.java:6779) at clojure.lang.Compiler.analyze(Compiler.java:6343) ... 54 more) -ramesh -- -- You received this message because you are subscribed

Re: Do you like the Clojure syntax?

2013-08-12 Thread Ramesh
Great points here! I think once someone is comfortable with Clojure, Scala will be more disgusting than Java. This is because, Scala has such great adornments, ironically aspiring toward simplification. -ramesh On Mon, Aug 12, 2013 at 7:58 AM, David Pollak wrote: > A couple of qu

Re: Clojure for Map Reduce (on hadoop > 0.22)

2013-06-07 Thread Ramesh
Thanks a lot, Alex. It works for me too. Thanks, ramesh On Mon, Jun 3, 2013 at 4:26 PM, ronen wrote: > Iv used Alex version and works great (on that note thank you Alex for > keeping it going) > > Ronen > > > On Wednesday, May 29, 2013 11:45:13 AM UTC+3, Alex Ott wrote

gen-class - ClassNotFoundException

2013-05-31 Thread Ramesh
Hello All, What is wrong with the following usage? (I have this code in a file, and I'm calling "clojure ") (ns com.me.HelloWorld (:gen-class)) (println (com.me.HelloWorld.)) I get a java.lang.ClassNotFoundException. -ramesh -- -- You received this message because you ar

Clojure for Map Reduce (on hadoop > 0.22)

2013-05-28 Thread Ramesh
Hi All, I want to use clojure to write map reduce tasks on Hadoop version > 0.22. I was wondering if this is possible with Stuart Sierra's clojure hadoop https://github.com/stuartsierra/clojure-hadoop If not, are there other libraries which allow me to write map-reduce jobs in clojure?

Re: Stackoverflow on a function listing files in a directory recursively

2013-05-20 Thread Ramesh
So, I think concat is the problem here. I wish there were recommendation for other options and reason in the Stacktrace to help me code better! And file-seq is exactly what I'm looking for :). Thanks all! Thanks, ramesh On Mon, May 20, 2013 at 1:21 PM, Ben Wolfson wrote: > Basica

Stackoverflow on a function listing files in a directory recursively

2013-05-20 Thread Ramesh
at clojure.lang.RT.seq(RT.java Thanks, ramesh -- -- 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

Re: [ANN] getclojure.org

2013-05-16 Thread Ramesh
>Obj" to be a valid IFn, but couldn't even search for it. -ramesh On Thu, May 16, 2013 at 8:41 PM, Devin Walters wrote: > There are some tweaks required on the analyzer/filter/tokenizer to allow > certain queries. I wish Michael Klishin of ClojureWerkz fame was here to &

Re: [ANN] getclojure.org

2013-05-16 Thread Ramesh
Looks like "->>" is not supported. I quoted it! http://getclojure.org/search?q=%22-%3E%22&num=0 -ramesh On Thu, May 16, 2013 at 6:12 PM, Devin Walters wrote: > Hey All, > > I put this ( http://getclojure.org ) together and wanted to share it with > all of you

Clojure libraries on remote machines

2013-03-28 Thread Ramesh
Hi, I have a few machines without internet connection. We have a ubuntu repository mirror, so I can install clojure using apt-get. But, how do I install clojure libraries with all dependencies for projects on these machines? Even maven is not an option here. ramesh -- -- You received this