{ANN} clojure-control 0.2.4 is out

2012-02-13 Thread dennis zhuang
Hi,all Clojure-control is a clojure DSL for system admin and deployment with many remote machines via ssh,and i have checked out a branch to make it work with clojure 1.3 now. At last, control 0.2.4 works well with clojure 1.3,and 0.2.3 works well with clojure 1.2: :dev-dependenci

[ANN] data.csv 0.1.1

2012-02-13 Thread Jonas
Hi data.csv is a csv reader/writer for Clojure. I released version 0.1.1 today and it should arrive at maven central soon. New in this release is more control over how and when the writer will quote strings. Hopefully, all necessary information can be found on github[1] Jonas [1]: github.com

Clojure/West unsession proposals

2012-02-13 Thread Alex Miller
Hey all, If you're attending Clojure/West and would like to plan an informal gathering before/during/after the Overtone party on Friday night, please add your idea or support here: http://clojurewest.wikispaces.com/Unsessions As we get closer we can start figuring out times and rooms. Alex --

Re: Google Summer of Code 2012 - any mentors?

2012-02-13 Thread Simone Mosciatti
More students +1 On Feb 9, 9:54 am, Baishampayan Ghose wrote: > Alexander, > > A discussion is currently ongoing in the Clojure Dev mailing list. > > We are still waiting for someone from Clojure/core to chime in. > > Regards, > BG > > On Thu, Feb 9, 2012 at 8:53 PM, Alexander Yakushev > > > > >

Re: Clarification on ClojureScript libraries

2012-02-13 Thread Sean Corfield
On Mon, Feb 13, 2012 at 4:53 PM, Dave Sann wrote: > I can confirm that externs are found on the classpath (including jars) in > the latest versions of clojurescript. Likewise. I blogged Getting Started with ClojureScript and jQuery based on that. Having the externs automagically specified inside

Re: Clarification on ClojureScript libraries

2012-02-13 Thread Dave Sann
I can confirm that externs are found on the classpath (including jars) in the latest versions of clojurescript. I use this. -- 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

Re: Clarification on ClojureScript libraries

2012-02-13 Thread ckirkendall
Base, Sean, Several of us are actively working on getting some of these issues resolved. I have a patch that I am finishing up testing on this week that will allow libraries to specify externs, libs and foreign-libs inside the library. This should fix some of the upstream dependency issues like t

Re: Persistent collections and garbage collection

2012-02-13 Thread pron
I watched Phil Bagwell's talk and found it very interesting, but I as far as I remember he doesn't discuss GC. Anyway, let's leave this as an "open question", and I'd be interested in hearing from people who've memory-profiled their persistent collections. But I can understand from your answer t

Re: what stack traces include / exclude regarding monads

2012-02-13 Thread Andrew
Here's the code if the list in the original post was too cryptic. None of the items beginning with "cc" show up in the stack trace by name -- m_bind shows up instead. (defn ee [] (show-stack)) (def dd (fn [s] [ (show-stack) s])) (def cc2 (with-monad sim-m (domonad [_# dd]

what stack traces include / exclude regarding monads

2012-02-13 Thread Andrew
I've been experimenting with a state monad. Below is a list of what is included in my stack trace [+] and what isn't [-]. I've noticed that a call to a symbol that is bound to the result of a domonad (not sure if that's the right way to describe it) doesn't end up in my stack trace. I was plann

Re: Avoiding reflection in vector-of

2012-02-13 Thread Alan Malloy
vector-of is just implemented poorly - with more than four arguments it calls .cons on the vector it's building up. If the type were known and type-hinted this would be a slightly faster version of conj, but lacking the type-hint it's just a much, much slower version of conj. Adding ^Vec to line 49

Re: Avoiding reflection in vector-of

2012-02-13 Thread Román González
Bryce which profiler are you using? just curious... On Mon, Feb 13, 2012 at 9:52 AM, Softaddicts wrote: > I did not checked the source code but maybe conj has a vector > specific implementation via protocols. > > Luc P. > > > > For what it's worth, I eventually figured out a solution: use conj >

Re: A Bug of map function?

