#clojure logs

2008-08-20

09:38cemerickit appears that all of the invoke overloads emitted by genclass (when the genclass specification includes a reference to IFn or something that implements/extends it) attempt to invoke super.invoke with two more arguments than they should -- this leads to the 19- and 20-arg invoke implementations including references to 21- and 22-arg IFn invoke signatures, which don't exist.
12:34cemerickdoes anyone else see a significant delay in google groups' email gateway (both sending and receiving)? Posted messages get to me about two days after they're visible on the site, and messages I send in by email can take anywhere from 5 minutes to many hours to appear online.
12:35kotarakI noticed that, but that was a one time issue for me. A mail of mine took 12hours to show up. It was even overtaken by another one.
12:35cemerickit's persistent for me. Totally irritating, especially since email is the only way to attach files to a post.
12:36kotarakYeah. That's also annoying.
12:40Chouser2 days!? I hadn't noticed that.
12:41cemerickYup. I'm reading the alter vs. commute thread online because it hasn't shown up in my email yet.
12:41cemerickor, the latest stuff hasn't.
12:44ChouserI've gotten all of that via email. I don't think Rich's last note was more than a few miutes late.
13:30albinosetting up mailman is definitely preferred
13:52cemerickgoogle groups is far preferable to mailman w.r.t. everything aside from its mail handling
13:54albinowhy is that?
14:13cemerickmailman is painful in every aspect -- administration, UI, archival access, etc., etc.
14:15albinoheh
14:15albinoI thought the opposite
14:16cemerickInteresting. I thought everyone hated mailman archives. They have a very gopher-esque quality to them. ;-)
14:25albinomy personal hate goes to the web arvhives that don't have a thread view
14:25albinothat always kills me
15:31solkisQuestion: What is the best way to add third-party jars to the clojure installation? I've previously setup command-line and emacs support for clojure via a script but now I want to start to play with it a bit. Do I need to modify the -cp flag of my script to point to each jar I may want to use or is there a way that can dump jars into a directory and they will be available?
15:38ChouserI think that's actually a Java question. Whatever the normal way is to add .jars to your classpath, do that.
15:38ChouserNo, I don't know what that is. :-) It may very from one OS to another, or even between distros. I'm not sure.
15:39kotarakIn Mac (and Unix I think) java respects the CLASSPATH env var.
15:39cemerickYeah, Clojure is a Java "app" just like any other. At some point, you need to inject the other jars into your classpath (either -cp or CLASSPATH env variable, etc)
15:40solkisOk, thanks.
16:21albinothere's a cli agrument you can pass to use a directory full of jars, isn't there?
16:22albinoand -cp if you want to pass each jar on the command line
16:30solkisnot sure... I think -cp or -classpath will search in directories for class files but will not automatically add any jars or zips it finds to the classpath.
16:35albinohttp://today.java.net/pub/a/today/2005/04/26/extending.html <- -Djava.ext.dirs= according to that
16:40solkisok, yes... I have seen that used
16:46solkisanother easy question: is there a way to use bit-or functionality when I have multiple arguments? I'm checking out clojure while using a little SWT and when trying to create a shell you need to bitwise or some various options... but this won't work because bit-or only takes two arguments: (bit-or (. SWT CLOSE) (. SWT TITLE) (. SWT ON_TOP )
16:46solkisI could nest another bit-or but I didn't know if there was an easier way
16:48albinono clue really, but can't you write a function that takes a variable amount of arguments and returns the bit-or of all the args?
16:48kotarakmaybe: (reduce bit-or [(. SWT ....)])?
16:51solkisI'll investigate these approaches... I'm new to clojure (and lisp) :)
16:53kotarakI don't know how far to push this, but...: (reduce bit-or (map #(. SWT %) '(CLOSE TITLE ON_TOP)))
16:53kotarakProbably bad style.
16:54solkis(reduce bit-or [(. SWT CLOSE) (. SWT TITLE) (. SWT ON_TOP )]) definitely does it!
16:55kotarakI don't like the multiple (. SWT ...), but it's probably pushing things...
16:56solkisI like your 2nd example too, especially in terms of me learning more here, but it didn't run... I'm looking to see why
16:56kotarakOops. Ok. Know why.
16:57kotarakIt's wrong.
16:57kotarakAs I said: pushing things.#
16:58kotarakI shouldn't chat at that time of the day...
21:48Chouserif those are class statics, you cant say [SWT/CLOSE SWT/TITLE SWT/ON_TOP] instead