1:02defn: lancepantz: if you'd like to help out im trying to get it into more of a "finished" mode by adding some filters, javascript noshow for the results, and ultimately a way to "vote" for examples, or at least "favorite" them or something

1:10clojurebot: "([f] [f g] [f g h] [f g h & fs]); Alpha - name subject to change. Takes a set of functions and returns a fn that is the juxtaposition of those fns. The returned fn takes a variable number of args, and returns a vector containing the result of applying each fn to the args (left-to-right). ((juxt a b c) x) => [(a x) (b x) (c x)]"

1:16Licenser: defn: you can whitelist functions on your own you know that?

1:17defn: Licenser: yes but i like working with your official version because a.) you know what you're doing whereas i do not, and b.) if this is distributed it will be with your official version anyways :)

2:50Licenser: I mean in an ideal world we'd just install clojure libs that have dependencies to java libs :P

2:52 but the index you serve now is really cool I'll go and use that in the next push of lein-search since it saves so much time, bandwith and effort

3:01 so it'd be nice to have like a third entry in the map that gives the description but I'm not sure if that would break lein if copied in

3:07_ato: I'll make a seperate "full" feed that has the description. It'll probably be a gzipped text-file with one map per line that looks like: {:group-id "org.clojure" :artifact-id "clojure" :versions ["1.0.0" "1.1.0" "1.2.0-master-SNAPSHOT"] :description "Clojure is a functional Lisp on the JVM."}

6:50mrSpec: Hello, I have problem with clj-web-crawler. "org.apache.commons.httpclient.HttpClient Thrown class java.lang.ClassNotFoundException." What should I install to use it? I cant find this apache lib.

7:03kzar: So I'm reading through the Programming Clojure book and a lot of the Java terms in the Java interop chapter are foreign to me, is there a good guide to read just to learn enough about Java to understand how Clojure interacts with it?

7:14zakwilson: I would like to use a profiler with lein-swank. Could someone point me in the right direction for getting started? I'd also like a recommendation on a profiler. I played with a Yourkit trial about a year ago and liked it, though I'd prefer something open source.

7:14Borkdude: but Clojure + a massive library made a lot of sense to me to start using it

7:15 same I reason I started F# when I did .NET programming, but I like Clojure a lot better, because it's Lisp

7:15zakwilson: I came to Clojure not being in to Java or any other JVM language. I did know CL and Scheme first though.

7:15kzar: zakwilson: Yea that sounds more like me, I've done some Lisp but never Java

7:16Borkdude: zakwilsen: same for me, it's practical lisp, without the common ;)

7:16kzar: I guess I liked Common Lisp but it was such a nightmare to deploy on my webserver I never really stuck with it and I had to use Python instead. But Python isn't as nice so I was always looking for something else

7:16zakwilson: That's essentially been the appeal of Clojure for me as well. Very often, it feels like Rich thought about what I want to do before I did.

7:17 kzar: I did not find Common Lisp at all difficult to deploy on a VPS. What tools were you using?

7:17 Incidently, I haven't tried deploying a webapp on Clojure. It actually looks like it might be harder than CL.

7:18kzar: zakwilson: Well it was the first time I had ever done it so maybe I was just being stupid but it took me AGES to get it all working. I used hunchentoot running on SBCL using cl-who to make html and cl-couch to store data if I remember correctly

7:20Borkdude: Clojure took me also ages to setup... all these different IDEs and error msgs... takes a lot of searching and asking around to get it working

7:20zakwilson: kzar: Pretty much my setup. As for deployment, I saved an executable, then wrote a shell script that started it with detachtty and put the app behind Apache using mod_proxy.

7:21kzar: zakwilson: Oh nice, I didn't know how to save an executable (still don't) so I had to get it all running on there. Then I wrote a script that started it up at boot and used Nginx to put requests through to it

7:22Borkdude: The problem is that Emacs is most supported Clojure IDE probably... and learning Emacs and Clojure at once are two learning curves instead of one

