This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-16
Channels
- # announcements (7)
- # babashka (1)
- # beginners (125)
- # bristol-clojurians (4)
- # calva (49)
- # cider (10)
- # cljs-dev (3)
- # clojure (102)
- # clojure-berlin (3)
- # clojure-czech (4)
- # clojure-europe (84)
- # clojure-france (29)
- # clojure-italy (2)
- # clojure-nl (26)
- # clojure-norway (5)
- # clojure-spec (4)
- # clojure-sweden (4)
- # clojure-uk (50)
- # clojurescript (3)
- # community-development (2)
- # conjure (19)
- # cursive (9)
- # datascript (4)
- # datomic (33)
- # fulcro (4)
- # off-topic (26)
- # parinfer (10)
- # pedestal (4)
- # quil (8)
- # re-frame (1)
- # reagent (20)
- # remote-jobs (5)
- # reveal (53)
- # sci (10)
- # shadow-cljs (37)
- # spacemacs (6)
- # sql (25)
- # tools-deps (24)
- # vrac (2)
- # xtdb (10)
WRT the java versions. I wish they could split this stuff into at least three things. Jvm, language, and std library. As a Clojure dev I have little interest in the evolution of the language nor the std lib, but the evolution of the jvm is interesting.
Like, I don’t care if java the language is at ver 25, it a bump in jvm version might be very interesting.
I know what you mean but they often have bug fixes and performance improvements in the core SDK so it's not just the JVM that matters to us
Good morning. My mind is a bit blown by what3words: https://what3words.com/snapped.trip.segments
That particular location is a common meeting place in Stockholm city. ”Let's meet by the mushroom at Stureplan” and everyone knows where you mean. Switch to satellite view on that site and zoom in and you'll sort of figure why ”mushroom”.
https://en.wikipedia.org/wiki/Stureplan (there's a photo of ”the mushroom” there).
I love What3Words, want to get it integrated into DeskHoppa but I’m concerned there’s commercial licensing restrictions. Need to look closer into it.
I heard @U0H9BVB98 complain about the license as well.
It just feels to me like a solution that should be open to everybody without monetization
also .... morning
can I also add that Slack threads hurt the MX of this channel (where MX is My eXperience and not some fucking emacs thing 😝 )
We all understood that it wasn't an emacs thing, because the emacs thing is written M-x
as in M-x all-hail-emacs
.
why oh why reply via a thread .. I'm so triggered :)
there is none while you keep doing things we both hate :)
there are 2 kinds of languages. Those people don't use and those people complain about. 😄
re: https://clojurians.slack.com/archives/CBJ5CGE0G/p1600246850349000, yeah I think so too
why oh why reply via a thread .. I'm so triggered :)
Urban dictionary is helpful in defining UGT, but only after giving me the naughty stuff first 🤪
> Now, instead of spending time figuring out what time of day is it for every member of the channel, we spend time explaining newcomers benefits of UGT. Sounds eerily similar to most programming related topics. 😂
where are the -3 folks?
please show yourselves :)
@raymcdermott some Greenlanders apparently?
haha yeah I understand the theory but is it a reality?
and I don't think we're really that picky here about where people are from or where they are living. It is just more lively during GMT day time
@raymcdermott my fat bike would be a lot of fun in Greenland
we couldn't be fussy if we wanted to be ... but of course, all can come 🙂
bad is falthy, so i guess he cannot execute what he wants?
I was aiming for lols. I've just not used it and I'm a bit tired today, so I first wasn't using cond-> right (not acting on the threaded item) and then messed up my update statement
hmm... update the last item of a vector?
user> (def my-vec [1 2 2])
#'user/my-vec
user> (update my-vec (dec (count my-vec)) inc)
[1 2 3]
yeah, I'm actually doing a fair amount of work on the last map in a vector based on a new map coming in in the middle of a reduce
the new record might mean that I have to edit the old one, so having a way of accessing it quickly and editing it quickly is what I need
sounds like specter would be a nice fit for this
or other lens library
but then you will introduce a dependency
yeah, I'd like to avoid that unless I need to. What I have works and is OK. I just feel like I must be missing something obvious in core
be careful with seq’s though 😉
i believe you cannot update seqs by index at all, maybe im wrong though
To me it sounds strange to want to update the last thing of a thing. This makes me believe you have a n- tuple rather than a vector of random size?
Which might suggest that you could model this either as a map (with known keys) or that last
will always be two and the sequence will always be a vector, so you could (update 3-tuple 2 inc)
or somesuch
@U0525KG62 would you take advantage in storing the vectors in reverse during the reduce? That way you could take advantage for [head & rest]
destructuring
@UFY00FM0B you can use the index of an item in a vector like a key
yeah, but not a lazy seq
that’s what I meant
@U04V5VAUN the vector grows as I add new items
Normally I would do a map but I can't in this instance which is why I'm finding myself inexperienced
cljs.user=> (update '(1 2) 1 inc)
Execution error (Error) at (<cljs repl>:1).
No protocol method IAssociative.-assoc defined for type cljs.core/List: (1 2)
okay I’m not crazy 😄
@UFY00FM0B you are completely correct about seqs and lists
yes, you are right
and potentially expensive. Transducers could help