Re: Understanding `clojure.core.reducers/rfn`

2017-05-18 Thread Tianxiang Xiong
I think this is one of those cases where I need to see an example to understand. >From what I can tell, the `(fn [f1] (rfn ...))` argument to `folder` is a reducing-function-transformer--i.e. transducer, except there are some differences in things like order of application in composition. I *do

Re: Understanding `clojure.core.reducers/rfn`

2017-05-18 Thread Alex Miller
Reducers combine functionally, so they all have to support it to create any composite reducer that contains map. On Thursday, May 18, 2017 at 10:11:23 PM UTC-5, Tianxiang Xiong wrote: > > Would that ever be the case for `r/map`? Or does it only apply to certain > other reducers? > > On Thursday,

Re: slackpocalypse? (Alternatives to Slack like Matrix.org)

2017-05-18 Thread Paul Fernhout
Here is an essay I wrote in January 2016 against using Slack for FOSS (which cites that Ryver page): http://pdfernhout.net/reasons-not-to-use-slack-for-free-software-development.html The biggest practical issue (ignoring philosophical ones or theoretical ones) is probably "Slack is focused on tea

Re: Cases of `RT/canSeq`

2017-05-18 Thread Tianxiang Xiong
But if something is `ISeq`, it's `Seqable`, so checking for `Seqable` alone should be sufficient. Am I missing something here? Is there a performance performance benefit of checking for `ISeq` *and* `Seqable` that I'm not aware of? On Wednesday, May 3, 2017 at 2:19:42 AM UTC-7, Mikera wrote: >

Re: Understanding `clojure.core.reducers/rfn`

2017-05-18 Thread Tianxiang Xiong
Would that ever be the case for `r/map`? Or does it only apply to certain other reducers? On Thursday, May 18, 2017 at 4:11:39 PM UTC-7, Alex Miller wrote: > > The 3 arity is used when reducing over a map, like reduce-kv. Reducers do > this automatically which varies from the core reduce. -- Y

Re: Spec: Nested Cat Calls

2017-05-18 Thread Alexander Sedgwick
That worked - thank you! On Tuesday, May 16, 2017 at 11:38:08 PM UTC-5, Alex Miller wrote: > > The problem here is that s/or is NOT a regex op and introduces a new level > of spec nesting. Try using s/alt (which IS a regex op) instead. > > > On Tuesday, May 16, 2017 at 11:34:10 PM UTC-5, Alexande

Understanding `clojure.core.reducers/rfn`

2017-05-18 Thread Alex Miller
The 3 arity is used when reducing over a map, like reduce-kv. Reducers do this automatically which varies from the core reduce. -- 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 po

Understanding `clojure.core.reducers/rfn`

