This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-19
Channels
- # announcements (1)
- # architecture (24)
- # beginners (7)
- # boot (7)
- # cider (1)
- # cljdoc (4)
- # clojure (20)
- # clojure-austin (1)
- # clojure-brasil (2)
- # clojure-dev (1)
- # clojure-italy (1)
- # clojure-spec (36)
- # clojure-uk (11)
- # clojurescript (44)
- # data-science (3)
- # datascript (1)
- # datomic (8)
- # figwheel-main (2)
- # fulcro (29)
- # graphql (9)
- # kaocha (2)
- # keyboards (1)
- # leiningen (3)
- # lumo (5)
- # nrepl (4)
- # off-topic (39)
- # onyx (5)
- # re-frame (2)
- # shadow-cljs (42)
- # tools-deps (18)
- # yada (65)
anyone got a quick example how to postwalk an edn file using clj-rewrite? I simply want to replace a few keywords by postwalking it, but the README doesn’t have a good example of this
I want to preserve whitespace and comments, therefore normal clojure postwalk doesn’t suffice
I vaguely remember @robert-stuttaford sending me a snippet of this a while ago
is anyone aware of a persistent data structure library for Java that is adapted for primitives, like a persistent vector that is based on int[]
? i.e something like FastUtil or Agrona but persistent. Does such a thing even make sense?
@schmee I think bifurcan has those. You’ll hardly find anything better https://github.com/lacuna/bifurcan
Bifurcan has an IntMap
, but it implements ISortedMap<java.lang.Long,V>
so it still uses boxed longs, not primitives 😕
note that while vector-of helps with primitive storage, boxing will still happen on access
as it’s going through the same Clojure interfaces that take objects
that’s not necessarily true for arrays - with care you can avoid boxing in most uses of arrays
https://juxt.pro/blog/posts/pack-maven.html I also wrote this 🙂
I wrote about this just today: https://cjohansen.no/tools-deps-figwheel-main-devcards-emacs/
@christian767 this is great, thank you!