This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-14
Channels
- # adventofcode (4)
- # announcements (11)
- # babashka (1)
- # beginners (45)
- # calva (31)
- # cider (12)
- # clj-kondo (1)
- # cljdoc (9)
- # cljs-dev (5)
- # cljsrn (11)
- # clojure (42)
- # clojure-australia (1)
- # clojure-germany (14)
- # clojure-italy (1)
- # clojurescript (20)
- # conjure (2)
- # cursive (11)
- # datomic (5)
- # emacs (2)
- # events (1)
- # fulcro (24)
- # graalvm (1)
- # honeysql (69)
- # malli (2)
- # off-topic (13)
- # reagent (12)
- # reitit (1)
- # shadow-cljs (14)
- # specter (2)
- # tools-deps (21)
- # uncomplicate (4)
tools-deps-native: an experiment to run tools-deps natively, which allows for faster dependency resolving without a JVM. https://github.com/borkdude/tools-deps-native-experiment It works, but there are some issues so this should be considered experimental. Please do try it out though. Pre-release binaries for macOS and linux: https://github.com/borkdude/tools-deps-native-experiment/releases/tag/0.0.1-SNAPSHOT
Leiningen plugin to sort namespaces in :require block with project namespaces priority https://github.com/ilevd/ns-sort
@U04V15CAJ would it make sense to make something like this a function of clj-kondo
?
@U6SN41SJC clj-kondo has a linter for this. but clj-kondo will not edit your code. #lsp will though, I recommend trying that out!
cool! I will check it out.
Is it like Slamhound (https://github.com/technomancy/slamhound)? "Slamhound rips your ns form apart and reconstructs it. No Dutch surgeon required."
In this channel, please keep the discussions inside Threads.
It's more like https://github.com/gfredericks/how-to-ns but with one distinct feature (priority) Btw you might be interested in separating the core feature from leiningen so it can be used from the repl. cljfmt, how-to-ns, etc, do this
clirun: Run any function from the clojure cli https://github.com/phronmophobic/clirun
# Write to a file using clojure.core/split
$ clj -M:run clojure.core/spit '"foo.txt"' '[1 2 3]'
$ cat foo.txt
[1 2 3]
# prn the return value by
# adding -p as the first argument
$ clj -M:run -p clojure.core/+ 1 2 3 4
10
# pretty print the return value by
# adding -pp as the first value
$ clj -M:run -pp clojure.core/macroexpand-1 '(time (+ 1 2 3))'
(clojure.core/let
[start__6153__auto__
(. java.lang.System (clojure.core/nanoTime))
ret__6154__auto__
(+ 1 2 3)]
(clojure.core/prn
(clojure.core/str
"Elapsed time: "
(clojure.core//
(clojure.core/double
(clojure.core/-
(. java.lang.System (clojure.core/nanoTime))
start__6153__auto__))
1000000.0)
" msecs"))
ret__6154__auto__)