Re: thread running throwing error java.lang.Thread cannot be cast to clojure.lang.IFn

2010-08-06 Thread foop1
Aug 6, 5:34 am, Nikita Beloglazov wrote: > > > > > Hi, foop > > Your error in this line: > > (r4t (on-thread (prnTime))) > > You pass to function r4t thread instead of functions. Because > > (on-thread (prnTime)) returns thread > > You must pass #(on-thr

Re: thread running throwing error java.lang.Thread cannot be cast to clojure.lang.IFn

2010-08-06 Thread foop1
nTime)) returns thread > You must pass #(on-thread (prnTime)) instead > > Regards, > Nikita Beloglazov > > > > On Fri, Aug 6, 2010 at 3:13 PM, foop1 wrote: > > Hi, > > > Iam trying to run a function in a thread assuming that threads are > > runnable,

thread running throwing error java.lang.Thread cannot be cast to clojure.lang.IFn

2010-08-06 Thread foop1
Hi, Iam trying to run a function in a thread assuming that threads are runnable, below is my program i want to print 4 time the current date (defn- on-thread [f] (doto (Thread. #^Runnable f) (.start))) (defn prnTime [] (prn (System/currentTimeMillis))) (defn r4t [f] (d

Re: processing sequence/collection of functions

2010-08-04 Thread foop1
Hmm interesting , Thank you for your answer. On Aug 5, 12:36 am, Miki wrote: > Hello, > > > Does anyone of you can say as to how to pass in a collection/sequence > > of functions as input? > > > for ex pass in a vector /sequence [ function1 function2 function3] at > > the other end it would read

processing sequence/collection of functions

2010-08-04 Thread foop1
Hi, Does anyone of you can say as to how to pass in a collection/sequence of functions as input? for ex pass in a vector /sequence [ function1 function2 function3] at the other end it would read in the vector and execute those functions Thank you -- You received this message because you are

Re: Jersey REST with Clojure is it possible?

2010-04-12 Thread foop1
Hi Shantanu, is taimen framework follow JSR311 standard? just curious. Can you point me to any resource as to how an annotation can be translated to clojrue code Thank you On Apr 12, 1:57 pm, Shantanu Kumar wrote: > > or suggest me a nice rest framework  for clojure > > > i really like jersey,

Re: Jersey REST with Clojure is it possible?

2010-04-12 Thread foop1
Thank you all for the reply, do you know if the annotations support is coming to clojure? now a days mjaor libraries are having some form of annotation , actually annotation makes java program appear intutive and concise... Do you guys know any resource /blogpost where annotation has been convert

Jersey REST with Clojure is it possible?

2010-04-12 Thread foop1
Hi, Newbie to clojure, can i user jersey REST library along with clojure, if not you can tell me why it would not work if possible, or suggest me a nice rest framework for clojure i really like jersey, i want to use it though? Thank you -- You received this message because you are subscrib