This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-03
Channels
- # announcements (35)
- # aws (20)
- # babashka (4)
- # beginners (88)
- # cider (9)
- # clara (1)
- # clj-kondo (6)
- # cljsrn (3)
- # clojure (107)
- # clojure-dev (7)
- # clojure-europe (99)
- # clojure-nl (3)
- # clojure-spec (9)
- # clojure-uk (2)
- # clojurescript (28)
- # core-async (53)
- # cursive (11)
- # datascript (1)
- # datomic (2)
- # emacs (20)
- # fulcro (3)
- # graalvm (4)
- # holy-lambda (18)
- # jobs (1)
- # kaocha (7)
- # leiningen (2)
- # lsp (25)
- # luminus (1)
- # membrane-term (52)
- # missionary (8)
- # nextjournal (19)
- # off-topic (16)
- # other-languages (3)
- # podcasts-discuss (2)
- # polylith (23)
- # re-frame (4)
- # reclojure (6)
- # remote-jobs (1)
- # rewrite-clj (36)
- # ring (1)
- # sci (10)
- # shadow-cljs (7)
- # spacemacs (5)
- # sql (20)
- # uncomplicate (1)
- # vscode (3)
- # xtdb (27)
๐คซ Clerk is now open source and we have a big new release out, please check it out: ๐ GitHub Repo https://github.com/nextjournal/clerk ๐ Static Build https://storage.googleapis.com/nextjournal-snapshots/clerk/build/f46b5763cb41f78d86d62718cb20a01c1079d5c7/index.html ๐ฆ Clojars: https://clojars.org/io.github.nextjournal/clerk ๐งช Demo Repo: https://github.com/nextjournal/clerk-demo ๐ To everybody here who helped test it! If we havenโt missed anything bad weโll announce it in more public channels in a bit.

@mkvlr Thanks for the new release , awsome !
As I played again with dataset objects, found one simple case, where thinks get out of sync:
max-size
is 2 , but the rendering of datasets shows 10 values (the previous value of max-size
)
and indeed, changing max-size
does not change the dataset rendering.
Code to reproduce is this:
(ns tablecloth
(:require [tablecloth.api :as tc]
[nextjournal.clerk :as clerk]))
(def max-size 2)
(take max-size
(repeat 1000 "a"))
(->
(tc/dataset {:a (repeat 1000 "a")})
(tc/head max-size))
thanks, Iโll look into this. Great to hear that large datasets work well for you know!
I works well, when I wrap te last expression in a def In that case, I cannot reproduce the issue:
(ns bug
(:require [tablecloth.api :as tc]
[nextjournal.clerk :as clerk]
[nextjournal.clerk.hashing :as h]))
(def max-size 2)
(take max-size
(repeat 1000 "a"))
(def y
(->
(tc/dataset {:a (repeat 1000 "a")})
(tc/head max-size)))
It is unrelated to tech.dataset. It has something to do with the last expression not being a def
something like this
(def max-size 2)
(println
{:x max-size
:y {:z (range max-size)}})
behvaes as well "unexpected". The
println
is not re-executed when max-size
gets changed.
sounds like an issue in the hashing used for the caching, should be easy to fix with this tiny repro
wrapping the println
in a def
solves it as well
https://clojars.org/io.github.nextjournal/clerk/versions/0.2.214 is out and fixes this issue, thanks for the report!
https://clojars.org/io.github.nextjournal/clerk/versions/0.2.214 is out and fixes this issue, thanks for the report!