announcements

Project/library announcements ONLY - use threaded replies for discussions. Do not cross post here from other channels. Consider #events or #news-and-articles for other announcements.
borkdude 2021-02-14T10:31:43.308100Z

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

9
🤘 19
ilevd 2021-02-14T17:13:50.311200Z

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

👍 6
mafcocinco 2021-02-19T15:06:36.359Z

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

borkdude 2021-02-19T15:07:23.359200Z

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

mafcocinco 2021-02-19T15:07:39.359400Z

cool! I will check it out.

2021-02-14T18:29:49.312200Z

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

vemv 2021-02-15T09:43:01.315900Z

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

2021-02-14T19:05:17.312500Z

In this channel, please keep the discussions inside Threads.

pez 2021-02-14T20:18:29.312900Z

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

phronmophobic 2021-02-14T20:32:37.313600Z

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

8
😄 1
ilevd 2021-02-14T22:04:25.314300Z

Probably not, it just sorts namespaces with projects namespaces priority