#clojure log - Mar 06 2008

The Joy of Clojure
Main Clojure site
Google Group
IRC
List of all logged dates

16:07 arbscht: why does (concat [4] [1 2 3]) => (4 1 2 3)?

16:07 I would expect [4 1 2 3]

17:55 ericthor: Rich, u there?

17:55 rhickey: yup

17:56 ericthor: the debugger is looking for a classpath for this one setting in the examples I'm looking at.

17:56 what package do clojure functions get loaded into?

17:56 this is an example: "org.netbeans.api.debugger.jpda.testapps.*

17:58 rhickey: it's a 'munged' version of the namespace name - special chars remapped, most important would be - becomes _

17:59 user=> (class and)

17:59 class clojure.fn__119

17:59 user=> (class xml/parse)

17:59 class xml.fn__958

18:00 ericthor: let me give that a shot.

18:00 rhickey: I can make Compiler.munge public if it helps

18:01 ericthor: that was my next question...it would be helpful to have access to it in java for the moment

18:01 1 hurdle at a time

18:01 i could always just make that change locally and see if it gets me past this point

18:01 let me do that...should not take me long to try out

18:01 rhickey: dashes become underscores is probably all you'll encounter right now

18:02 ericthor: ok

18:06 is the class name considered the 'fully qualified' name?

18:06 rhickey: ?

18:07 ericthor: i'm trying to mimic the example....file name + line-number.

18:07 then there is a namespace search path for all 'files' in the package.

18:08 rhickey: in the case of xml.fn__958, xml is the package, fn__958 is the class

18:08 ericthor: you're giving me a function name in a file.

18:08 yes?

18:08 rhickey: what file/

18:08 ?

18:08 ericthor: boot.clj

18:08 line ?55

18:08 that is the breakpoint data the UI will have.

18:09 rhickey: ok

18:11 SMAP

18:11 fn__18.java

18:11 Clojure

18:11 *S Clojure

18:11 *F

18:11 + 1 boot.clj

18:11 boot.clj

18:11 *L

18:11 1#1,1000:1

18:11 *E

18:12 ericthor: ok

18:13 rhickey: boot.clj is loaded from the jar, here's what it looks like when loaded from a file (zip.clj):

18:13 SMAP

18:13 fn__1026.java

18:13 Clojure

18:13 *S Clojure

18:13 *F

18:13 + 1 zip.clj

18:13 *L

18:13 1#1,1000:1

18:13 *E

18:13 SMAP

18:13 fn__1026.java

18:13 Clojure

18:13 *S Clojure

18:13 *F

18:13 + 1 zip.clj

18:13 *L

18:13 1#1,1000:1

18:13 *E

18:13 not coming across, will email

18:15 ericthor: ok

18:47 making headway....I'm in a clojure breakpoint...we're almost there

19:08 rhickey: cool!

19:09 ericthor: needless to say...just needed to find the correct formula. Did not need any of the class stuff (so far)

19:09 rhickey: is the difference between loaded-from-file and loaded-from-jar an issue?

19:09 ericthor: I will need to be able to determine if the user clicks on a valid executable point in the source file...have not gotten there yet...

19:10 don't know yet.

19:10 i'll try that next

21:56 rich u up?

Logging service provided by n01se.net