This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-03-08
Channels
- # announcements (11)
- # babashka (13)
- # beginners (11)
- # biff (2)
- # calva (17)
- # cider (19)
- # clojure (60)
- # clojure-berlin (1)
- # clojure-dev (20)
- # clojure-europe (48)
- # clojure-nl (1)
- # clojure-norway (98)
- # clojure-spec (7)
- # clojure-uk (5)
- # core-typed (32)
- # cursive (13)
- # datomic (12)
- # dev-tooling (5)
- # emacs (7)
- # figwheel-main (2)
- # graalvm (4)
- # hyperfiddle (4)
- # introduce-yourself (1)
- # malli (14)
- # missionary (32)
- # off-topic (7)
- # overtone (4)
- # pedestal (10)
- # proletarian (4)
- # re-frame (8)
- # releases (11)
- # tools-build (1)
- # tools-deps (4)
- # xtdb (38)
released version 0.12.0 of Overarch (https://github.com/soulspace-org/overarch) which mainly fixes some issues introduced in v0.10.0 and v0.11.0.
🎉 2
Released 0.2.12 of https://github.com/viesti/timbre-json-appender, which now indents arrays when pretty print enabled. Thanks for pointing this out @vemv :)
3
🎉 5
io.github.hlship/trace 1.1 https://github.com/hlship/trace A small library to improve the experience when using output to debug code using the REPL. Changes: • Migrated from io.aviso/pretty to org.clj-commons/pretty • Added a wrapper around Criterium for benchmarking expressions
🎉 1
An example of the bench
macro:
(let [list-data (doall (map inc (range 1000)))
vector-data (vec list-data)
pred #(< 900 %)
v1 (fn [pred coll] (first (filter pred coll)))
v2 (fn [pred coll] (reduce (fn [_ v] (when (pred v)
(reduced v)))
nil coll))]
(bench
(v1 pred list-data)
(v1 pred vector-data)
(v2 pred list-data)
(v2 pred vector-data)))
Expression | Mean | Var
(v1 pred list-data) | 7.76 µs | ± 76.66 ns
(v1 pred vector-data) | 7.94 µs | ± 74.06 ns (slowest)
(v2 pred list-data) | 4.03 µs | ± 42.25 ns (fastest)
(v2 pred vector-data) | 4.87 µs | ± 49.15 ns