This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-01
Channels
- # announcements (7)
- # babashka (41)
- # beginners (117)
- # cider (3)
- # clj-kondo (145)
- # cljdoc (25)
- # cljs-dev (19)
- # clojure (197)
- # clojure-dev (14)
- # clojure-europe (4)
- # clojure-italy (3)
- # clojure-nl (2)
- # clojure-spec (11)
- # clojure-uk (21)
- # clojuredesign-podcast (5)
- # clojurescript (29)
- # code-reviews (4)
- # cursive (87)
- # data-science (11)
- # datomic (29)
- # duct (2)
- # emacs (10)
- # graalvm (1)
- # lumo (13)
- # malli (2)
- # nrepl (5)
- # off-topic (25)
- # onyx (1)
- # pathom (6)
- # reagent (20)
- # reitit (4)
- # rewrite-clj (7)
- # shadow-cljs (114)
- # spacemacs (16)
animations are now done via animate.css: https://borkdude.github.io/sci.web/
I think your current animation is easier on the eyes. Interesting note: I was not seeing your new effect until I turned off “reduce motion” on my ipad. Which is good. Folks who don’t like animations or get vertigo won’t have to see them.
curl | bb -o '(for [[[group art] counts] *in*] (str (reduce + (vals counts)) " " group "/" art))' | sort -rn | less
yes, indeed! Thanks!
this never exits
curl | bb -o '(for [[[group art] counts] *in* [ver cnt] counts] (str group "/" art "\t" ver "\t" cnt))'
debugging: this step works: cat /tmp/stats.edn | bb -o '(for [[[group art] counts] *in*] counts)'
but this doesn't: cat /tmp/stats.edn | bb -o '(for [[[group art] counts] *in* [ver cnt] counts] counts)'
repro:
$ bb -o '(for [[x counts] [[1 [1 2 3]] [3 [1 2 3]]] c counts] c)'
1
2
3
1
2
3
it seems to be a bug in sci:
sci $ lein run "(for [[x counts] [[1 [1 2 3]] [3 [1 2 3]]] c counts] c)"
@plexus released v0.0.25: https://github.com/borkdude/babashka/releases/tag/v0.0.25
$ /usr/local/bin/bb '(for [[x counts] [[1 [1 2 3]] [3 [1 2 3]]] c counts] c)'
(1 2 3 1 2 3)
the bug originated from a workaround when sci did not yet have the when-first
macro which was used in the original for
macro, but I made a mistake there
confirming that this example now works: https://clojurians.slack.com/archives/CLX41ASCS/p1572615838130200