#clojure logs

2008-07-13

05:22Lau_of_DKSo...any interesting recent development with/in Clojure ?
10:44meredyddSo...is anybody else experiencing a weird phenomenon whereby (.sleep Thread 100) will mysteriously hang forever?
10:45rhickeymeredydd: not here at the REPL
10:45meredyddrhickey: Me neither. But I've just seen an invocation of:
10:46meredydd(defn sleep [num-ms]
10:46meredydd (println "Sleeping" num-ms)
10:46meredydd (.sleep Thread num-ms)
10:46meredydd (println "Slept"))
10:46meredydd...oh, ffs.
10:46meredyddForgot to flush.
10:46meredyddOn the other hand, I *am* fairly sure the compiler bug I reported the other day is real.
10:47meredyddYou taken a look at that, rhickey?
10:47rhickeythe pr*n fns flush automatically now
10:47rhickeymeredydd: fixed already
10:47meredyddrhickey: Oh, good. *updates*.
10:48meredyddrhickey: That includes (println)?
10:48rhickeyyes, the newlines flush was last week
10:48meredyddah - I haven't updated to that yet.
10:49meredyddOh, excellent.
11:12rhickeyconj is now variadic
11:19Lau_of_DKvariadic? :)
11:20Lau_of_DKoh, got it
11:20Lau_of_DKfancy talk
11:20Lau_of_DKrhickey: in your own words, and in a philosofical quotable style, what would you say is the power of Lisp ?
12:02ChouserHeh. I knew I had little chance of success, but I tried to dig into meredydd's nested-try bug. I spent several evenings on it.
12:03Chousertook rhickey a few seconds, apparently.
12:05kotarakChouser: hi, thanks for your comments concerning the lazy-map idea. Do you maybe also know some examples of proxy usage?
12:05rhickeyChouser: When looking at verifier errors like that one of the challenges is the stuff you don't see, like the fact that (potential) exceptions reset the local stack, so manual stack-tracking gets hard
12:07Chouserrhickey: I figured out how to look at the bytecode that Compiler generates, and was picking through how try blocks are compiled. but that's about as far as I got.
12:07Chouserkotarak: xml.clj has an example of proxy for deriving a class from org.xml.sax.ContentHandler.
12:08kotarakChouser: Thanks. I will have a look at it.
12:34rhickeyChouser: loop destructuring also fixed
13:41Chouserrhickey: I saw that, thanks. you went a different way
13:42Chouserout outer let instead of multiple inside the loop binding.
13:42Chousers/out/one/
13:43rhickey(defn takes [coll]
13:43rhickey (lazy-cat [nil] (map (fn [n c _] (take n c)) (iterate inc 1) (repeat coll) coll)))
13:43rhickey(defn drops [coll]
13:43rhickey (lazy-cat (map (fn [n c _] (drop n c)) (iterate inc 0) (repeat coll) coll) [nil]))
14:20dudleyfAnyone else having problems with the svn repo?
14:20rhickeyI am, can't check in :(
14:20dudleyf:(
14:27hoeckargh! i was trying to export files from clojure.svn.sourceforge.net using svnkit
14:27hoeckthe whole time i thought it was my misuse of their API
14:28hoeckbut i can't check out either using the native svn client :(
14:46Chouserheh, yeah, I assumed I had messed up my git-svn repo somehow.
15:00dudleyfI spent 15 minutes trying to figure out what was wrong with the permissions on my /tmp dir