Re: Enhanced Primitive Support

2010-06-18 Thread Chris Dean
re only used during optimization? prim-+ prim-/ etc.) Cheers, Chris Dean -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be pati

Re: Contrib Logging change

2010-01-12 Thread Chris Dean
ataggart writes: > Which is why I added the arglist metadata (shown via doc): > [level fmt & args] [level throwable fmt & fmt-args] Ah, good call. I missed that. Cheers, Chris Dean -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: Contrib Logging change

2010-01-12 Thread Chris Dean
e impl-enabled? and now there is a instance? call as well. Also, I think format requires at least one arg, so (logf :debug) isn't valid. Probably should change the signature to (defmacro logf [level fmt-or-throwable & args] ...) Cheers, Chris Dean -- You received this message becaus

Re: Contrib Logging change

2010-01-11 Thread Chris Dean
`(log ~level (format ~@(cons fmt args Cheers, Chris Dean -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient wit

Re: Is it possible to implement break or return in Lisp?

2009-11-01 Thread Chris Dean
ld try Lisp in Small Pieces by Christian Queinnec. If I remember right he talks about exceptions in terms of continuations. Or you could just start reading up on continuations if you're not familiar with them. Wikipedia has a call/cc page at http://en.wikipedia.org/wiki/Call-with-current-continua

Re: Can (genclass) be changed to operate when not compiling?

2009-07-21 Thread Chris Dean
Howard Lewis Ship writes: > It would be nice if (gen-class), when not in compile mode, would still > create a class in memory that could be referenced by class name > elsewhere in Clojure. +1 I would find this useful as well. Cheers, C

Re: Emacs clojure mode: how to set current directory & classpath

2009-07-20 Thread Chris Dean
init) ;; ... (ccl ("/usr/local/bin/ccl" The script makes many assumptions about what needs to be in the classpath, but it works well for me. I don't expect the script to be useful to anyone else, but you can look at it in http://github.com/ctdean/clojure-lau

Re: Emacs clojure-mode home?

2009-07-01 Thread Chris Dean
> It looks like your patch might be incomplete; I get a void-variable: > clojure-mode-abbrev-table when I run that. So it is. Looks like I had the defs in my private startup file for some reason. Here's a corrected patch. Cheers, Chris Dean diff --git a/clojure-mode.el b/cloj

Emacs clojure-mode home?

2009-07-01 Thread Chris Dean
is so small. Cheers, Chris Dean diff --git a/clojure-mode.el b/clojure-mode.el index b7b2de0..f9fa8ec 100644 --- a/clojure-mode.el +++ b/clojure-mode.el @@ -192,6 +192,8 @@ if that value is non-nil." (lisp-mode-variables nil) (set-syntax-table clojure-mode-syntax-table) + (setq local-

Re: Code generation at runtime

2009-06-23 Thread Chris Dean
ile and run than to interpret, isn't it? Especially > in a tight loop executed millions of time.) BTW, Clojure doesn't have an interpreter - all the code is compiled. You could, of course write your own interpreter if that's what you mean. Cheers, Chris Dean --~--~-~--~

Re: multimethods

2009-06-16 Thread Chris Dean
o use the same names as are in the CL "core", almost no one does. Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@goog

multimethods

2009-06-16 Thread Chris Dean
g logically be a method and take a performance penalty. For me it's a consistency and simplicity over performance argument, although not everyone will agree. Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: Best way to augment core functions to support other data types?

2009-06-16 Thread Chris Dean
y easy. That sounds fine to me, thanks! I'm going to stick to the interfaces in clojure.lang and hope that's kosher. (For example, clojure.lang.Counted) Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Best way to augment core functions to support other data types?

2009-06-16 Thread Chris Dean
oper interfaces. Either using plain old Java or the Clojure proxy/gen-class functions. Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: (Potentially stupid) Question about recursion / trampoline

2009-06-10 Thread Chris Dean
(- iter 1) (+ result 1 (defn add-tail [n] (add-iter n 0)) ;; Another way (defn add-loop [n] (loop [n n acc 0] (if (zero? n) acc (recur (dec n) (inc acc) I generally use loop where I would use a named

Re: Question for Clojure-Mode users.

2009-06-05 Thread Chris Dean
Does anyone know what the functional difference is between clojure-indent-function and common-lisp-indent-function ? Or even the cl-indent:function from slime ? I assume there is a difference, I just don't know what it is. Cheers, Chris

Re: performance concerns (again)

2009-06-05 Thread Chris Dean
on the JVM. Both used a lot of memory and we just took that into consideration when provisioning the machines. Finding a system with the best cpu-performance, memory use, libraries, community, etc is challenging and I for one am happy with the tradeoffs that Clojure has made. [1] Cheers, Chris

Re: Launching apps

2009-05-09 Thread Chris Dean
A repl is a requirement for us. For now I'm using hand written scripts that launch under screen. And that works for us. Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. T

Launching apps

2009-05-08 Thread Chris Dean
them and use swank to get a repl, but we eventually stopped doing that in favor of the above solution. Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group

Re: HTTP clients in clojure

2009-05-06 Thread Chris Dean
p://google.com";)) => 4675 Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from th