How is core.async/go related to go-lang's concurrency?

2015-10-11 Thread crocket
Is core.async/go a coroutine? Is it similar to go-lang's concurrent functions? How does it compare with libmill? -- 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 me

Where do I find javadoc for clojure interfaces?

2015-10-01 Thread crocket
http://clojure.github.io/clojure/javadoc/ doesn't expost interfaces like clojure.lang.ISeq, so when I refer to such interfaces, I have to download clojure javadoc from maven. I'd like to refer to those interface on web browsers. Why are they not exposed on the web? -- You received this message

Re: "Clojure Javadoc API Documentation" needs to be rebuilt.

2015-09-30 Thread crocket
thing is reachable >> from >> > there if you know which Clojure Vars you want to use. >> > >> > Andy >> > >> > On Tue, Sep 29, 2015 at 7:31 AM, crocket wrote: >> >> >> >> http://clojure.github.io/clojure/javadoc/ cont

"Clojure Javadoc API Documentation" needs to be rebuilt.

2015-09-29 Thread crocket
http://clojure.github.io/clojure/javadoc/ contains only two classes. -- 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

Why is seqable? present in ClojureScript but absent in Clojure?

2015-09-25 Thread crocket
I thought ClojureScript was shadowing Clojure closely to maximize portability. Since seqable? is present only in ClojureScript, seqable? is not portable. Does anyone know why it's only in ClojureScript? -- You received this message because you are subscribed to the Google Groups "Clojure" group

Re: What is the best way to pass log configs everywhere without a global var?

2015-07-27 Thread crocket
Can I see your proof of concept on github? Is it just an idea? On Mon, Jul 27, 2015 at 2:27 PM, James Reeves wrote: > On 27 July 2015 at 05:25, crocket wrote: >> >> How those logs are outputted is stored in a global state called log >> configuration. So, I think the separa

Re: What is the best way to pass log configs everywhere without a global var?

2015-07-26 Thread crocket
How those logs are outputted is stored in a global state called log configuration. So, I think the separation was done. How else do you want to separate that? On Mon, Jul 27, 2015 at 12:20 PM, James Reeves wrote: > On 25 July 2015 at 15:50, crocket wrote: >> >> Logging libraries

Re: What is the best way to pass log configs everywhere without a global var?

2015-07-25 Thread crocket
/ > [3] Log4j: http://logging.apache.org/log4j/2.x/ > > Shantanu > > On Saturday, 25 July 2015 20:20:55 UTC+5:30, crocket wrote: >> >> Logging libraries seem to rely on a global config. This looks like a >> dangerous state that could blow up. >> I researched a

What is the best way to pass log configs everywhere without a global var?

2015-07-25 Thread crocket
Logging libraries seem to rely on a global config. This looks like a dangerous state that could blow up. I researched a little, and there seems to be reader monad and dependency injection, all of which feel awkard. Is there not a decent approach to passing log config without a global var? -- Y

Re: As far as I understand, 'completing' won't produce a valid transducer from a reducing function.

2015-07-21 Thread crocket
)) ([] 0))) [1 2 3 4 5]) On Tuesday, July 21, 2015 at 9:09:53 PM UTC+9, crocket wrote: > > It doesn't attach a 0-arity signature to a reducing function, and a > transducer needs a 0-arity signature. > > Is it a bug? > -- You received this message because yo

Re: As far as I understand, 'completing' won't produce a valid transducer from a reducing function.

2015-07-21 Thread crocket
completing doesn't seem to produce a valid transducer that can be used with other transducers. On Tuesday, July 21, 2015 at 9:09:53 PM UTC+9, crocket wrote: > > It doesn't attach a 0-arity signature to a reducing function, and a > transducer needs a 0-arity signatu

As far as I understand, 'completing' won't produce a valid transducer from a reducing function.

2015-07-21 Thread crocket
It doesn't attach a 0-arity signature to a reducing function, and a transducer needs a 0-arity signature. Is it a bug? -- 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

An elegant implementation of if-all-let

2015-07-11 Thread crocket
(defmacro if-all-let [bindings then else] (reduce (fn [subform binding] `(if-let [~@binding] ~subform ~else)) then (reverse (partition 2 bindings I quoted the function from p259 of "Chas Emerick, Brian Carper, Christophe Grand-Clojure Programming-O'Reilly Media (2012)"

Where should 'if-let-all' macro go?

2015-06-09 Thread crocket
It evaluates true-case only if every local binding evaluates to true values. false-case has no access to local bindings. (defmacro if-let-all "if-let-all evaluates every local binding sequentially and evaluates true-case only if every local binding is a truthy value. true-case has access to

Re: I created a new macro "if-let-all"

2015-06-09 Thread crocket
Where does if-let-all serve people best? Can anyone help me find the right clojure project to contribute to? On Friday, June 5, 2015 at 2:44:22 PM UTC+9, crocket wrote: > > The macro below is called if-let-all. > > (defmacro if-let-all > "if-let-all evaluates every local

Re: I created a new macro "if-let-all"

2015-06-06 Thread crocket
Yes, if-and-let is similar to if-let-all. On Friday, June 5, 2015 at 10:47:24 PM UTC+9, Fluid Dynamics wrote: > > On Friday, June 5, 2015 at 1:53:07 AM UTC-4, crocket wrote: >> >> Ouch, I didn't write. Gary Fredericks wrote it. I simply modified his >> if-let-all

Re: I created a new macro "if-let-all"

2015-06-04 Thread crocket
Ouch, I didn't write. Gary Fredericks wrote it. I simply modified his if-let-all macro a little bit. On Friday, June 5, 2015 at 2:44:22 PM UTC+9, crocket wrote: > > The macro below is called if-let-all. > > (defmacro if-let-all > "if-let-all evaluates every local

I created a new macro "if-let-all"

2015-06-04 Thread crocket
The macro below is called if-let-all. (defmacro if-let-all "if-let-all evaluates every local binding sequentially and evaluates true-case only if every local binding is a truthy value. true-case has access to all local bindings, but false-case doesn't have access to local bindings." [bindi