2017-05-18 Thread Tianxiang Xiong
In `clojure.core.reducers`, `map` is implemented as: (defcurried map "Applies f to every value in the reduction of coll. Foldable." {:added "1.5"} [f coll] (folder coll (fn [f1] (

Re: slackpocalypse?

2017-05-18 Thread Gregg Reynolds
On May 18, 2017 5:06 PM, "Timothy Baldridge" wrote: You know, there's this awesome bit of tech called IRC...someone should check that out. there's also this "email" thing people are talking about, but i don't really understand it. a series of tubes of some kind, i gather. -- You received thi

Re: slackpocalypse?

2017-05-18 Thread Gregg Reynolds
On May 18, 2017 5:06 PM, "Timothy Baldridge" wrote: You know, there's this awesome bit of tech called IRC...someone should check that out. that is so 90s! On Thu, May 18, 2017 at 3:31 PM, Gregg Reynolds wrote: > looks like access is restored, for me at least. still, slack is making me > a

Re: slackpocalypse?

2017-05-18 Thread Timothy Baldridge
You know, there's this awesome bit of tech called IRC...someone should check that out. On Thu, May 18, 2017 at 3:31 PM, Gregg Reynolds wrote: > looks like access is restored, for me at least. still, slack is making me > a little nervous. and that's in addition to the 10K msg limit, which is a >

Re: slackpocalypse?

2017-05-18 Thread Gregg Reynolds
looks like access is restored, for me at least. still, slack is making me a little nervous. and that's in addition to the 10K msg limit, which is a pain. anybody know antything about ryver? https://ryver.com/ryver-vs-slack/ On May 18, 2017 3:15 PM, "Gregg Reynolds" wrote: > is it just me? i've

Re: slackpocalypse?

2017-05-18 Thread Dragan Djuric
Southeast Europe. On Thu, May 18, 2017 at 10:45 PM Gregg Reynolds wrote: > > > On May 18, 2017 3:40 PM, "Dragan Djuric" wrote: > > It works for me as always. > > > hmm, maybe it's a hiccup. where are you located, if you don't mind my > asking. > > > On Thursday, May 18, 2017 at 10:34:33 PM UTC

Re: slackpocalypse?

2017-05-18 Thread Gregg Reynolds
On May 18, 2017 3:40 PM, "Dragan Djuric" wrote: It works for me as always. hmm, maybe it's a hiccup. where are you located, if you don't mind my asking. On Thursday, May 18, 2017 at 10:34:33 PM UTC+2, Gregg Reynolds wrote: > > > > On May 18, 2017 3:32 PM, "Jason Stewart" wrote: > > I'm expe

Re: slackpocalypse?

2017-05-18 Thread Timothy Baldridge
It's not working for me. I'm in the US, connecting via Chrome. On Thu, May 18, 2017 at 2:40 PM, Dragan Djuric wrote: > It works for me as always. > > On Thursday, May 18, 2017 at 10:34:33 PM UTC+2, Gregg Reynolds wrote: >> >> >> >> On May 18, 2017 3:32 PM, "Jason Stewart" wrote: >> >> I'm exper

Re: slackpocalypse?

2017-05-18 Thread Dragan Djuric
It works for me as always. On Thursday, May 18, 2017 at 10:34:33 PM UTC+2, Gregg Reynolds wrote: > > > > On May 18, 2017 3:32 PM, "Jason Stewart" > wrote: > > I'm experiencing the same thing, while I am able to connect with my other > slack teams. > > > this is not looking good. https://daveche

Re: slackpocalypse?

2017-05-18 Thread Gregg Reynolds
On May 18, 2017 3:32 PM, "Jason Stewart" wrote: I'm experiencing the same thing, while I am able to connect with my other slack teams. this is not looking good. https://davechen.net/2017/01/slack-user-limit/ On Thu, May 18, 2017 at 4:17 PM, Kenny Williams wrote: > I am not able to connect

Re: slackpocalypse?

2017-05-18 Thread Jason Stewart
I'm experiencing the same thing, while I am able to connect with my other slack teams. On Thu, May 18, 2017 at 4:17 PM, Kenny Williams wrote: > I am not able to connect via the web UI or Slack app either. > > > On Thursday, May 18, 2017 at 1:15:17 PM UTC-7, Gregg Reynolds wrote: >> >> is it just

Re: slackpocalypse?

2017-05-18 Thread Gregg Reynolds
On May 18, 2017 3:17 PM, "Kenny Williams" wrote: I am not able to connect via the web UI or Slack app either. slack = bitkeeper? i wonder if linus torvalds is busy. On Thursday, May 18, 2017 at 1:15:17 PM UTC-7, Gregg Reynolds wrote: > > is it just me? i've been unable to connect to clojuria

Re: slackpocalypse?

2017-05-18 Thread Kenny Williams
I am not able to connect via the web UI or Slack app either. On Thursday, May 18, 2017 at 1:15:17 PM UTC-7, Gregg Reynolds wrote: > > is it just me? i've been unable to connect to clojurians (by cellphone) > for about 30 minutes, but i can connect to other slack groups. > > have we hit > https:/

slackpocalypse?

2017-05-18 Thread Gregg Reynolds
is it just me? i've been unable to connect to clojurians (by cellphone) for about 30 minutes, but i can connect to other slack groups. have we hit https://github.com/clojurians/clojurians-chat/wiki/Slackpocalypse? we're almost to 10K subscribers. g -- You received this message because you are

Immediate Sr Engg Contract - Clojure Developer

2017-05-18 Thread chad . kapadia
Hi , I am looking for a Sr Engg with deep Clojure skills for a 2-3 month contract. Java will be a big plus. We are in SOMA, 3 blocks from the Ferry building. Thank you -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send ema

Re: [clojure.spec/form] Need for evaluated subspecs

2017-05-18 Thread Alex Miller
On Thursday, May 18, 2017 at 12:37:26 PM UTC-5, Leon Grapenthin wrote: > > I also have this problem. > > 1. If I create a dynamic spec constructor per defmacro and invoke it, it's > s/form gives the primitive specs form - because spec doesn't provide me > with a way to facilitate specs that ca

Re: [spec] Instrumentation for protocol methods?

2017-05-18 Thread Alex Miller
For the forseeable future, no. On Thursday, May 18, 2017 at 2:28:25 PM UTC-5, Yuri Govorushchenko wrote: > > Hello, > > I wonder, will it be possible to add specs to defprotocols? I use > protocols a lot and it would be very handy to be able to instrument > protocol methods. It is something Plum

[spec] Instrumentation for protocol methods?

2017-05-18 Thread Yuri Govorushchenko
Hello, I wonder, will it be possible to add specs to defprotocols? I use protocols a lot and it would be very handy to be able to instrument protocol methods. It is something Plumatic Schema cannot do at the moment: https://github.com/plumatic/schema/issues/117 Thanks. -- You received this m

Re: [clojure.spec/form] Need for evaluated subspecs

2017-05-18 Thread Leon Grapenthin
I also have this problem. 1. If I create a dynamic spec constructor per defmacro and invoke it, it's s/form gives the primitive specs form - because spec doesn't provide me with a way to facilitate specs that capture their form. 2. If I apply that invocation to another primitive spec, s/form o

Re: Looking for help creating this function/macro

2017-05-18 Thread david swift
Thanks James gonna try it out now On Thursday, 18 May 2017 17:46:02 UTC+1, James Reeves wrote: > > I'd first factor out all the parts you can into a function. So for > instance: > > (defn html-spec [html-tag] > (s/or :map(st-ds/spec html-tag {:tag (tag html-tag)}) > :vector (s/cat :

Re: Looking for help creating this function/macro

2017-05-18 Thread James Reeves
I'd first factor out all the parts you can into a function. So for instance: (defn html-spec [html-tag] (s/or :map(st-ds/spec html-tag {:tag (tag html-tag)}) :vector (s/cat :tag (tag html-tag This will allow you to write: (s/def ::a (html-spec ::a)) I'd be inclined to leave it

Re: [clojure.spec/form] Need for evaluated subspecs

2017-05-18 Thread Alex Miller
On Wednesday, May 17, 2017 at 3:02:17 PM UTC-5, marian.hor...@vacuumlabs.com wrote: > > Hi, > > I am writing a function that transforms Specs to another formats (similar > to the JSON Schema). Assuming from this post >

Re: Looking for help creating this function/macro

2017-05-18 Thread david swift
I forgot to mention I am using the following library https://github.com/metosin/spec-tools; where you see (st-ds/spec) calls is the use of that library. On Thursday, 18 May 2017 17:21:45 UTC+1, david swift wrote: > > Hey Guys, > > I am looking for help creating a particular function/macro, righ

Looking for help creating this function/macro

2017-05-18 Thread david swift
Hey Guys, I am looking for help creating a particular function/macro, right now I've no experience using macro's and I'm under the impression it might be the right solution to my problem, that produces a spec output but a very specific spec output. My goal here is to reduce the constant repeat

[ANN] Directory of Clojure Consultants

2017-05-18 Thread Robert Herrmann
I recently started a directory for clojure consultants, http://clojureconsultants.org The idea being if you are looking for work, or for help for your team - the site should help you locate enthusiastic help! Cheers -bob -- You received this message because you are subscribed to the G