Fork me on GitHub
#clojure
<
2016-11-01
>
ghadi00:11:35

foldable has slightly different semantics. Reducible == anything you can call reduce to shred through.

ghadi00:11:45

foldable is something that can be logically divided into chunks, each chunk reduced, and each reduction combined with a function

iku00088800:11:28

Could we say foldable is a subset of reducible?

ghadi00:11:52

yeah all foldables are reducible

ghadi00:11:16

you essentially divide into 1 chunk

ghadi00:11:07

but it's not very useful to consider it a subset / subtype

iku00088800:11:42

I think I understand. I am currently working on translating the official reference and I was confused because they seemed to be interchangeable at first glance.

iku00088800:11:02

And I agree it is not useful to consider it a subset.

iku00088800:11:51

If I understand correctly, fordable are the ones that can be reduced in parallel more efficiently?

ghadi00:11:11

it's the reward for the additional constraint

ghadi00:11:42

(constraint being: your combining function is associative)

iku00088800:11:17

Feel enlightened, thanks!

ghadi00:11:17

i've started working on a guide to reducibles for the http://clojure.org site

ghadi00:11:27

hopefully i'll finish it someday

ghadi00:11:44

not enough people use pure reducibles

ghadi00:11:50

the payoff is huge

iku00088800:11:03

And hopefully I will translate that to Japanese one day 🙂

iku00088800:11:51

I guess one last doubt is that do reducibles get processed in parallel or not?

ghadi00:11:57

(only the independent parts of a foldable are potentially run in parallel)

ghadi00:11:14

reducibles are logically "left to right" or "begin to end"

ghadi00:11:20

1 at a time

iku00088800:11:12

Thanks so much! Really helpful to hear from an actual person.

thedavidmeister02:11:16

is there a good way to find all the symbols in my project with a given meta tag, or is that a bad idea?

wei07:11:16

is there a good networked core.async library? found this one but it’s 3 years old https://github.com/tonsky/net.async

robert-stuttaford08:11:46

@wei this is me shooting from the hip, but aleph/manifold

Niki09:11:44

@wei tonsky/net.async is abandoned way too long ago

sandbags09:11:33

I’m looking for someone experienced with deploying Clojure apps (this app is ring+compojure+reagent) who can help us figure out why our jetty deploy has broken and help us setup a reliable deployment system (we’ve also been looking at wildfly). Can anyone recommend someone?

triss11:11:47

Hi all, I’ve got a function with an optional argument and some constraints that only come in to play when the extra argument is present or has a particular value. I’m trying to spec its arguments...

triss11:11:05

Once run I don’t care if the search is a :pos-search :nv-search or :`simple-search`. Is there a simpler way to write the following:

(s/def ::query
  (s/cat :search-type
         (s/alt :pos-search
                (s/cat :search-type (set (keys pos-searchs))
                       :part-of-speech #{:noun :verb :adverb :adjective})
                :nv-search
                (s/cat :search-type (set (keys nv-searchs))
                       :part-of-speech #{:noun :verb})
                :simple-search
                (s/cat :search-type (set (keys simple-searchs))))
         :search-string string?))

triss11:11:17

all I really want back once the query’s been parsed is a map with :search-type, :part-of-speech if present and search-string in it.

sandbags13:11:44

Am I asking in the wrong place? Wasn’t expecting it to be so difficult to find someone who can help us...

sandbags13:11:54

To be clear, I am not asking for free help. I am looking to pay someone to help.

sandbags13:11:31

I don’t expect this is a huge gig, but I am looking to hire someone with some experience to solve the problem for us

bostonaholic14:11:39

@sandbags try asking in #jobs or #consulting

sandbags14:11:07

@bostonaholic thanks .. #consulting looks right, hadn’t noticed that one!