#clojure logs

2008-03-06

16:07arbschtwhy does (concat [4] [1 2 3]) => (4 1 2 3)?
16:07arbschtI would expect [4 1 2 3]
17:55ericthorRich, u there?
17:55rhickeyyup
17:56ericthorthe debugger is looking for a classpath for this one setting in the examples I'm looking at.
17:56ericthorwhat package do clojure functions get loaded into?
17:56ericthorthis is an example: "org.netbeans.api.debugger.jpda.testapps.*
17:58rhickeyit's a 'munged' version of the namespace name - special chars remapped, most important would be - becomes _
17:59rhickeyuser=> (class and)
17:59rhickeyclass clojure.fn__119
17:59rhickeyuser=> (class xml/parse)
17:59rhickeyclass xml.fn__958
18:00ericthorlet me give that a shot.
18:00rhickeyI can make Compiler.munge public if it helps
18:01ericthorthat was my next question...it would be helpful to have access to it in java for the moment
18:01ericthor1 hurdle at a time
18:01ericthori could always just make that change locally and see if it gets me past this point
18:01ericthorlet me do that...should not take me long to try out
18:01rhickeydashes become underscores is probably all you'll encounter right now
18:02ericthorok
18:06ericthoris the class name considered the 'fully qualified' name?
18:06rhickey?
18:07ericthori'm trying to mimic the example....file name + line-number.
18:07ericthorthen there is a namespace search path for all 'files' in the package.
18:08rhickeyin the case of xml.fn__958, xml is the package, fn__958 is the class
18:08ericthoryou're giving me a function name in a file.
18:08ericthoryes?
18:08rhickeywhat file/
18:08rhickey?
18:08ericthorboot.clj
18:08ericthorline ?55
18:08ericthorthat is the breakpoint data the UI will have.
18:09rhickeyok
18:11rhickeySMAP
18:11rhickeyfn__18.java
18:11rhickeyClojure
18:11rhickey*S Clojure
18:11rhickey*F
18:11rhickey+ 1 boot.clj
18:11rhickeyboot.clj
18:11rhickey*L
18:11rhickey1#1,1000:1
18:11rhickey*E
18:12ericthorok
18:13rhickeyboot.clj is loaded from the jar, here's what it looks like when loaded from a file (zip.clj):
18:13rhickeySMAP
18:13rhickeyfn__1026.java
18:13rhickeyClojure
18:13rhickey*S Clojure
18:13rhickey*F
18:13rhickey+ 1 zip.clj
18:13rhickey*L
18:13rhickey1#1,1000:1
18:13rhickey*E
18:13rhickeySMAP
18:13rhickeyfn__1026.java
18:13rhickeyClojure
18:13rhickey*S Clojure
18:13rhickey*F
18:13rhickey+ 1 zip.clj
18:13rhickey*L
18:13rhickey1#1,1000:1
18:13rhickey*E
18:13rhickeynot coming across, will email
18:15ericthorok
18:47ericthormaking headway....I'm in a clojure breakpoint...we're almost there
19:08rhickeycool!
19:09ericthorneedless to say...just needed to find the correct formula. Did not need any of the class stuff (so far)
19:09rhickeyis the difference between loaded-from-file and loaded-from-jar an issue?
19:09ericthorI 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:10ericthordon't know yet.
19:10ericthori'll try that next
21:56ericthorrich u up?