2008-02-28
| 05:08 | arbscht | so what's the status of IDE (specifically Emacs) integration for clojure? is anyone working on it? |
| 09:19 | alpheus | I'm reading Swank code with the goal of a port to clojure. No promises, of course. |
| 09:20 | rhickey | Good luck! It would be really neat to have |
| 09:24 | arbscht | alpheus: hah, so am I |
| 09:26 | alpheus | great! do you know clojure? I don't, yet, and this looked like a good way to learn the language |
| 09:26 | arbscht | I guess we're in the same boat |
| 09:26 | alpheus | common lisp? |
| 09:26 | arbscht | yes |
| 09:27 | alpheus | are you strong with the java libs |
| 09:27 | arbscht | I know my way around |
| 09:27 | alpheus | good, good |
| 09:28 | arbscht | well, keep us posted on your progress with swank |
| 12:14 | Chouser | What's the recommended way to save a map between runs? |
| 12:14 | Chouser | "str" it out, and then eval? |
| 12:15 | Chouser | Hook up to a relational SQL database? (ew) |
| 12:21 | Chouser | I guess I'll use "pr-str". And then not eval, but ... maybe read? |
| 12:22 | Chouser | "load-file" |
| 12:39 | hoeck_ | i would use load-file and pr-str a you suggested, works well as long as your map fits into memory |
| 12:41 | hoeck_ | but maybe you want to implement serializable |
| 13:02 | hoeck_ | :) |
| 18:16 | Chouser | no destrucuring bind for maps? |
| 18:16 | Chouser | I know, I'm a whiner. |
| 18:24 | rhickey | sure there is |
| 18:25 | rhickey | (let [{a :a b :b} amap] ... |
| 19:53 | Chouser | oh! cool. It's backwards from what I was trying. |
| 19:58 | rhickey_ | right |
| 22:19 | Chouser | I'm trying to refer to javax.mail.Message.RecipientType.TO |
| 22:19 | Chouser | I guess TO is a static of class RecipientType |
| 22:20 | Chouser | oh, no, the class name is Message.RecipientType |
| 22:20 | rhickey_ | RecipientType$TO |
| 22:21 | rhickey_ | Message$RecipientType |
| 22:21 | rhickey_ | i.e. nested classes are separated by $ |
| 22:21 | Chouser | ok |
| 22:22 | Chouser | Do I need to use (.) somehow? |
| 22:22 | rhickey_ | that's how Java does it under the hood, not Clojure |
| 22:22 | rhickey_ | no, $ replaces . between parent and nested class |
| 22:22 | Chouser | right, sorry, I meant the . special form |
| 22:22 | Chouser | javax.mail.Message$RecipientType$TO is giving me a ClassNotFound |
| 22:23 | rhickey_ | is TO a member of RecipientType? |
| 22:23 | rhickey_ | (. javax.mail.Message$RecipientType TO) |
| 22:23 | Chouser | docs say a static member |
| 22:23 | Chouser | ah, perfect. thanks. |
| 22:24 | rhickey_ | sure |
| 22:59 | Chouser | ew. Apparently I need to subclass a Java class. |
| 22:59 | Chouser | I tried to use "implement", but it says: javax.mail.Authenticator is not an interface |
| 23:00 | rhickey_ | I'm working on that now |
| 23:00 | rhickey_ | what do you need to do? |
| 23:00 | Chouser | javax.mail.Authenticator is an abstract class, not an intereface |
| 23:00 | Chouser | I just need to override a protected method |
| 23:01 | Chouser | these Java APIs sure can get convoluted. |
| 23:13 | Chouser | hm, sorry, connection dropped. |
| 23:33 | Chouser | So would I have to write a Java class to do this now? There's no way to do it from a .clj file? |