Re: Clojure library

2016-04-05 Thread Fernando Abrao
Yes, thats I wanted. Thanks a lot Regards Em domingo, 3 de abril de 2016 07:10:01 UTC-3, Ashish Negi escreveu: > > By default build tool : lein would not do AOT i.e. create .class files. > So, your jar with `lein uberjar` would have .clj files. You can verify with > un-tar the jar. > > If you h

Clojure library

2016-04-01 Thread Fernando Abrao
Hello all, What is the best way to create a lib for internal propose, that generate a jar file with .clj sources instead of .class, like it is in the libs from clojars? My idea is to create a lib (jar) common for all projects. Another idea is welcome. Regards, Fernando -- You received this

Re: Partial question

2016-02-23 Thread Fernando Abrao
P.S. If you *really want to* you can populate the :arglists metadata > yourself: > (def ^{:arglists '([message])} debug #(log "DEBUG" % :idVE "COM")) > > > > On Tuesday, February 23, 2016 at 1:14:33 PM UTC-5, Fernando Abrao wrote: >> >> Hello

Partial question

2016-02-23 Thread Fernando Abrao
Hello all, I´m trying to do something like: (defn log [type message & {:keys [id idVe] :or {id "LOCAL" idVe "END"}}] (println (str id ": " type " -> " message "<- " idVe))) (def debug (partial log "DEBUG" ?? :idVe "COM")) Is there any way to do what I want? Pass arguments to log and add

Concurrency Threads

2016-02-12 Thread Fernando Abrao
Hello All, I 'm doing a program that have to: - Read a file with list of hosts ip - Start pinging from n threads pool or whatever - Cycle the pinging again after thread sleep What is the best way doing it? Producer and consumer to use queue? One thread by ip? Any advice about it? Regards, Fern