This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-20
Channels
- # announcements (1)
- # beginners (164)
- # calva (70)
- # cider (26)
- # cljs-dev (6)
- # cljsrn (1)
- # clojars (3)
- # clojure (123)
- # clojure-berlin (1)
- # clojure-dev (5)
- # clojure-ecuador (9)
- # clojure-europe (2)
- # clojure-italy (14)
- # clojure-nl (21)
- # clojure-nlp (5)
- # clojure-portugal (1)
- # clojure-spain (3)
- # clojure-spec (26)
- # clojure-uk (47)
- # clojurescript (17)
- # clr (1)
- # code-reviews (7)
- # core-async (5)
- # cursive (8)
- # data-science (2)
- # datomic (28)
- # emacs (23)
- # events (1)
- # fulcro (43)
- # graalvm (6)
- # graphql (8)
- # immutant (5)
- # jackdaw (17)
- # jobs (1)
- # jobs-discuss (20)
- # joker (3)
- # leiningen (8)
- # luminus (12)
- # off-topic (61)
- # overtone (5)
- # pathom (2)
- # quil (1)
- # re-frame (15)
- # reagent (2)
- # reitit (23)
- # remote-jobs (1)
- # schema (1)
- # shadow-cljs (26)
- # tools-deps (56)
- # vim (4)
Mornin'
when you want to essentially reduce a collection (maybe drop some elements, maybe transform others)
and the decision of what to do with an element depends on what other elements have been previously processed
so, a good example would be converting a collection so that the result contains only unique elements
it can be done with reduce wherein carry value deconstructs into [state, actual_result]
, but that feels... meh
Alex Miller talks about making a distinct transducer here - http://insideclojure.org/2014/12/17/distinct-transducer/ - which puts the state in a volatile that is closed over
I often use the reduce with state though, as you describe, often in a map which I destructure in the reducing function
fundamentally you have to have a state
in a reducing function its an explicit accumulator
in a tranducer its a closed-over volatile
Personally I would prefer reduce
and explicit accumulator (because I dislike subtlety in code)
but wrapping inside a transducer is more flexible
morning
https://nextjournal.com/ is pretty amazing, just watched the Scicloj broadcast and I was very impressed. JUXT were also using NextJournal for their Crux workshop the other night
We have meetups organised for July and August live on the London Clojurians meetup site. https://www.meetup.com/London-Clojurians/events/262000841/ https://www.meetup.com/London-Clojurians/events/262441845/ Send me a DM if you want to speak in September, October or November. Or if you want to give a workshop before ClojureX. Thank you.
how long are workshops @jr0cket and what’s been planned so far?
Nothing planned so far. Previous years we have done a 1.5 to 2 hour workshop in the morning and approximately 4 hour in the afternoon. But no reason why we can't have several smaller ones or an all day one (11am to 5pm).
I am sure a workshop on cljs and lambda would be popular (if only I knew someone who could give that)
ha, or a guided conversation on hiring or something? those are workshop like and are really ace for knowledge sharing. You basically need 20 chairs in a circle, and no A/V
facilitated a couple of those in the past too….
I've never tried Spacemacs but I am quite fond of vim-style editing. Wish I could be there for the August meetup (I arrive the following week).
I should have a few videos that cover the same as the workshop on http://yet.vu/+practicalli Will also try and stream the workshop to the same channel. I am happy to meet up when you are over and go through some things if you like.
Thanks. We're going to mostly be in West Sussex with mum or up in Stoke-on-Trent for a cat show/pet expo so I doubt we'll be in your area.
If we happened to be in England around the date of one of your meetups, I'd probably make the effort to attend and meet folks 🙂
No problem. There are several hundreds of things I'd like to pick your brains about... If I find the time to ask :)
Ooh, the July meetup looks awesome too. These get recorded and posted online @jr0cket?
(now that Liquid is more vim-like, I've gone back to trying that more seriously, but I don't think I'll be able to give up parinfer/paredit)
I have asked SkillsMatter to record both talks (fingers crossed that their AV team is available).
ya - I was able to hack together a "replacement" to vim-fireplace in two lines of config thanks to socket-repl
@djtango have a look at Conjure (https://github.com/Olical/conjure) as a work-in-progress replacement for fireplace that uses a socket-repl