2012-02-13 Thread Alan Malloy
If this is a bug, it's in eval, not in map. eval apparently just doesn't like to be handed lazy sequences, or something: repl-1=> (eval `(quote ~(lazy-seq nil))) CompilerException java.lang.UnsupportedOperationException: Unknown Collection type, compiling:(NO_SOURCE_PATH:14) ;; just to demonstrat

Re: Avoiding reflection in vector-of

2012-02-13 Thread Softaddicts
I did not checked the source code but maybe conj has a vector specific implementation via protocols. Luc P. > For what it's worth, I eventually figured out a solution: use conj > rather than applying the vector-of function itself. The following are > all about the same speed and avoid the refle

Re: Avoiding reflection in vector-of

2012-02-13 Thread Bryce
For what it's worth, I eventually figured out a solution: use conj rather than applying the vector-of function itself. The following are all about the same speed and avoid the reflection calls: (apply conj (vector-of :long) (range 1000)) (apply conj (vector-of :int) (range 1000)) (apply c

[ANN] clj-http 0.3.2 released

2012-02-13 Thread Lee Hinman
Hi all, I'm pleased to announce the 0.3.2 release of clj-http. clj-http is an idiomatic clojure http client wrapping the apache client (like ring in reverse). You should be able to use it from Clojars[1] with the following: [clj-http "0.3.2"] New features and bug-fixes (since 0.3.0): - added

A Bug of map function?

2012-02-13 Thread Eric Fong
=> (eval `'~(map identity [1 2 3])) (1 2 3) => (eval `'~(map identity ())) CompilerException java.lang.UnsupportedOperationException: Unknown Collection type, compiling:(NO_SOURCE_PATH:135) => (eval `'~(map identity nil)) CompilerException java.lang.UnsupportedOperationException: Unknown Collecti

Re: Stale .class files in protocols / records

2012-02-13 Thread Stathis Sideris
I have the same problem, and unfortunately I haven't found a better way to fix this apart from restarting the JVM. I start lein swank and connect to it using slime-connect from emacs, so it's not too painful, but still annoying. Maybe there is a way to force reloading without a restart, but I don't

Re: Stale .class files in protocols / records

2012-02-13 Thread Stuart Halloway
> I've noticed that code I change in defprotocol or defrecord does not get > reflected unless I rm -rf classes. I've taken to 'rm -rf classes/myapp && > lein run' as the main way to run my code. > > Code outside defprotocol and defrecord gets reloaded just fine. > > I've tried this with JDK1.6

Re: How to convert string into sequence with replacing matched text.

2012-02-13 Thread Takahiro
Tassilo Thank you for sharering your solution. I've just solved this problem in ClojureScript as follows. (defn foobar [acc s] (if-let [[_ pre m post] (re-find #"(.*?)(>>\d+)(.*)" s)] (recur (conj acc pre [m]) post) (conj acc s))) (foobar [] "hello >>1 hello>>33") ;=> ["hello " ["

Stale .class files in protocols / records

2012-02-13 Thread Andrew Cholakian
I've noticed that code I change in defprotocol or defrecord does not get reflected unless I rm -rf classes. I've taken to 'rm -rf classes/myapp && lein run' as the main way to run my code. Code outside defprotocol and defrecord gets reloaded just fine. I've tried this with JDK1.6 and 1.7 on OSX

Re: Clojure CDT up, cont, down, local-names throws arity errors after hitting breakpoint

2012-02-13 Thread Sean Neilan
I know. The church of emacs is becoming more compelling each day. As a convert from Vim, I have some baggage. I hope that won't be an issue. On Sat, Feb 11, 2012 at 10:50 AM, George Jahad wrote: > SeanC is referring to is the fact that swank-cdt now works seamlessly > with clojure-jack-in, than

Re: clojure-opennlp

2012-02-13 Thread Lee Hinman
On Feb 11, 2012, at 7:20 AM, Jim foo.bar wrote: > HI everyone, > > I was just wondering whether anyone has used the clojure-opennlp > wrapper for multi-word named entity recognition (NER)? I am using it > to train a drug finder from my private corpus and even though i get > correct behavior when

.class files constantly going stale?

2012-02-13 Thread Andrew Cholakian
I've noticed that when writing clojure code I constantly need to 'rm -rf classes' in my project, otherwise anything related to (defrecord) or (defprotocol) doesn't update. I've tried this on OSX Lion running both JDK 1.6 and 1.7. This isn't too hard to deal with in lein as I just run rm -rf cla

Re: Hierarchical logs

2012-02-13 Thread Jon Seltzer
I'm not sure I'm getting your data example (seems like there are some characters missing or out of place) but this might be what you're looking for: user=> (def stuff [['(+ 1 (- 5 2)) nil] ['(- 5 2) nil] [3 true] [4 true]]) #'user/stuff user=> (vec (for [m stuff] (vec (butlast m [[(