#clojure logs

2009-02-01

00:00durka42:)
00:01gnuvince_However, now that the seq is evaluated, the time for seq vs vector is nearly the same (still 6 seconds faster for seq)
00:02durka42apparently computation takes time :)
00:02durka42weird that you needed a doall if the lazy algorithm worked before
00:02gnuvince_See ya
00:27gnuvince_lisppaste8: url?
00:27lisppaste8To use the lisppaste bot, visit http://paste.lisp.org/new/clojure and enter your paste.
00:27lisppaste8gnuvince pasted "Does this look clean?" at http://paste.lisp.org/display/74667
00:31dreishNot without a docstring.
00:35ayrnieu,(into [] (range 100))
00:35clojurebot[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99]
00:35ayrnieu,(vec (range 100))
00:35clojurebot[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99]
00:41lisppaste8ayrnieu annotated #74667 with "hash-map/repeatedly" at http://paste.lisp.org/display/74667#1
00:50gnuvince_ayrnieu: I had tried with memfns, but they were too slow. In the end, I went with a small macro to call the appropriate method.
01:21blbrownayrnieu, what is the difference between the into and vec calls
01:25blbrownhmm, #clojure is way more active than #jruby. hmmm, that is saying something
01:27Wizardofwestmarcreally? I'm surprised, since I thought jruby was a fairly popular ruby implementation
01:48durka42so i can do (reduce max [1 2 3 6 4]) to get 6, but is there an easy way to get the index back too?
01:51Wizardofwestmarconly thing I can think of is building a set of pairs, so like [1 0] [2 1] etc then making a lambda that max's against the first value
01:54durka42yeah
01:54durka42i'm working on that
01:54durka42java is very touchy about what i do with this array...
01:54Wizardofwestmarcoh fun
01:54durka42if i try and count it the jvm crashes
01:55WizardofwestmarcI'd try writing it up but this machine's copy of slime-mode for clojure is broken
01:55Wizardofwestmarcsince I do most of my clojure coding on the laptop haven't bothered to correct it.
01:56durka42(reduce #(if (> (second %1) (second %2)) %1 %2) (indexed pixel-data-array))
01:56durka42that should do it, no?
01:56durka42indexed from contrib.seq-utils
01:56Wizardofwestmarcif indexed returns what I think it does I would expect that to work
01:57Wizardofwestmarcwhat error are you getting?
01:57durka42the JVM segfaults :)
01:57Wizardofwestmarc...really?
01:57Wizardofwestmarcwow
01:57durka42yeah
01:57durka42i thought it wasn't supposed to do that
01:57Wizardofwestmarcgimme a sec to get on the laptop, I want to try this
01:58durka42Invalid memory access of location 00000000 eip=09433ff5
01:58durka42it might be QTJava that's unstable
01:59durka42,(reduce #(if (> (second %1) (second %2)) %1 %2) (indexed (into-array Integer/TYPE [5 4 3 2 1])))
01:59clojurebotjava.lang.Exception: Unable to resolve symbol: indexed in this context
01:59durka42,(use 'clojure.contrib.seq-utils)
01:59clojurebotnil
01:59durka42,(reduce #(if (> (second %1) (second %2)) %1 %2) (indexed (into-array Integer/TYPE [5 4 3 2 1])))
01:59clojurebot[0 5]
01:59durka42works fine with normal arrays
02:00Wizardofwestmarcso indexed uses java arrays and not vectors?
02:01durka42java arrays seem to magically convert to seqs
02:01Wizardofwestmarchm
02:03durka42it's so weird
02:03durka42i can (reduce max pixel-data-array)
02:03durka42and (indexed pixel-data-array) is fine
02:04durka42but trying to reduce with the indexed array, or trying to (count pixel-data-array) is a crash
02:07Wizardofwestmarcso you're using Jambi?
02:07durka42no, QTJava for grabbing images from an iSight
02:08Wizardofwestmarchm
02:08durka42it is, unfortunately, a 32-bit only API that is headed for obsolescence
02:09durka42but there is no java wrapper for its replacement yet
02:09Wizardofwestmarceck
02:09Wizardofwestmarcand I hate when I get screwed up by a typo
02:09Wizardofwestmarcwas trying to use seq-utils, kept getting errors, thought it was a classpath issue
02:09Wizardofwestmarc...turns out I was typing clojure.contrib.seq-util
02:10Wizardofwestmarc*headdesk*
02:14blbrownWizardofwestmarc I have been on there for years and rarely see a lot of discussion (#jruby). but then again, there is a #ruby-lang and jruby is really just the java implementation. Maybe there is no need.
02:15blbrownDiscussion of the book I want to write. http://berlinbrowndev.blogspot.com/2009/01/outline-for-enterprise-development-with.html
02:16Wizardofwestmarchm, certainly a useful book idea. And with the love all the JVM languages are getting these days could be popular.
02:17Wizardofwestmarcnow if only my work codebase was on the JVM so I could convert them to clojure >_>.
02:18blbrownWizardofwestmarc, exactly. There are books for each language (most of them anyway) but I feel there is a place for using a combination in an enterprise shop. You might use jruby for jdbc based scripting. scala for engineering a server app. Clojure for web apps, GUI apps
02:18blbrownWizardofwestmarc, but you can't call the existing code from clojure
02:19Wizardofwestmarcblbrown: oh yeah. Using multiple languages to take advantage of their strengths, assuming you have a good enough dev team to handle it, will only increase productivity
02:21blbrownWizardofwestmarc take (clojure.xml/parse filename) ... that is one line of code to load a serialize a xml file. How many lines of java setup code is normally required to do that? 30-40?
02:21Wizardofwestmarcat least
02:22Wizardofwestmarcand the idea of tying into, say, django with clojure is pretty appealing since I come from a python background on personal programming
02:23Wizardofwestmarcgiving you the power of a proven framework but the other capabilities of clojure on top of it.
02:23blbrownyou mean mixing django jython and clojure?
02:23Wizardofwestmarcright
02:24blbrownwoaaa, heavy
02:24blbrownI am going to add that to my book
02:24Wizardofwestmarcshould be doable
02:24Wizardofwestmarcrails works with jruby as well doesn't it?
02:24blbrownjruby/rails was too slow. Like 2 seconds a request too slow I don't know about django/jython.
02:24Wizardofwestmarc...
02:24Wizardofwestmarcwow that bad?
02:25Wizardofwestmarcand the django guys took the time to help get it working on jython
02:25WizardofwestmarcI doubt they'd have been satisifed with slow and crappy
02:25blbrownWizardofwestmarc, I bench marked it too. http://berlinbrowndev.blogspot.com/2008/08/application-server-benchmarks-including.html But I think I ran with the wrong rails settings
02:25blbrownI like django over rails anyway
02:25Wizardofwestmarcnod
02:25WizardofwestmarcI'm just not big on ruby, I looked at it at one point
02:26WizardofwestmarcI already knew python and ruby didn't feel different enough to warrant the time to learn.
02:26Wizardofwestmarcseemed better to spend the time getting into stuff like lisp that expands you in other directions entirely.
02:26blbrownI don't have a the language developer chops to totally describe the issues with ruby, but I just felt that I didn't see any productivity gains with the style of development.
02:27blbrownplus, it is totally interpreted (at least pre 1.8) and slow in most of the benchmarks
02:27Wizardofwestmarcyeah, 1.8 and before was at least close to the slowest "big name" vm around
02:27Wizardofwestmarc1.9 supposedly is a lot better, according to a ruby nut I know
02:29blbrownthis book will be awesome, will also cover setting up the various IDEs . Textmate, VIM, Emacs, JEdit, Eclipse
02:30blbrownonly thing, I am certainly a guy that will brush over the finer grain details of a technology, but this is a quantity over quality kind of book
02:32Wizardofwestmarcblbrown: if you're going that route I hope you'll include information to point to more in depth data about various things
02:34blbrownWizardofwestmarc, absolutely, the clojure book I believe is 300+ pages on clojure, all or most of the language features. I want to do short 'how to do X' How to write a web client app in X language. How to write a GUI, etc.
02:34Wizardofwestmarcblbrown: gotcha
02:47durka42interesting... second is kind of slow
02:48blbrownWizardofwestmarc, only thing and I asked this earlier. Do people want to use the java specific libraries on the jvm. For example, people will probably use Jython/Django. But do people use springmvc and jython. hmm
02:48durka42and first is twice as fast as second
02:48Wizardofwestmarcblbrown: hm, probably depends on the person's background
02:49blbrownWizardofwestmarc, still, how much Java do you take with you when you use a jvm language. I have been asking myself that for 10 years.
02:49Wizardofwestmarchm
02:49blbrowndurka42 http://barefootdevelopment.blogspot.com/2007/07/jruby-on-rails-performance.html they are showing similar performance. I am sorry, 1 second request is unusable for a web app
02:50durka42oh
02:50durka42i was talking about clojure.core/first and clojure.core/second
02:50durka42:)
02:50blbrowndurka42, oops, sorry
02:51Wizardofwestmarcactually, first being twice as fast as second doesn't surprise me
02:51durka42since second is #(first (rest %))
02:51Wizardofwestmarcwell, that and the simple fact you're going to the second element of a linked list basically
02:52Wizardofwestmarcso even if it were implemented some other way then (first (rest %))
02:52Wizardofwestmarcunless first doesn't inherently go against the seq of the collection
02:52durka42right, although not all collection types are linked lists
02:52durka42i was testing with vectors
02:52Wizardofwestmarcerr first and second
02:52Wizardofwestmarcdoesn't matter likely
02:52Wizardofwestmarcit's probably doing it as though it were a seq
02:52blbrownI wonder if that is where the JVM kicks in with any optimizations
02:52Wizardofwestmarcsince it's going off of the interface
02:53Wizardofwestmarcblbrown: if you ran that code enough times the JIT might find a way to speed it up
02:53durka42in doing the indexed max thing, there is a visible performance difference between using seq-utils/indexed and #(if (> (second %1..., and re-implementing indexed to put the index second, and using #(if (> (first %1...
02:53Wizardofwestmarcbut you'd need to do a ton of timing tests and see if it suddenly increased in speed after a while.
02:54Wizardofwestmarcdurka42: how many items are in your list?
02:54durka42,(* 320 240)
02:54clojurebot76800
02:54Wizardofwestmarchm, yeah
02:54Wizardofwestmarcso even a 30-50 ms delay adds up
02:56Wizardofwestmarcgood thing it isn't a larger image <_<
02:56durka42640x480 is unusably slow :(
02:56durka42and if i set any other resolution...
02:56durka42you guessed it -- the JVM segfaults!
02:57durka42did i mention i don't like this library very much
02:58Wizardofwestmarconly a couple times, but from what you're saying it probably needs saying a few more ;-)
02:58Wizardofwestmarcis the lib open source so you can dig into the guts of it yourself if need be?
02:58durka42alas, i don't think so
03:15blbrownhttp://donsbot.wordpress.com/2009/02/01/haskell-is-a-busy-place/ good grief, haskell is becoming popualar
03:16durka42i wonder what such a graph would look like for this channel
03:17kotarakThe logs are available....
03:17WizardofwestmarcWell, I've heard only good things about Haskell, so not surprised it's getting so much buzz in the IRC channel.
03:18WizardofwestmarcI know I want to pick it up once I feel fairly comfortable w/clojure.
03:18Wizardofwestmarcespecially now that RWH is out
03:18blbrownand ironically pretty different from clojure/lisp. I guess more akin to scala. But there is a need for that strong, static typed language
03:18Wizardofwestmarcyeah, one where the compiler can save you from lots of dumb mistakes up front
03:19durka42well i'll be damned
03:19Wizardofwestmarcdurka42: ?
03:20durka42accumulating a max value using with-local-vars and having the library map my function over pixels is twice as fast as (reduce my-max (my-indexed (extract-pixel-array)))
03:20Wizardofwestmarcheh I know how that goes
03:20WizardofwestmarcI basically rewrote my own version of merge-with for some work I was doing
03:21Wizardofwestmarcthen when I switched to using merge-with the loop went from slow but useable to pretty damned fast
03:21durka42i had thought the overhead of calling the function would slow it down considerably
03:21durka42but apparently not
03:22blbrownWizardofwestmarc, durka42 maybe you should submit a patch
03:23durka42for making programs slower?
03:24blbrownwhatever the faster version was
03:25Wizardofwestmarcfaster was using the built in clojure.core operations
03:25blbrownoh
03:25Wizardofwestmarcinstead of trying to reimplement them (in my case because I totally missed merge-with in the api docs)
03:25durka42i wonder whether it's still funcall overhead
03:25durka42reduce calls a lot of functions
03:27durka42tomorrow i'll try unrolling reduce into a loop/recur
03:27durka42and see if my divide and conquer idea buys anything
03:27Wizardofwestmarcloop-recur has been slower then reduce and/or map every time I tried it
03:27durka42i'll keep that in mind
03:27Wizardofwestmarcbut I may have been doing it wrong, but fair warning
03:28Wizardofwestmarcerr however fair warning even
03:32Wizardofwestmarcdurka42: I take it you need all the data at once from this calculation?
03:34durka42Wizardofwestmarc: yes, this is real time image processing
03:34durka42FSVO real
03:34durka42not very sophisticated processing either
03:35Wizardofwestmarcnod
03:35durka42i can see why these things are generally written in C
03:35Wizardofwestmarcjust pondering if lazy might help, but I don't think so
03:35kotarakI hope the link works... http://spreadsheets.google.com/ccc?key=ptyDXXBHu_Ji3Dbcf-HE7BA
03:35kotarakThe #clojure Traffic
03:35Wizardofwestmarcyeah that worked
03:36durka42cool
03:36Wizardofwestmarctraffic seems... really erratic by that graph
03:41durka42goodnight all
03:43Wizardofwestmarchm, sleep sounds like a good idea, take care all.
03:59cadscan we make a concurrent package installation system for unix?
03:59cadsare there already such things?
04:02hiredman"for unix" is a target the size of a battle ship, or even a small aircraft carrier
04:46blbrownkotarak, can you chart that sucker
04:46blbrownnvm
04:47blbrownkotarak I am posting on reddit
05:19kotarakblbrown: sorry, was afk. What can I chart?
05:20blbrownkotarak, nevermind, I saw the chart on the spreadsheet
05:21blbrownso at present, clojure has about half the amount of traffic as #haskell
05:22kotarakHow long is Haskell around? The #clojure logs are for roughly one year.
05:28blbrownclojure is one of the top 167 blogs out of 8000 on freenode. It is close to couchdb in terms of activity
05:28kotarakWhat happened in October? There was an explosion. Also on the list...
05:31blbrownoct 2008, hmm are the logs all in text format?
05:32blbrownkotarak, without even looking, I bet this is where a newb comes on and says clojure/lisp sucks. Just my guess
05:33kotarakUp to now, we didn't have the clojure sucks part.
05:34kotarakMore the "why can't Japanese not be English" part.
05:36blbrownnothing abnormal in the oct logs http://clojure-log.n01se.net/date/2008-10-20.html
05:37Raynesblbrown: Clojure has less than a quarter of the amount of traffic #haskell has.
05:37RaynesThere are 600 people in there regularly and somewhere around 100 active at most times during the day.
05:38Rayneskotarak: I would guess that #haskell has been around for over 10 years.
05:39RaynesAt least it seems like it lol.
05:41blbrownRaynes I took the high end of clojure which was 220k at one point. haskells max was 400k
05:41RaynesHuh? I'm talking about active users at any given time.
05:42kotarakI just took the sizes of the file listing. So the markup will blow up the numbers....
05:42kotarakHowever the trend should be valid. :)
05:42RaynesOh, you mean activity.
05:42RaynesI was talking about users.
05:43RaynesIt's not that there are less users in #haskell I guess Clojure people just talk more.
05:43RaynesImagine if we had 600 users in here.
05:52RaynesWell at least a higher ratio over activity to users.
05:59Lau_of_DKHey Raynes :)
05:59RaynesHi Lau_of_DK.
06:03blbrownin the last 6 hours, jruby had one post
06:04kotarakWell. Normally that's the same here on Sunday mornings.
07:29adakkak_can someone tell me why I get a "wrong number of args passed" error for the following code http://paste.lisp.org/display/74674
07:30hiredman,(doc filter)
07:30clojurebot"([pred coll]); Returns a lazy seq of the items in coll for which (pred item) returns true. pred must be free of side-effects."
07:30hiredmanthe predicate function should be of one argument
07:31hiredmanyour ik function takes two
07:32adakkak_so I should rewrite it as (filter #(ik x %) (p)) ;; if I got the parens right ?
07:33hiredmanp doesn't need parens around it
07:34adakkak_true
07:34BigTomGood morning
07:34hiredmanor (partial ik x)
07:34hiredmaninstead of the #() form
07:35adakkak_hiredman: suppose ik returns a 0, is it possible to do (zero? (paritial ik x)) ? it does not seem to work
07:36BigTomWIth lazy collections, the persistant collection that gets generated is at the end of the chain of lazy components isn't it?
07:36hiredmanzero? does not return a function
07:36hiredmanwhich is what filter wants there
07:37adakkak_what I am trying to do is: (def factors (filter (zero? (partial mod x)) primes))
07:37adakkak_what is the best way to accomplish that?
07:38hiredmanBigTom: I am unsure exactly, but I believe all the stuff inbetween must be generated too
07:38StartsWithKadakkak_: (def factors (filter #(zero? (mod x %)) primes))
07:39hiredman(filter (comp zero? (partial mod x)) primes)
07:40adakkak_comp is the composition function?
07:40hiredmanyes
07:41BigTomso in adakkak_'s example (assuming primes is a lazy) there is a primes collection and a filter collection (of course, with Rich's funky collection classes there is only one underlying collection of 'things')
07:41hiredmanmost people seem to prefer function literals though
07:41adakkak_why couldn't you do (partial zero? (partial mod x))
07:42hiredmanBigTom: stuff that is needed is createdd and stuff that isn't is GCed
07:42BigTomok
07:42hiredmanadakkak_: because zero? takes one arg
07:43adakkak_makes sense
07:43hiredman(partial mod x) -> gives you a function that takes one arg
07:43hiredman(partial zero? that-function)
07:44hiredmanwould give a function of no-args that tells you weather a function is 0 or not
07:44hiredman(it isn't)
07:44hiredman(ever)
08:04turbo24prgmorning
11:35soothHow should I take all items in a (lazy) sequence upto and including the first that satisfies a given predicate?
11:38BigTom,(doc filter)
11:38clojurebot"([pred coll]); Returns a lazy seq of the items in coll for which (pred item) returns true. pred must be free of side-effects."
11:42soothBigTom: I know of filter but what is a clean way to take all the items until the true element? (foo #evenp '(1 3 5 6 7 8 10)) -> (1 3 5 6)
11:45ayrnieu,(doc take-while)
11:45clojurebot"([pred coll]); Returns a lazy seq of successive items from coll while (pred item) returns true. pred must be free of side-effects."
11:45soothayrnieu: Thanks that what I was looking for.
11:45ayrnieuhowever,
11:45Chouserthat only gets ... oh, really?
11:45leafwthat's some sort of lazy sequence generator.
11:45ayrnieu,(take-while even? [1 3 5 6 7 8 10])
11:45clojurebotnil
11:46ayrnieu,(take-while #(not (even? %)) [1 3 5 6 7 8 10])
11:46clojurebot(1 3 5)
11:46ayrnieudo you want the 6 ?
11:46soothayrnieu: Yeah
11:47soothayrnieu: Erm, I think I can re-write my predicate so that I take-while will be okay.
11:47soothayrnieu: Thanks
11:48ayrnieu,(let [[odd [e1 & _]] (split-with odd? [1 3 5 6 7 8 10])] [odd e1])
11:48clojurebot[(1 3 5) 6]
11:49Chouser,(let [s [1 3 5 6 7 8 10]] (concat (take-while odd? s) (take 1 (drop-while odd? s))))
11:49clojurebot(1 3 5 6)
11:49Chouserbleh
11:52adakkak_,(bigdec (. Math (pow 1000 1000)))
11:52clojurebotjava.lang.NumberFormatException
11:52adakkak_is there a way to make the previous statement work?
11:52Chouser,(.pow 1000M 1000)
11:52clojurebot10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
11:53adakkak_what does the M do?
11:53ayrnieu,(class 1M)
11:53clojurebotjava.math.BigDecimal
11:54adakkak_thanks
11:59gnuvince_,(time (.pow (bigint 1000) 1000))
11:59clojurebot10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
11:59clojurebot"Elapsed time: 2.872 msecs"
11:59gnuvince_,(time (reduce * (replicate 1000 1000)))
11:59clojurebot10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
11:59clojurebot"Elapsed time: 25.843 msecs"
12:03ayrnieu(defmacro constant [expr] (eval expr)) ... (defn foo [] ... (recur (* n (constant (.pow 1000M 1000)))))
12:52lisppaste8ayrnieu pasted "does this already exist? iterator-seq that clears iterator" at http://paste.lisp.org/display/74683
13:05turbo24prgis there a way to check how much memory a map consumes?
13:44Lau_of_DKGood evening gents
13:45gnuvince_hi
13:49durka42good afternoon
13:49Lau_of_DKdurka durka
14:58Lau_of_DKSo, anyone working on anything interesting?
14:59leafwLau_of_DK: slow Sunday?
14:59leafwLau_of_DK: I've been toying with a clojure gui to xmms2
15:00leafwhttp://github.com/acardona/xmms2-clj/tree/master
15:00leafwvery tiny. Just to see how to go about making guis in Clojure.
15:01Lau_of_DKleafw: Interesting, we can compare notes in a hour or so, I'll be uploading a GUI project to Github based on Qt
15:02leafwmy only problem with Qt is that on closing the main window and quitting the application, one has to restart the JVM. Otherwise, it segfaults.
15:02leafwdo you know any way around that problem?
15:03Lau_of_DKThere are a couple of ways to go around it
15:03mfredricksonLau_of_DK: I
15:03mfredricksonm writing a growl interface
15:03Lau_of_DKYou can see the simple one in the project I'm upping - The more difficult one, is launching a QtRepl
15:03Lau_of_DKmfredrickson: Growl?
15:03mfredricksonhttp://growl.info
15:03mfredricksonfor the mac users among us
15:04Lau_of_DKgrowl looks nice
15:09mfredricksonmy overall goal is getting popups from test-is when tests fail (or better yet, pass). Like this: http://blog.codefront.net/2007/04/01/get-your-testing-results-via-growl-notifications/
15:09Lau_of_DKAh mon kotarak ! Salut
15:10kotarakDo you have an bot waiting? ;)
15:10Lau_of_DKmfredrickson: Looks really good - Its a shame its only for Mac OSX
15:10Lau_of_DKno...
15:11mfredricksonLau_of_DK: there is a Linux copy called mumbles, there may be others for windows
15:12Lau_of_DKOk - Im 100% a Linux guy, I dislike proprietary software in most regards, so maybe I should look into mumbles
15:49Lau_of_DKdanlarkin: Hows "Barkin' Larkin'" doing? Almost Ver. 1.0 ?
15:50danlarkinLau_of_DK: hahah oh jeez, that won't be the name either :)
15:50Lau_of_DKoh :(
15:50Lau_of_DKBut how far along are you? I was actually hoping to dig into it soon, putting up some test sites
15:51danlarkinLau_of_DK: went skiing this weekend so no more work done on it since thursday, but I've got a ./manage.clj style system going
15:51danlarkinakin to django's ./manage.py
15:51technomancyLau_of_DK: hey, what do you think about clojure-mode coloring lazy forms a bit differently?
15:51Lau_of_DKIs it Githubbed yet?
15:51technomancy(just read the suggestion on the mailing list)
15:51Lau_of_DKtechnomancy: Example?
15:52kotaraktechnomancy: me too, but we have a nameing convention already: do... doseq, dorun, doall, ...
15:52technomancyLau_of_DK: I just mean picking slightly different colors for map and filter than you would for doseq etc.
15:52Lau_of_DKIts not a bad idea, I think visually it could never make it 'worse' than it is
15:53technomancykotarak: yeah, that's enough if it's followed closely I suppose
15:53kotarakfor just has an unfortunate name...
15:54Lau_of_DKYou prefer 'foreach' ?
15:54danlarkinLau_of_DK: nope still local only. I did work on the templating system too, you can plug in any arbitrary templating system by writing a loader function
15:54kotarakNo. for is not a loop.
15:55Lau_of_DKdanlarkin: Fair enough - Just to let you know, Im looking forward to it
15:55Lau_of_DKBtw, are you using ClojureQL for the DB backend? It ought to speed things up a little
15:55danlarkinLau_of_DK: but before I release anything I want to get my own templating system done, I hit a roadblock with that and switched to easier things
15:56danlarkinbut I've gotta finish it eventually :)
15:56Lau_of_DKCool
15:56kotarakLau_of_DK: For list comprehensions I only no the mathematical notation { (x, y) | x,y \in X, x <= y }. No name here..
15:56kotaraks/no/know
15:57technomancyoooh, unicodes.
15:57danlarkinLau_of_DK: no, I haven't started the model code yet :-/
15:57Lau_of_DKk
16:01Wizardofwestmarcdanlarkin: do you have any kind of guestimate on how long it'll take to get something you want to release to the public ready?
16:02technomancydanlarkin: what is this library you've got everyone talking about?
16:03danlarkinWizardofwestmarc: I hate estimates!
16:03technomancydid you finally find an appropriate prog-rock-related name?
16:03Wizardofwestmarchence guestimate :P
16:03danlarkintechnomancy: nope, as of yet unnamed
16:03Wizardofwestmarcif you don't that's cool, just wondering since I've got some ideas where I may have a web component, and if I could do that in clojure, well...
16:04Wizardofwestmarcand I was currently planning on using Django ;-)
16:04technomancyoh, the django port; right
16:04danlarkinWizardofwestmarc: all that I have left to do on my TODO for a 0.01 is getting a templating system in there
16:04Wizardofwestmarc\m/
16:04danlarkinWizardofwestmarc: oh... well this won't rival django anytime soon... probably ever
16:04Wizardofwestmarcif you get no help? Probably not
16:04Wizardofwestmarcbut if you can get it going, community can make a difference
16:05drewrIs there a git-hg yet?
16:07danlarkinWizardofwestmarc: it's true, more people would help :)
16:12Lau_of_DKGents, Im trying to consolidate some much needed Qt tools for making simple UIs and couple that with the main goal, which is a flexible parser for Git logs, which in the long run should be able to produce quality documentation, simply from the log. Its now up in version 0.1 @ http://github.com/Lau-of-DK/gitdoc/tree/master
16:15canadaduaneWhen I start Aquamacs (first time user) it tells me "Wrong type argument: stringp, nil" in the mini buffer. How can I go about finding where this is coming from?
16:17ayrnieu./src/dk/bestinclass/gitdoc/engine.clj: [ ui (QUiLoader/load (QFile. "/home/lau/coding/lisp/projects/lbj/core/git/git.ui")) ]
16:19Lau_of_DKayrnieu: Was actually fixing that right now, youre too fast
16:20ayrnieucanada: I don't see it right now, but there should be a command to debug your ~/.emacs; ask #emacs
16:21ayrnieumaybe look in *Messages* to see if Emacs told you the command, the way I remember it telling me in those circumstances.
16:21WizardofAwayAbout to head out, have a good day/evening everyone.
16:22Lau_of_DKSame to you
16:31Lau_of_DKOk, I've added a UI designer with Qt-Designer
16:31Lau_of_DKThe path is hardcoded, but it works
16:34Lau_of_DKclojurebot: clojureql?
16:34clojurebotclojureql is http://github.com/Lau-of-DK/clojureql/tree/master
16:34Lau_of_DKclojurebot: gitdoc is http://github.com/Lau-of-DK/gitdoc/tree/master
16:34clojurebotIk begrijp
16:43leafwis there any "break" statement for a (doseq [...] ...). I am reading from a lazy seq generated from line-seq
16:43ChousukeLau_of_DK: instead of port, you should probably call Jambi "bindings" just to avoid people thinking someone actually ported Qt to java...
16:43leafwotherwise I'll have to loop and set the next line as first/rest of line-seq
16:44kotarakleafw: (doseq [x (take-while #(some-condition? %) the-seq] ...)
16:44leafwthanks kotarak!
16:53Lau_of_DKChousuke: Youre right ofc
18:03danlarkinhttp://blog.higher-order.net/2009/02/01/understanding-clojures-persistentvector-implementation/
18:05durka42^ good read
18:25blbrowndamn, I lost my remote, can't watch the superbowl. darn
18:39hiredmanblbrown: don't worry, it is earlier but the steelers seem to be waltzing down the field
18:40hiredmanhah
18:42blbrowngood grief
20:30cadsdanlarkin: am just looking at that one right now
21:04gnuvince_Is it possible to download the Java library documentation for offline reading?
21:11Nafaignuvince_: You mean the javadocs?
21:24gnuvince_Nafai: yes.
21:26NafaiI believe they are downloadable from Sun, can't remember exactly where
21:27NafaiIn Ubuntu, I notice there is a sun-java5-doc package
23:00cooldude127fuck b-tree
23:00cooldude127s