#clojure logs

2008-02-10

00:30jonathan__anything much happening out in the world?
00:34jonathan__is irc archived? any interesting discussions recently?
11:44jonathan__Hi Rich, how is the release going?
11:47rhickeygood, hope to get docs done today
11:48jonathan__wow, that's awesome, I'm only up as far as namespaces, in terms of the new stuff, I only seem to need quite a small core of things.
20:18lnostdalhi there .. figured i'd try out clojure in emacs, but having some problems getting started
20:19lnostdalM-x-: inferior-lisp-program reports this "java -cp ~/programming/clojure/clojure.jar clojure.lang.Repl ~/programming/clojure/src/boot.clj"
20:19rhickeywhat platform?
20:19lnostdallinux
20:19rhickeywhat version of Clojure?
20:19lnostdaland when trying to do: lars@ibmr52:~$ java -cp ~/programming/clojure/clojure.jar clojure.lang.Repl ~/programming/clojure/src/boot.clj from the terminal that works .. but inside emacs, when i do m-x run-lisp i get Exception in thread "main" java.lang.NoClassDefFoundError: clojure/lang/Repl
20:19lnostdalsvn
20:20lnostdalmaybe i should paste some of this .. bit hard to read .. :)
20:21rhickeylatest svn loads boot.clj from the jar, but probably not your problem
20:22lnostdalok, i just did a "svn up" (rev. 656) and an "ant jar" now .. same stuff
20:23lnostdalgonna try with absolute paths .. /home/../.. maybe that helps
20:23lnostdaland .. it did .. lol
20:23rhickeyGreat!
20:24lnostdalthis is nice .. intresting stuff, rhickey .. maybe i can start making some guis, eventually, using clojure .. it's hard using common lisp this
20:25rhickeythere are some small examples - look at inspector.clj
20:29rhickey(load-file "/Users/rich/dev/clojure/src/inspector.clj")
20:30rhickey(inspector/inspect-tree {:a 1 :b 2 :c [1 2 3 4 {:d 5 :e [6 7 8]}]})
20:31lnostdalyeah .. hm
20:31lnostdalclojure.lang.Compiler$CompilerException: inspector.clj:27: clojure.lang.Symbol cannot be cast to clojure.lang.IFn
20:32lnostdalthink i saw something mentioned about this on the forum
20:32lnostdal..something related
20:33rhickeythere was a spurious export (no longer needed) I just removed, in svn now
20:34rhickeyI just ran it here
20:34lnostdalok, trying
20:34lnostdalrev. 657
20:36rhickeyI think maybe irc turned colon c into some smiley thing?
20:36rhickeyshould be colon c 3
20:36lnostdalno, i'm using a simple client
20:37lnostdalyou're pasting the stuff commented out at the bottom of the file i guess
20:37lnostdali still get that same message about line 27
20:37lnostdal..when calling load-file
20:39lnostdal(. javax.swing.JOptionPane (showMessageDialog nil "Hello World")) works
20:39lnostdalcool stuff
20:40jonathan__(657 builds and works here, for the inspect tree sample -- after adding inspector/ on front of command)
20:40lnostdali'm using sun java 1.6.0_03 .. dunno if it matters
20:42rhickeyIt looks like there was a bug (excessive undo?) on the previous form, no :else I don't know why I wasn't having the same problem - in SVN if you could try again
20:43lnostdalok, trying rev. 658
20:43lnostdaltyping "ant jar" will rebuild everything clean, or?
20:44rhickeyI think so, only the clj file has changed so no matter
20:44lnostdalok
20:44lnostdalhm, still same thing:
20:44lnostdaluser=> (load-file "/home/lars/programming/clojure/src/inspector.clj")
20:44lnostdalclojure.lang.Compiler$CompilerException: inspector.clj:27: clojure.lang.Symbol cannot be cast to clojure.lang.IFn
20:45lnostdalif you want i can paste the back trace
20:45lnostdal(on a pastebin)
20:45rhickeysure
20:47lnostdalhttp://paste.lisp.org/display/55712
20:49rhickeythanks
20:53rhickeyafter the exception, what do you get if you evaluate: inspector/collection-tag
20:55lnostdaluser=> inspector/collection-tag
20:55lnostdalinspector.collection_tag@3a6e5c
20:56lnostdal
20:56lnostdaland
20:56lnostdaluser=> inspector/is-leaf
20:56lnostdaljava.lang.Exception: No such var: inspector/is-leaf
20:57rhickey(instance? clojure.lang.IFn inspector/collection-tag)
20:57lnostdaluser=> (instance? clojure.lang.IFn inspector/collection-tag)
20:57lnostdaltrue
20:59rhickey(macroexpand '(defmulti is-leaf collection-tag))
20:59lnostdaluser=>(macroexpand '(defmulti is-leaf collection-tag))
20:59lnostdaljava.lang.ClassCastException: clojure.lang.Symbol cannot be cast to clojure.lang.IFn
20:59rhickeyshould be: (def is-leaf (new clojure.lang.MultiFn collection-tag :default))
20:59lnostdalmore details from the last one: http://paste.lisp.org/display/55712#2
21:00lnostdalhm, what did you say earlier .. something about boot.jvm moved?
21:00lnostdalmaybe i'm loading an old version or something still .. when starting clojure
21:00lnostdal(i meant boot.clj)
21:01rhickeycould be
21:02rhickeyshould be on your command line, since loaded from jar
21:02rhickeyshouldn't
21:02lnostdalok, gonna try
21:03lnostdalthat worked ... :)
21:03rhickeycool
21:04lnostdaloww .. very nice .. i should screenshot this .. hehe :)
21:04lnostdalswing & lisp ... :D
21:05rhickeylots of fun - this guys thing is really neat: http://groups.google.com/group/clojure/browse_frm/thread/ce795dd1fb646df1#
21:05lnostdali guess the wiki page is still correct for the latest release
21:06lnostdalyeah, i've been reading .. but haven't bothered trying until i sat down and got emacs working with this .. gonna re-read and experiment now