This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-11-06
Channels
- # announcements (3)
- # aws (3)
- # babashka (9)
- # beginners (87)
- # calva (3)
- # chlorine-clover (7)
- # cider (6)
- # clj-kondo (1)
- # cljs-dev (31)
- # cljsrn (7)
- # clojure (26)
- # clojure-berlin (5)
- # clojure-europe (84)
- # clojure-nl (3)
- # clojure-uk (13)
- # clojurescript (39)
- # core-async (4)
- # core-logic (3)
- # cursive (3)
- # datomic (10)
- # devcards (5)
- # duct (2)
- # emacs (3)
- # events (1)
- # fulcro (6)
- # jobs (4)
- # kaocha (12)
- # london-clojurians (1)
- # off-topic (21)
- # other-languages (2)
- # pathom (5)
- # pedestal (1)
- # re-frame (1)
- # reitit (3)
- # remote-jobs (6)
- # reveal (6)
- # sci (34)
- # shadow-cljs (99)
- # tools-deps (99)
Bore da
I had a look at that before and made it hang with some large values. I'll have another look
the process that is running some times blows up in the middle tho, so storing it all in memory and dumping it at the end doesn't work
Guten Morning!
I've used tap in some local dev situations, e.g. where I would send a message in prod, i tap out during development
With some machinery around it I can even selectively filter. Like logging but for a different purpose. And structured.
Nextjournal integrates tap>
, and you can use their data viewer then to browse through your data. quite nifty.
I hadn't seen Portal yet. I've used Punk but it also has no protection for dealing with big values. And it uses EDN over the wire which I find questionable.
today was the first time I thought about using some
with not-empty
, they combine well, even works with strings
(some not-empty ["" nil "foo"])
;; => "foo"
Alex once frowned upon my use of non-empty
for strings, he recommended using str/blank?
which I have been doing since :)
Here's an example of invoking portal with babashka to view EDN files (and YAML, etc): https://github.com/borkdude/babashka/tree/master/examples#portal
I will say one nice thing about str/blank?
, it's one of the only (perhaps the only?) function in clojure.string
that doesn't just explode when it sees a nil
do you know if portal has any mechanism for incrementally fetching nested values or parts of long sequences? Unrepl had that and it's seems shadow's object inspector thingy as well, but Punk doesn't which makes its usefulness limited
I think you might find https://github.com/djblue/portal/pull/18 interesting. Still working on it but it should address your concerns around long sequences.
How big are we talking? Portal lazily renders all data structures so the bottle neck tends to be in transit which is fast enough.
Ok that's a great benchmark. That's how I immediately locked up punk the first time I tried it ๐
What is the best way to implement inc2 and dec2 (add or subtract 2 rather than 1)? Itโs obviously easy just wondering what are the craziest options!
(defn inc2
[n]
(->> (repeatedly #(rand-int Integer/MAX_VALUE))
(map (juxt #(- % n) identity))
(drop-while (comp (partial not= 2) first))
(first)
(second)))
Could stick a little into in there
Or eduction
With luck, it might terminate before we reach a Brexit agreement. The future will tell my grandchildren.
I just read an article by a Dutch philosopher who thinks that it would be better if Trump won again, so we got rid of him in 4 years, instead of giving him 4 years to run again and destroy everything with more impact.
Well, he's not that young you know
no way he will run again - Melania needs her divorce and he wants a talk show ... all attention no work
TIL that this works:
mv resources/clj_kondo.config/clj_kondo/fulcro/{README.md,src} fulcro
I tried it without reading any docs, just hoping it would work, and it did!If only the American voting system were that simple and predictable ;)
Let's put clj-condo in the constitution
I am in this photo and do not like it
@val_waeselynck btw, after reading your article on _
I now use :tag_uuid
instead of :tag/uuid
at work in our backend and front-end :P. Saves me quite some hassle with converting back and forth.
Somewhat predictably, underscores are underrated.
Somewhat predictably, underscores are underrated.