#clojure logs

2008-03-28

02:23vagifHello, need help
02:24vagifrunning clojure repl
02:24vagiftyping (strcat "bla" "bla")
02:24vagifSays: Unable to resolve symbol: strcat in this context
02:25vagifwhat is strcat ? is this a clojure function ? Could not find it anywhere in clj files
02:50vagifAnyone home ?
03:02hoeckyes, but going to work soon
03:03vagifI have an error running (strcat "bla" "bla")
03:03vagifSays: Unable to resolve symbol: strcat in this context
03:03vagifis strcat a clojure function ?
03:04hoeckyes, wich version of clojure are you running?
03:04vagifdownloaded from main web site
03:05vagif20080213
03:05vagifi searched all clj files
03:05hoeckoh, thats kind of old
03:05vagifthere's no such function as strcat
03:05hoeckoh, sorry, that was a function from my own library
03:06hoeckyes you're right
03:06vagifoh i see
03:06vagifwebjure is using that function
03:06vagifbut it is not included in it
03:06vagifare you a webjure maintainer ?
03:07hoeckno, but its a pretty trivial function to write
03:07hoeck(defn strcat
03:07hoeck ([] "")
03:07hoeck ([s] s)
03:07hoeck ([f & s] (. f (concat (apply strcat s)))))
03:07hoeck
03:08vagifdamn. Yes i know. I'm just trying to run webjure and i get this error. Looks like they are missing some files
03:11vagifhoeck: thx, it helped
10:21Chouserhoeck: I think strcat has been replaced with just str
10:21Chouserso next time vagif shows up and asks, we can tell him. ;-)
10:30hoeckyeah, he also asked on the mailinglist
10:31hoecki guess we need some kind of symbol-index
10:32rhickeyI'm adding a page to the site that is an html rendition of the in-source docs, and will reflect the SVN version
10:32hoeckthats fine
10:34ChouserI wonder if it'd be worth having a wiki page of the history of symbol names. Their such easy problems to fix if you can just find the right name, but that can completely hobble existing libs that are out there.
10:36rhickeythere have been very few, but yes, would be good wiki addition
10:36rhickeygo for it
10:36Chouser"They're". Sorry. Ok, I'm on it. ;-)
10:36rhickey:)
10:42cgrandrhickey: thanks, it works fine now.
10:52rhickeycgrand: great
11:01Chouserrhickey: your SVN comments are so good, it might almost be worth automating the rename list.
11:01Chouserhttp://en.wikibooks.org/wiki/Clojure_Programming#Where_did_the_x_function_go.3F
11:03ChouserI hope everyone feels free to add updates, corrections, reformat, put it in a better location, whatever...
11:04rhickeyThanks! yes, might be automated... hmm... appl is now partial
11:04Chouseroh, missed that. hang on
11:04Chouserthere
11:05rhickeyI have to stop renaming things, trying to do so only when important
11:06Chouseryou'll have to stop eventually, but better to do it early than late.
11:08rhickeyit seems a fair number of people are tracking svn, vs release
11:08rhickeyproviding docs for both is tricky
11:08Chouseryeah. as if providing docs wasn't painful enough by itself.
11:09rhickeyyup
11:49hoeckhttp://en.wikibooks.org/wiki/Clojure_Programming#Where_did_the_x_func\
11:49hoecktion_go.3F
11:49hoeckcan't find that
12:16albinolink worked for me
12:25cgrandalbino: cache problem, I had to hit CTRL+F5
14:30ChouserI should be able to do prn from inside an agent action, and still see the output, right?
14:31rhickeywith flush, yes
14:33Chouserhm. well when I do (f) I see f's output, but when I do (send (agent nil) f), I see nothing.
14:35Chouserand if I do (let [a (agent nil)] (send a f) (await a)) it appears to hang.
14:35nsinghal_;I am defining this function. but to define this function i am needing to connect to socket and get the input output stream.
14:35nsinghal_;How can i avoid this?
14:35nsinghal_(defn run-remote [exp]
14:35nsinghal_ (binding [*out* *socket-out*]
14:35nsinghal_ (prn exp)
14:35nsinghal_ (flush))
14:36nsinghal_ (read-wait *socket-in*))
14:36rhickey(send (agent nil) #(do (prn "hello") (flush) %))
14:36rhickeychouser: does that work?
14:37Chouserrhickey: yep. It's the %
14:37ChouserI was using #() with no %, so the function wasn't accepting the param.
14:37rhickeyyour action must be a function of the agent's state
14:38rhickeyright, and got an exception, which is cached on the agent, but you don't retain the agent
14:38Chouserright.
14:38Chouserthanks!
14:38rhickeysure
14:40rhickeynsinghal: not sure I understand your question
14:40nsinghal_sorry my mistake
14:40nsinghal_user malfunction
14:41nsinghal_thx
15:24nsinghal_Using refs transaction - awesome - simple and elegant
17:23abrooksrhickey: Do you have any thoughts about path relative file loading? Currently I have files with absolute paths to .clj library files which makes the sources non-portable.
17:24rhickeyyes, it's a good idea that has been discussed but not yet implemented
17:24abrooksrhickey: Actually, I guess this brings up another question. Are packages brought in by import purely Java or would import bring in .clj files from some path as well?
17:25rhickeyimport is just about Java
17:26abrooksRight. Looking at the current sources I see that. Is it ever intended to be expanded to clojure libraries or is the notion of import the wrong sense to make that fit.
17:26abrooks^fit.^fit?
17:26rhickeyand refer doesn't trigger any loading
17:26rhickeybut could
17:27rhickeyload-file is really just for repl or some system definition file
17:27abrooksIs any of the previous discussion recorded (Google Group?) or was it all ephemeral in IRC?
17:27rhickeyon group