#clojure logs

2011-09-25

00:30shep-homejli: No, it blows up with "No matching field found: getRoot for class clojure.lang.Var"
00:32duck1123are you using Midje?
00:40shep-homeduck1123: no, just clojure.test
00:40shep-homeJust starting out with Clojure, so I wanted to saty "close to home" so to speak
00:40shep-homestay*
00:40duck1123Ok, I had a similar issue using Midje with 1.3
00:40shep-homeWhat was the solution there?
00:41duck1123I had to patch the code in that case, but Midje never claimed to work with 1.3. clojure.test should just work
00:41duck1123Are you using lein test for this?
00:44shep-homeduck1123: that's my stopgap, running it from the command line
00:44shep-homeI was trying to use the emacs clojure-mode magic run tests
00:44shep-homelein test works fine
00:45shep-home(although lein interactive test has all sorts of fun errors)
00:45shep-homebasically, i just want to get my tests to run faster :-)
00:45shep-homewithin emacs would be ideal
00:45shep-homeinteractive would be good
00:45duck1123I haven't had much luck with Clojure test mode
00:46shep-home:-(
00:46shep-homethat's a shame
00:46shep-homeit seems so close to wonderful
01:00patchworkanyone know where ceil went?
01:00patchworknot clojure.contrib.math
01:01duck1123shep-home: Ok, I just confirmed I'm getting the same thing
01:07duck1123shep-home: changel line 192 in clojure-test-mode.el from .getRoot to .getRawRoot
01:15amalloypatchwork: ##(Math/ceil 3/2)
01:15lazybot⇒ 2.0
01:18shep-homeduck1123: thanks!
01:19shep-homeOne hope I have from learning clojure is that one day Ill be able to actually read lispy code :-)
01:20shep-homeduck1123: Of course, now that I know what to look for... https://github.com/technomancy/clojure-mode/pull/33
01:58patchworkamalloy: thanks!
03:08eliOcshihihi
03:09ikrHi there! Can nyone help me with that? http://stackoverflow.com/questions/7544146
03:13amalloyikr: see my comment
03:18amalloyand by the way, "Out of memory" is rather misleading, since it implies heap; when you get a stack overflow, say you got a stack overflow
03:21ikramalloy: Cool! Thanks!
03:28rata_how do I read a binary file and put it in a byte array in clojure 1.3? (in 1.2 there was clojure.contrib.duck-streams/to-byte-array)
03:36michaelr525hey
05:14Blktgood day eveyone
05:21kjeldahlAnybody know workarounds for Emacs paredit refusing to activate with a "Unmatched bracket or quote" error message in a file with perfectly valid Clojure code?
05:22kjeldahlFor the record; it works fine in another buffer with some other Clojure source... The one that fails is my unit test, which runs fine.
05:28michaelr525i have no idea
05:28michaelr525but i would be glad to have a link to a good intro into paredit
05:34kjeldahlI think I nailed it. My boilerplate paredit activation code in dot-emacs set up paredit for other modes as well, including lisp, lisp-interaction, scheme and emacs-lisp, and if I disabled those (which I'm not currently using anyway), it works fine in my clojure code.
05:34kjeldahlNailed a workaround that is, not the cause. :-)
06:10nybbleshey I'm sure people have probably seen this error msg before when running leingen: 1 required artifact is missing.
06:10nybblesfor artifact:
06:10nybbles org.apache.maven:super-pom:jar:2.0
06:10nybblesi have this problem ,trying to fix it :(
06:11nybblesdo these lines in my project.clj look correct?
06:11nybbles:dependencies [[org.clojure/clojure "1.3.0"]]
06:11nybbles:dev-dependencies [[org.clojure/swank-clojure "1.3.2"]]
06:11nybblesnot sure what else to check
06:12fliebelnybbles: Scroll up, the actual missing artifact is in the error as well.
06:13fliebelI'm not sure why it always reports super-pom, but it's something else that is missing.
06:14nybblesfliebel: ahhhhh i see.. grr. looks like it's swank-clojure, do you know what version i should be using?
06:19kjeldahl1.3.3-SNAPSHOT is the latest one on clojars
06:26nybbleskjeldahl: it didn't end up working until i manually ran the mvn command to install the swank-clojure jar (manually downloaded), even with version numbers that i found on clojars :| sucks.. dunno why it isn't working
06:44kjeldahlnybbles: Ok, good that you found a solution.
06:45nybbleskjeldahl: thanks, although it is basically using maven manually, i can get back to writing clojure :)
07:00bsod1wow, I've just solved "for science!" in 4clojure.. my code is bad though, I still can't get `functional way`
07:00michaelr525paredit-wrap-around with {[ doesn't work for me.. anyone knows how to fix this?
07:00michaelr525bsod1: congrats
07:04kjeldahlmichaelr525: Exactly what are you testing? Seems to work fine here.
07:05kjeldahlAlso, it's paredit-wrap-ROUND at my end, not AROUND..
07:08michaelr525well (what |what) -> Hit M-[
07:08michaelr525Meta-[ is undefined
07:08michaelr525kjeldahl: ^^
07:10kjeldahl michaelr525: It's the same here. I was testing something else (marking, then pressing [ etc, but that's probably a different call).
07:10michaelr525thanks
07:11michaelr525hmm
07:11michaelr525the marking stuff is cool
07:11michaelr525although marking is tedious
07:12kjeldahlAgree.
07:15kjeldahlmichaelr525: This fixes it: (define-key paredit-mode-map (kbd "M-[") 'paredit-wrap-square)
07:16kjeldahlSame thing with -curly instead of -square I guess.
07:21michaelr525great!! :)
09:21shintakuwhy is this false: (instance? java.lang.Runnable (#()))
09:22shintakuwhile this is ture: (instance? java.lang.Runnable (fn []))
09:23Chousuke,(#())
09:23clojurebot()
09:23Chousukebecause of that
09:23Chousukewhat you meant is
09:24Chousuke,(instance? java.lang.Runnable #())
09:24clojurebottrue
09:24shintakugotcha
09:35shintakustupid question: why have recur instead of just calling the function name? is it because clojure feels that tco is something the compiler shouldn't do?
09:35danlarkintco isn't supported by the jvm
09:37shintakuyeah, but scala doesn't have this problem. i don't have to remember to use some special recur function. i just call the function name and the compiler takes care of the tco for me
09:37ambrosebsits a design decision
09:38shintakui'm not sure i understand it
09:38shintakuit seems to add complexity
09:38shintakuright?
09:38clojurebotEqual Rights for Functional Objects is Baker's paper on equality and why it's impossible to define sensible equality in the presence of mutable data structures: http://home.pipeline.com/hbaker1/ObjectIdentity.html
09:38shintakuit's one more thing i have o remember
09:38danlarkinit is the way it is
09:38ambrosebsa benefit it that you are being explicit about tail position
09:38ambrosebsit fails if it's not in tail position
09:39shintakuoh, it can fail?
09:39shintakuthat's nice
09:39ambrosebsi think so
09:39shep-homeshintaku: i also think it's suggested to use sequence functions instead of recurring directly
09:40shep-homewhen possible that is
09:40raekcan scala optimize tail calls to other functions too?
09:40shep-homeI've certainly seen recur fail if it's not actually in the tail
09:41raekclojure uses the JVM call stack for functions, so for TCO to work, the JVM must offer it
09:42shintakuraek: i haven't used scala that much to answer it and i also don't write recursive functions too often in it when i am using it
09:42robermannon page 145 of JoY there is an explanation of "why recur"
09:43shintakugreat. i just bought that
09:43raekcurrently it doesn't, so clojure introduces 'recur' for self tail calls, which is the only case the clojure compiler can optimize
09:43shintakuthanks, robermann
09:44robermannIt opens with "There’s no technical reason why Clojure couldn’t automatically detect and optimize recursive tail calls—Scala does this—but there are valid reasons why Clojure doesn’t."
09:45shintakuyeah, scala has to add annotations so you'll know when something isn't being tco'ed
09:45shintakui believe. again, it's been a while
09:45raekalso, 'recur' can be used with 'loop'
09:47raekso it has more uses than recursive function calls
09:51khaliGshintaku, yeah i'm with you on the 'too much to remember' - it's like learning c++ or something, there is so much to remember, but recur is actually cool once you get used to it, like many things
09:58robermanndoes anyone know if the .NET CLR allows
09:58robermanna general tail optimization?
09:58robermannjust curious about it
10:20LauJensenGents, Ive moved from Linux to OsX and I can't get slime up and running. Its basically the same emacs setup as on *nix, but for some reason the repl will eval "2", but not (+ 2 2) then it'll throw a reader exception. I've tried cake swank, lein swank from both Emacs and Eclipse. I've tried lein-swank 1.2.2 and 1.3.3-SNAPSHOT. Any ideas?
10:20shep-homeLauJensen: what version of emacs?
10:21LauJensenAquaMacs 23.3.1, but it can't be related to the client since two different clients are seeing the same issue
10:21shep-homeand do all the other versions match with your Linux setup?
10:22LauJensenYes, an exact copy
10:24shep-homeHmm. I just set up (and still setting up) an environment
10:24shep-homeand it seems to be working
10:25shep-homewhich isn't useful to you :-)
10:25shintakuthanks for the help earlier
10:26LauJensenshep-home: Did you follow a guide?
10:30skelternetthe problem I had was that there were several old guides and things had changed just a little bit
10:31shep-homeLauJensen: pretty much what skelternet said - I read a few and put pieces together :-\
10:32shep-homeI installed package.el, used it to install clojure-mode, slime
10:32shep-homegot inferior-lisp mode working (set the program to `lein repl`)
10:32shep-homethen used clojure-jack-in
10:32robermannthis could help: http://groups.google.com/group/clojure/browse_thread/thread/986227536292502b/e735e9554eeabe17?show_docid=e735e9554eeabe17&pli=1 (check MarsiO's response)
10:32LauJensenSame her. Used my old config from nix. Tried various versions of slime… Its tricky to pinpoint where the breakage is. Logically I would say Swank itself
10:33shep-homeim sure there were lots of extra steps in there
10:33LauJensenWorth a try robermann, thanks
11:20IceD^hey
11:21IceD^trying to use lein here, can't install clojure 1.3 (also, sawnk-clojure autoinstalls clojure-1.2 for some reason)
11:21IceD^any help?
11:52deniswis there a core function like "filter" which also returns a sequence of the filtered elements?
11:53ambrosebsthe partition-by might be what you're after
11:53ambrosebsI forget the details, there are other partition-* functions
12:00deniswambrosebs: never mind found what I was looking for, group-by
13:07jlidoes the jvm get all the memory that it can allocate to programs on startup, to save from continuously calling malloc or something?
13:07pyranybody using pinot ?
13:09pyrit keeps failing on missing goog.require files
13:12pyractually it might be cljs-watch acting up
13:14pyrso if anybody's getting goog.require "namespace never provided" errors for namespaces that are there, i'm all ears
13:14pyr(with cljs-watch i mean)
13:33pyrah, think i got it, seems as though it cannot get to the code that's in goog-jar
13:52dbushenkohow to use new modular contrib?
13:52dbushenkofor instance, I want to include tools.cli in my project
13:52dbushenkohow to do that?
13:53dbushenkowhere I can see the current version of it?
13:54Bronsadbushenko: http://github.com/clojure/tools.cli/blob/master/pom.xml
13:54Bronsa0.1.1-SNAPSHOT
13:55dbushenkoBronsa, thanks!
13:58dbushenkoBronsa, [org.clojure/tools.cli "0.1.1-SNAPSHOT"] --artifact missing
13:58redline6561Any overtone hackers about?
14:01khaliGwhat's *agent*?
14:06Bronsadbushenko: then go with 0.1.0
14:06Bronsaprobably the snapshot hasnt been pushed to maven
14:06dbushenkoBronsa, yep, you are right. 0.1.0 just works
14:07dbushenkohow to test whether the variable is a simple or compound value?
14:09khaliGdbushenko, coll?
14:10dbushenkokhaliG, yep, but is there one command like (not (coll? x)) ?
14:10khaliGdbushenko, (complement coll?) :P
14:11dbushenko:-D
14:11dbushenkook, thanks
14:33devnredinger: what's the question?
14:33devnerr redline6561*
14:33devnlooks like he logged off :\
15:01LauJensenM-x clojure-jack-in fails saying "sh: line 1: lein: command not found", why does it do that when 'lein' in on PATH and works from the terminal?
15:01srid(twitter's) storm uses pallet? i thought pallet had no real-world uses yet.
15:03antoinemi had the same problem than LauJensen
15:03LauJensenantoinem: Did you fix it?
15:03antoinemnope, just had it today
15:04antoinemi'm interested in finding a solution
15:05LauJensenguess I'll just hard code the full path into the .el
15:10RaynesLauJensen: It lives! I haven't seen you around here in forever.
15:10LauJensenRaynes: Yea Ive been busy doing stuff :) How have you been?
15:10RaynesFantastic.
15:11LauJensenAre you at the Conj?
15:11RaynesSpeaking, even.
15:12LauJensenAbout?
15:12RaynesClojail.
15:12RaynesAnd sandboxing in general.
15:13LauJensenOkay great, looking forward to seeing the video
15:13Raynes:)
15:20LauJensenat long last I have a god damn slime repl on osx
15:26antoinemLauJensen: i ended up in setting it as a config var, like the m2 and jars stuff, works for me too
15:26LauJensenk
15:26LauJensenWe really should pay some on to make a simple script for nix, windows and osx
15:27antoinemyep
15:28LauJensentechnomancy: want some money? :)
15:32amalloykjeldahl: you can mark things in a less-tedious way by pointing at the start of your form and then pressing C-M-SPC a few times
15:35amalloyjli: it doesn't do that by default, but you can force it by setting the minimum and maximum heap sizes to be the same
15:36hugodsrid: http://blog.gogrid.com/2011/02/08/agile-development-at-gogrid-with-pallet-and-jclouds-presentation/
15:37hugodand they recently took on a clojurian to support their pallet usage
15:38khaliGclojurian? why not clojurer?
15:43kjeldahlamalloy: Thanks for the tip; works great!
15:59TimMckhaliG: "conj"urer!
15:59khaliGTimMc, i like it :)
16:01gtrakibdknox: how do you get cljs-watch to ignore the temporary .#filename.cljs files that emacs creates? compiling works sporadically b/c of that
16:01ibdknoxhm
16:01ibdknoxgtrak: it should ignore them
16:02ibdknoxThis line should prevent them: (and (not= \. (first fname)) (.isFile f) (= fext ext))))
16:03thorwilgiven a map m with string keys, is there a better way to get to a map with keywords? (reduce #(assoc %1 (keyword (first %2)) (second %2)) {} (vec params))
16:03ibdknoxgtrak: ah, I bet the compiler itself is picking them up
16:03gtrakibdknox, http://pastie.org/2590695 I'll double-check everything
16:03ibdknoxyeah
16:04ibdknoxthat's the compiler choking
16:04thorwilarg, where s/m/params/
16:04ibdknoxthe same would happen if you just used the compiler directly
16:04gtrakhmm... but those files are short-lived
16:05gtraki guess they get created on save and immediately deleted?
16:05ibdknoxI guess so
16:05ibdknoxI don't use emacs :)
16:06ibdknoxis there a way to make the temp files live somewhere else? vim let's you put them in a central place so that things like that don't happen
16:06gtrakhmm... not sure, emacs noob here
16:06amalloythorwil: depending how much you care about performance, clojure.walk has keywordize-keys or something like that
16:07ibdknoxin any case, this is something that the compiler should handle gracefully
16:07ibdknoxgtrak: can you create a jira ticket?
16:07amalloyeverything in clojure.walk is notoriously slow, and is no longer maintained afaik
16:07gtrakyea, I think so
16:09thorwilamalloy: readability is more interesting here. but is performance reason for or against my solution?
16:09gtrakah, ibdknox, the file's created on a change, and deleted on save
16:10amalloythorwil: well, your solution is a bit illegible
16:10gtrakso the compiler has enough time to pick it up and expect it to be there
16:10amalloyi would write (into {} (for [[k v] m] [(keyword k) v]))
16:10ibdknoxamalloy: there's a (juxt keyword identity) waiting to happen there :-p
16:11amalloyibdknox: oh man. you got me. i am shirking
16:11amalloywait, no
16:11ibdknoxI guess not
16:11amalloy(juxt (comp first keyword) second) doesn't really have the same ring
16:11ibdknoxit would work, it'd just be ugly
16:12ibdknoxyeah
16:12amalloyer, and swapping around the comp
16:12brehautamalloy: thats a good use for *** ;)
16:12amalloyindeed
16:12TimMc?
16:13ibdknox***?
16:13ibdknox,(doc ***)
16:13clojurebotI don't understand.
16:13brehaut(defn *** [& fs] (comp vec (partial map #(%1 %2) fs)))
16:13amalloybrehaut: man, it's still clearer to describe *** by example. ibdknox, TimMc: it's a haskell function i've recently been jealous of
16:13brehaut(into {} (map (*** keyword identity) {"a" "b" "c" "d"})) ; => {:a "b", :c "d"}
16:14thorwilamalloy: i wasn't aware into accepts that format. thanks for this indeed much more readable version!
16:14amalloyhaskell's juxt is named &&&, and they also have *** which is similar
16:14amalloyor, well, related anyway
16:15brehauttechnically i think we have actual *** in conduit
16:15amalloybrehaut: now that 1.3 is released, there's a shoot-on-sight order for people who say "contrib"
16:15thorwilgood night! :)
16:16brehautamalloy: huh?
16:16TimMcamalloy: sexpbot needs to have an auto-response for that
16:16brehautamalloy: did you misread conduit as contrib?
16:17amalloybrehaut: no, it's just that contrib isn't compatible with 1.3
16:17Raynesbrehaut: Dyslexia.
16:17amalloyand you're supposed to use the smaller libs now
16:17amalloyoh
16:17amalloyman, i did
16:18brehautits jim duey's arrows lib
16:18brehautclojurebot is powered by it
16:18Raynesclojurebot is powered by the cries of children.
16:18gtrakibdknox: it's not really a bug with the compiler, not sure what I would write in the ticket... the compiler should ignore files that disappear?
16:19ibdknoxgtrak: the compiler shouldn't pick up files that start with .
16:19gtrakah, will do
16:19brehautamalloy: see also http://intensivesystems.s3-website-us-east-1.amazonaws.com/writings.html?from=@
16:20Raynesbrehaut: That address isn't nearly long enough.
16:21sridhugod: thanks
16:21brehautRaynes: lol
16:21gtrakibdknox: meanwhile, I can set emacs to not do that in the same directory as the file
16:21ibdknoxgtrak: good deal :)
16:22Raynesibdknox: Your name infuriates me. It has no rhyme or reason. You're too spontaneous. Too 'cool'.
16:22ibdknoxI think we need a description repository of maintained libs
16:23ibdknoxRaynes: Sorry Raynes, I only talk to the hip people.
16:23ibdknoxhaha
16:23ibdknox:p
16:23Raynes:)
16:23ibdknoxIt's to combat "Chris"
16:23ibdknoxwhich is such a boring and common name
16:24RaynesMan, my name is Anthony.
16:28amalloyRaynes: anthony is more exciting than chris. you can't really have the high ground here
16:39ibdknoxlol
16:39ibdknoxI always wanted to be Kael or Dade
16:59khaliGthis is stuart's flipper demo code, http://paste.lisp.org/display/124866 - took ages but i think i understand how the calculate function works, it's a kind of weird loop using agents, isnt it?
17:01gtrakibdknox: I went ahead and made a patch http://dev.clojure.org/jira/browse/CLJS-82?focusedCommentId=26863&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_26863
17:03khaliGmy question is, is that code idiomatic and what I ought to be producing? to me it seems very hard to understand :/
17:03Rayneschouser: FYI, ibdknox thinks your name is boring.
17:07khaliGhm actually it's very elegant and nice
19:25nybblesdoes anyone know how to make a parameter list that takes a single optional argument (and provide default value if it is not supplied)?
19:28TimMcnybbles: Well, you can make a function that has two arities.
19:29nybblesTimMc: i guess so, but more typing than just saying &optional (blah 0).. but ok, that makes sense
19:30TimMcnybbles: Alternatively, allow nil for the second argument and replace it with the default value.
19:30nybblesTimMc: you mean do like a (if (nil? blah) 0 blah)
19:30nybblesthat works too
19:30TimMcyeah
19:30nybblescool.. thanks
19:31TimMcDepends on whether nil is an otherwise valid value, of course. :-)
19:31darrenaustinor you might be able to use (or blah 0)
19:31TimMcRight, that's a good shorthand if false is also an invalid value.
19:38nybblesdarrenaustin: but you can't use (or blah 0) in the parameter list, right?
19:41amalloynybbles: right
19:41nybblesamalloy: thnks
19:42amalloyyou can do something similar if your function takes a map instead of positional args, though
19:43nybblesamalloy: yea i saw some stuff on the internet about that.. hm, but it would be nice to not bother with all of that if i'm just trying to set a counter to start at a user-defined value, instead of the default value of 0..
19:44nybblesthe hash map as parameters thing will be useful in other places though
19:51carkhello all
19:52nybblescark: hello
19:52carkdue to the release of 1.3, i'm trying to upgrade my workflow to be more in line with the comunity, using lein, clojure-jack-in in emacs and so on
19:53carkwo i upgraded clojure-swank as well
19:53carkso*
19:53carkand now i have "^M" behind any printout in the slime repl
19:53carkalso it messes with the completion-mode
19:54carkso that i can't get the mini-help window anymore due to all the ^M
19:54carkso I'm pretty sure this is a DO/UNIX end of line problem
19:54carkDOS/UNIX*
19:54carkas i'm under window
19:55carkdid anyone have the same kind of problem ? or could someone give me a hint at how to correct this ?
19:55carki'm guessing the problem resides inside swank
19:56carkor maybe *god help me* in slime
20:02TimMcAre you using Cygwin or something?
20:02carkhehe well i tried cygwin, but then you get all kind of classpath problems
20:02nybblescark: sorry no experience with clojure on windows :(
20:03carkas java cannot see the cygwin file system
20:03carkwell i should have lots of experience with it ...
20:03cark /cry
20:04amalloyi did a tiny bit of clojure using cygwin. it seemed to work fine at the time, but this was about a year ago
20:05carkwere you using cygwin's emacs ?
20:05amalloyno. god no
20:05amalloydon't do that
20:05carkso what part of cygwin were youa ctually using ?
20:05amalloybash to start my repls and such
20:06amalloyi wasn't using slime yet
20:06carkmhh and you had no classpath issues ?
20:06amalloyno, lein just dealt with it
20:07carkand you were using a jvm installed in the windows part ?
20:07amalloyor maybe this was back before i used lein too? i don't recall
20:07amalloyyes
20:07carkwell under cygwin lein will pass paths that are within the cygwin file system
20:07carkwhich java cannot reach
20:08carkso i giuess that yes, you were not using lein =)
20:08amalloynonsense. you can use lein.bat instead of lein.sh
20:08amalloyand i imagine it works
20:08carkwell i spent a couple hours yesterday trying to make it work =P
20:09carkthough i'm no cygwin guru
20:18carkah looks like the problem is clojure itself
20:18cark2.23 Newline outputs platform-specific newline sequence
20:19carkwhich leads to a clojure specific question : how may i change the way clojure outputs newline ?
20:27carkclojure.core/system-newline is ^:private
20:27cark=(
20:28nybblesdoes anyone ever have problems with running clojure-jack-in in emacs.. then having to close the REPL.. then having trouble running clojure-jack-in again?
20:29carkyour swank is still running
20:30nybblescark: pretty sure i killed that buffer.. ok well, killed it.. trying again
20:30carki mean, the java process running swank is still running
20:31carkusually it's best to leave the slime-repl with ", q"
20:31nybblescark: ah right
20:31nybblesoh ok, i always use "slime-quit-lisp"
20:31carkhum should be the same =P
20:32nybblescark: does clojure-jack-in take a long time to start up the slime repl for you?
20:32carkyes
20:32nybblesit does for me, seems to be printing out a long file into *swank* buffer
20:32carkit's "downloading" slime
20:32nybblesah ok
20:33nybbleshmmmmmm that sucks :|
20:33nybblesyea ',q' has the same problem
20:33nybblesstrange
20:34carkmust be very annoying =)
20:34nybblesyes!! X-(
20:34nybblesvery disruptive
20:41TimMc,(prn-str)
20:41clojurebot"\n"
20:42TimMccark: Why do you need to change what newline sequence is used?
20:42carkbecause the windows newline is causing all kind of problems in emacs
20:47carkso here's how i fixed it : inside the user.clj, (ns clojure/core) (def system-newline "/n")
20:55nybbleshas anyone gotten clj-stacktrace to work with slime?
20:55nybblesit looks really pretty in the normal clojure REPL.. doesn't seem to work for me in the slime repl
20:56amalloyi don't know if the slime repl supports ansi colors. i guess it might
20:56carkdidn't try it yet
20:57nybbleshm ok
20:58carkgetting so close to be able to work again ... each time a new clojure version gets out, that's like 4-8 hours lost
20:58carkthat's why i'm all against new versions !
21:06nybbleshmmm anyone know what happened to clojure.contrib.trace?
21:06nybblesor an alternative to it..
21:07carkhttps://github.com/clojure/tools.trace ... nothing there yet
21:08nybblescark: maybe they are just starting to split it out.. i've seen posts online talking about it
21:08nybbleslike from 2010
21:09carkmaintainers may have disapeared too
21:10TimMcamalloy: Could sexpbot respond to ".* what happened to (clojure\.)contrib.*" with a link to the contrib "diaspora" page?
21:11amalloyTimMc: you could write a plugin for it, but clojurebot is already better at that sort of thing
21:11TimMcamalloy: Also "where did ... go" and "where ... went"
21:11amalloywhere did contrib go?
21:11amalloydang
21:11TimMc:-)
21:11amalloy~what happened to contrib
21:11clojurebotHuh?
21:11TimMc~contrib
21:11clojurebotcontrib is http://github.com/richhickey/clojure-contrib/tree/master
21:11TimMcmeh
21:11amalloyi know he has that in there somewhere
21:15tomojclojurebot: where did contrib go?
21:15clojurebotwell... it's a long story: http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go
21:16tomojguess you have to address him
21:16amalloyTimMc: maybe .*contrib.*\?
21:16amalloy~rimshot
21:16clojurebotBadum, *ching*
21:17carkalso many ppl refer to these as c.c.sql
21:17cark(for instance)
21:31nybblesdoes anyone just use "lein swank" and then "M-x slime-connect" to get a repl in SLIME?
21:31nybblesi tried doing this.. SLIME makes the connection.. it tells me to hack and be merry, but no *slime-repl* buffer.. argh
21:33amalloynybbles: i do
21:34nybblesamalloy: did you run into the problem where the REPL just doesn't show up?
21:34amalloyno
21:34nybblesi have *slime-events*, but no *slime-repl*..
21:34nybbleshm
21:37TimMcclojurebot: where did clojure.contrib.foo go?
21:37clojurebotsee swank
21:38TimMc...
21:38nybblesyes, awesome, fixed
21:46scottjnybbles: had you not installed slime-repl?
21:47nybblesscottj: no, i hadn't :(
21:47nybblesi was using the SLIME straight from git before
21:47nybblesbut was running into problems, so i switched to the package.el one
21:48nybblesmaybe SLIME from git comes with repl.. or at least clojure-jack-in starts the repl without me installing slime-repl
21:48scottjprobably both
21:49scottjslime-connect is nice cause you can have multiple connections open at once and switch between them. perhaps you can clojure-jack-in multiple times and switch between them, not sure
21:53nybblesscottj: ah multiple repls.. with nrepl.. would be soooo awesome
22:17adam__hello
22:18adam__i have defined my clojure program as a java class (ns something.that)
22:18adam__how do I create a new instance of it from within the program?