I'm running my JVM with:
-verbose:gc -Xmn500M -Xms2000M -Xmx2000M -server
sincerely,
--Robert McIntyre
On Fri, Jan 28, 2011 at 4:24 PM, Benny Tsai wrote:
> Hi Robert,
>
> Just out of curiosity, are you running Clojure with the -server
> option? When I run David's code,
you could do something like this, but I'm curious --- why do you want
to restrict the function's inputs in this way?
(defn hello [& {:keys [a b] :as input}]
(assert (= (set (keys input)) #{:a :b}))
"hello")
sincerely,
--Robert McIntyre
On Sat, Jan 29, 2011 at 1:19 P
nput}]
(dorun (map #(eval `(assert (#{:a :b} (quote ~%
(keys input)))
"hello")
I'd be curious what the right way to to this is.
sincerely,
--Robert McIntyre
On Sat, Jan 29, 2011 at 4:15 PM, Shantanu Kumar
wrote:
>
> On Jan 30, 1:26 am, Robert McIntyr
That's excellent. Thank you everyone.
Maybe someone could compile all these "let's speed up this clojure
code" threads and put it somewhere as a valuable resource we could
point to when things like this come up again?
sincerely,
--Robert McIntyre
On Sun, Jan 30, 2011 at
You win sir. That is the most beautiful way.
sincerely,
--Robert McIntyre
On Sun, Jan 30, 2011 at 7:59 PM, Bill James wrote:
> Alexander Yakushev wrote:
>> Why not use a constraint? It looks much cleaner.
>>
>> (defn hello [& {:keys [a b] :as input}]
>>
That's a good one, on par with the one line low-pass filter:
;; filter noise
;;(http://clojure-log.n01se.net/date/2009-10-13.html by ambient
;;this is such a cool transform!!!
(defn lo-pass
[d coll]
(reductions #(+ (* %2 d) (* %1 (- 1.0 d))) coll))
sincerely,
--Robert McIntyre
O
ll) I get a null pointer error.
How can I make a null safe function with gen-class?
sincerely,
--Robert McIntyre
--
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
Could you possibly put up a minimal example of code that shows the
problem? I'm having a hard time following exactly what you're doing
but would like to help. :)
sincerely,
--Robert McIntyre
On Fri, Feb 4, 2011 at 10:20 AM, Nick wrote:
> I've got a matrix transformation th
I normally use
(defn digits [n]
(map #(Integer/parseInt (str %)) (seq (str n
You can adapt it to read in different bases easily.
sincerely,
--Robert McIntyre
On Thu, Feb 17, 2011 at 9:45 PM, Matthew Boston
wrote:
> How about using the Java api Character/getNumbericValue, like
101 - 109 of 109 matches
Mail list logo