Fork me on GitHub
#announcements
<
2021-02-14
>
borkdude10:02:43

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

metal 19
clj 9
ilevd17:02:50

Leiningen plugin to sort namespaces in :require block with project namespaces priority https://github.com/ilevd/ns-sort

👍 6
mafcocinco15:02:36

@U04V15CAJ would it make sense to make something like this a function of clj-kondo?

borkdude15:02:23

@U6SN41SJC clj-kondo has a linter for this. but clj-kondo will not edit your code. #lsp will though, I recommend trying that out!

mafcocinco15:02:39

cool! I will check it out.

phill18:02:49

Is it like Slamhound (https://github.com/technomancy/slamhound)? "Slamhound rips your ns form apart and reconstructs it. No Dutch surgeon required."

Vincent Cantin19:02:17

In this channel, please keep the discussions inside Threads.

pez20:02:29

Because posts in the channel get posted here and there over the web. 😃

ilevd22:02:25

Probably not, it just sorts namespaces with projects namespaces priority

vemv09:02:01

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

phronmophobic20:02:37

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__)

9
😄 1