#clojure logs

2008-02-28

05:08arbschtso what's the status of IDE (specifically Emacs) integration for clojure? is anyone working on it?
09:19alpheusI'm reading Swank code with the goal of a port to clojure. No promises, of course.
09:20rhickeyGood luck! It would be really neat to have
09:24arbschtalpheus: hah, so am I
09:26alpheusgreat! do you know clojure? I don't, yet, and this looked like a good way to learn the language
09:26arbschtI guess we're in the same boat
09:26alpheuscommon lisp?
09:26arbschtyes
09:27alpheusare you strong with the java libs
09:27arbschtI know my way around
09:27alpheusgood, good
09:28arbschtwell, keep us posted on your progress with swank
12:14ChouserWhat's the recommended way to save a map between runs?
12:14Chouser"str" it out, and then eval?
12:15ChouserHook up to a relational SQL database? (ew)
12:21ChouserI guess I'll use "pr-str". And then not eval, but ... maybe read?
12:22Chouser"load-file"
12:39hoeck_i would use load-file and pr-str a you suggested, works well as long as your map fits into memory
12:41hoeck_but maybe you want to implement serializable
13:02hoeck_:)
18:16Chouserno destrucuring bind for maps?
18:16ChouserI know, I'm a whiner.
18:24rhickeysure there is
18:25rhickey(let [{a :a b :b} amap] ...
19:53Chouseroh! cool. It's backwards from what I was trying.
19:58rhickey_right
22:19ChouserI'm trying to refer to javax.mail.Message.RecipientType.TO
22:19ChouserI guess TO is a static of class RecipientType
22:20Chouseroh, no, the class name is Message.RecipientType
22:20rhickey_RecipientType$TO
22:21rhickey_Message$RecipientType
22:21rhickey_i.e. nested classes are separated by $
22:21Chouserok
22:22ChouserDo I need to use (.) somehow?
22:22rhickey_that's how Java does it under the hood, not Clojure
22:22rhickey_no, $ replaces . between parent and nested class
22:22Chouserright, sorry, I meant the . special form
22:22Chouserjavax.mail.Message$RecipientType$TO is giving me a ClassNotFound
22:23rhickey_is TO a member of RecipientType?
22:23rhickey_(. javax.mail.Message$RecipientType TO)
22:23Chouserdocs say a static member
22:23Chouserah, perfect. thanks.
22:24rhickey_sure
22:59Chouserew. Apparently I need to subclass a Java class.
22:59ChouserI tried to use "implement", but it says: javax.mail.Authenticator is not an interface
23:00rhickey_I'm working on that now
23:00rhickey_what do you need to do?
23:00Chouserjavax.mail.Authenticator is an abstract class, not an intereface
23:00ChouserI just need to override a protected method
23:01Chouserthese Java APIs sure can get convoluted.
23:13Chouserhm, sorry, connection dropped.
23:33ChouserSo would I have to write a Java class to do this now? There's no way to do it from a .clj file?