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
@borkdude would it make sense to make something like this a function of clj-kondo
?
@mafcocinco 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."
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
In this channel, please keep the discussions inside Threads.
Because posts in the channel get posted here and there over the web. 😃
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__)
Probably not, it just sorts namespaces with projects namespaces priority