On Thu, Jul 12, 2012 at 7:34 PM, Sean Corfield wrote:
> When I looked at (soap/client-proxy
> "http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL";) it indicated there
> was no such method. I redefined weather with (client
> :GetCityWeatherByZIP "10001") and that gave a different error:
There's a :
I'm just starting to look at this library... The first thing I did was
bring it up to date for Clojure 1.4.0 and Leiningen 2.0. The basic
tests pass but I was able to repro your issue:
On Sun, Apr 29, 2012 at 4:07 AM, CA wrote:
> And I am calling it from clj-soap:
> (defn weather []
> (let [cli
To answer your last question, I'd probably do it like this:
(def bitvector (reduce (fn [bm x] (conj bm (expt 2 x))) [] (range 63)))
;; Remember, vectors implement ifn.
Also, I believe using the bitshift operator (arguably) obscures your
intentions without much benefit over expt.
As to answering y
Excerpts from Ben Mabey's message of 2012-07-11 09:08:08 -0700:
> About 90% of the time I have used dynamic binding I have regretted it. You
> have to worry about binding conveyance (e.g. across threads- although 1.3
> fixed this) and it can allow for harder to reason about code. As a user of
> yo
Nice work.
I wonder if there are similar patterns happening elsewhere, in
particular, in the part that loads libraries. Will have to take a
look.
On Wed, Jul 11, 2012 at 11:12 PM, Timothy Baldridge
wrote:
>>But the real issue is the stacktrace one. In this case, the bug could
>>have been found
Hi,
This is definline -
https://github.com/clojure/clojure/blob/master/src/clj/clojure/core.clj#L4583
inline keyword in compiler -
https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Compiler.java#L79
other inline stuff -
https://github.com/clojure/clojure/blob/master/src/jvm/clo
Take a look at definline in clojure.core.
Regards,
BG
Sent from phone. Please excuse brevity.
On Jul 12, 2012 10:13 PM, "john" wrote:
> I was reading an old post of Rick Hickey
>
> https://groups.google.com/forum/?hl=de&fromgroups#!searchin/clojure/sbcl/clojure/xyXu0S-CDZk/N2DI7Rpu5BIJ
>
>> Yo
I was reading an old post of Rick Hickey
https://groups.google.com/forum/?hl=de&fromgroups#!searchin/clojure/sbcl/clojure/xyXu0S-CDZk/N2DI7Rpu5BIJ
> You can also
> use :inline to wrap arithmetic primitives implemented as Java static
> methods, as Clojure itself does for +/* etc, which HotSpot inl
Hi, Meikel.
Got it, thank you.
--
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 with your
first post.
To unsubscribe from
Hi,
in the first example the recursion happens immediately. That is when you
call my-map you get start the recursion immediately all the way down. Hence
you get the overflow. With lazy-seq basically nothing is done when calling
my-map. The computation is deferred. Only when accessed the computa
What I still can't get is how does 'lazy-seq' prevent stack overflow. E.g.
(defn my-map [f coll] (when-let [s (seq coll)] (cons (f (first s)) (my-map
f (rest s))
(nth (my-map inc (range 100)) 99)
=> StackOverflowError
(defn my-map [f coll] (lazy-seq (when-let [s (seq coll)] (cons (f
On Wed, Jul 11, 2012 at 7:47 PM, Eric in San Diego wrote:
>
> It's very application specific, but it's "Object 'test' does not have a
> field named 'test1' c:/path/to/importTest", suggesting that it's not
> inferring the value of an 'I' parameter which should indicate a directory
> within which t
Hi, Tassilo.
On Thursday, July 12, 2012 9:22:11 AM UTC+3, Tassilo Horn wrote:
>
> And there is no sense in having a lazy-seq in a loop-recur, because the
> latter is inherently eager. Your accumulator will be a fully realized
> lazy-seq. That is, the loop-recur defeats the purpose of lazy-seq,
Hello,
I would like to avoid when possible the promotion from a primitve long to
an Long Object.
I have the following code: http://pastie.org/4242382 and am not sure if
(Long) autoboxing is taking here place.
In lines 24,28-30 I use "assoc" to replace a long in a defrecord.
Since "assoc
14 matches
Mail list logo