8:45zakwilson: I'm trying to make a jar with leiningen. I have ":main foo.bar" in project.clj and "src/foo/bar.clj" contains (defn -main [] (clojure.main/main)). The jar buids, but when I run java -jar Foo.jar, I get Exception in thread "main" java.lang.NoClassDefFoundError: foo/bar

8:46 This structure seems to match leiningen itself, so I'm not sure what I could be doing wrong here.

9:03zakwilson: I knew that, but I somehow expected it to magically work in the project directory. I'm not sure *why* I expected that, not seeing any way that it would set the classpath to include the lib dir, but... I did.

9:05_ato: yeah, I've accidentally expected the plain jar to work many times before as well. You can of course do it like: java -cp 'lib/*:foo.jar' foo.bar

9:05zakwilson: And now I get Exception in thread "main" java.lang.ExceptionInInitializerError Caused by: java.lang.NoSuchFieldException: main

9:32Raynes: Hardcore Clojure users don't use any of that. For example, Rich sends expressions to a remote REPL in Antarctica via his mind and it's sent back encrypted with ROT-13, which he decrypts in his mind to get the returned value and output.

11:20Raynes: chouser: It should be sandboxed really well. For now, you can't even use the . special form.

11:20Chousuke: chouser: hm, looking at the new MEAP... You have examples about binding references to lazy sequences, and state that eg. (defn mr3 [s rf mf] (let [x (reduce rf (map mf s))] x)) is not safe, but isn't that outdated? Didn't the locals clearing optimisation solve that problem? :/

11:20Raynes: Feel free to try to break it in ways that wont damage my system. It can only help clj-sandbox. :>

14:53Hali_303: sorry guys I don't really get this. I know about function composition and that I can do (not (empty? astring)). I'm just asking why there is no shorthand for such a seemingly common use case

14:57Jevgeni: hi, I have a vector [1 4 5 5 10 12]. What should I use if I want to use "map" and create another vector, but to get access to the left and the right of the vector. For example, if I am processing the 3 element in the row, then I want to perform some operation on the left parts [1 4] and on the right part [5 10 12]. In Java I would use simple for and access the array before i and after i....

15:08clojurebot: "([v start] [v start end]); Returns a persistent vector of the items in vector from start (inclusive) to end (exclusive). If end is not supplied, defaults to (count vector). This operation is O(1) and very fast, as the resulting vector shares structure with the original and no trimming is done."

15:08Jevgeni: Chousuke: I have to do it for every element in the vector

15:08technomancy: if you need access to any part of the vector from the mapper fn then indexed is probably better

15:18anars: on windows I'm invoking my lein.bat to perform the 'uberjar' task for some project I've made. but it keeps telling me "Wrong number of arguments to task uberjar". what am I doing wrong? I've got vimclojure and nailgun running properly if that's any help.

15:45anars: sorry I'm repeating my question - just giving it one last shot: on windows I'm invoking my lein.bat to perform the 'uberjar' task for some project I've made. but it keeps telling me "Wrong number of arguments to task uberjar". what am I doing wrong? I've got vimclojure and nailgun running properly if that's any help.

15:51dgreensp: well, this is beyond my bat-file fu, but it looks like you know to use semicolons on windows and stuff; "wrong number of arguments" sounds like it could be something like that, or your quoting or something

15:56anars: dgreensp: that could be. even when running 'lein repl' inside a dir with a project.clj and another clj file with a few functions won't work. it fires up the repl fine, but it does not include my clj file.

15:58 hmm, it seems like my leiningen standalone jar is of the wrong version

20:02hamza: hmm, then thats should be a bug, quote from technomancy " :dev-dependencies key for things that shouldn't be pulled in at production or included in the standalone jar; the syntax is the same."

21:13_ato: technomancy: no-db is just something I've been slowly hacking away at now and then when I have some time, it's nowhere near complete. I realised Clojars doesn't actually need a database and it'd much better if you could just point it at any old maven repo on the filesystem and start it up. Replication would just be rsync. It will also do away with the dependencies on maven and nailgun, which were causing their own set of problems

21:49defn: technomancy: correct me if im wrong, but i added your repo to my emacs for package.el stuff, but i dont notice any updated versions