This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-01
Channels
- # announcements (10)
- # aws (1)
- # babashka (19)
- # beginners (104)
- # calva (50)
- # cider (17)
- # cljs-dev (135)
- # cljsrn (56)
- # clojure (240)
- # clojure-dev (4)
- # clojure-europe (19)
- # clojure-nl (2)
- # clojure-uk (7)
- # clojurescript (22)
- # conjure (2)
- # css (1)
- # cursive (10)
- # data-science (1)
- # datomic (60)
- # emacs (2)
- # events (2)
- # exercism (1)
- # figwheel-main (3)
- # fulcro (13)
- # graalvm (5)
- # gratitude (1)
- # inf-clojure (4)
- # introduce-yourself (5)
- # jobs-discuss (21)
- # lsp (36)
- # malli (6)
- # meander (8)
- # missionary (12)
- # off-topic (14)
- # pathom (13)
- # pedestal (10)
- # polylith (42)
- # re-frame (5)
- # reagent (12)
- # reitit (3)
- # releases (8)
- # sci (10)
- # shadow-cljs (37)
- # sql (5)
- # tools-deps (6)
I've never used such a tool, but it sounds useful. @i.slack @huahaiy @deleted-user You could make a Github discussion to collect some ideas perhaps.
Anyone wants to do some smoke tests for the upcoming babashka? The major new feature is that it contains the java.net.http
client / websocket support.
@U04V15CAJ I can confirm that java-http-clj
is working fine for my use-case of a few GET requests with some custom headers instead of babashka.curl
. I can also confirm that the alias-uri
function is available and working. 💯
It should be able to run the https://github.com/schmee/java-http-clj library from source.
macOS: https://22066-201467090-gh.circle-artifacts.com/0/release/babashka-0.5.2-SNAPSHOT-macos-amd64.tar.gz linux: https://22067-201467090-gh.circle-artifacts.com/0/release/babashka-0.5.2-SNAPSHOT-linux-amd64-static.tar.gz Windows: https://ci.appveyor.com/api/buildjobs/39be305eurfm2y1a/artifacts/babashka-0.5.2-SNAPSHOT-windows-amd64.zip
The idea is that over time we will prefer the java.net.http client (or some convenience lib inside bb that leverages it) over all the other clients and deprecate the others (while giving sufficient time, there is no hurry to remove them). Having the raw interop is the first stage of this plan.
At the same time Clojure library authors are recommended to use raw java.net.http interop if their library needs to do http communication (or some internal wrapper over it) so a library is able to do this without any external deps and also making it both JVM and bb compatible.
Preliminary changelogs: https://github.com/babashka/babashka/blob/master/CHANGELOG.md#060-unreleased
Maybe this is #beginner questions but I'll ask here first - if I want to create a bb script that uses an external diff viewer (still terminal) and I want to see the colorized output, can I do that?
Rephrased, can I preserve the terminal output from a super fancy terminal program like bat
and see it when I shell out to it via bb
?
What I want to do is create a quick n dirty cli to inspect a lot of git diffs and give user input on every diff
@U6T7M9DBR yes, you can do this using babashka.process/process
or babashka.tasks/shell
Currently I'm doing (require '[clojure.java.shell :refer [sh]])
but maybe that's the newbie way? 🙂
A lot is happening around babashka and I sat down to collect what happened in the last two months: https://github.com/babashka/babashka/blob/master/doc/news.md#2021-09
Special shout out to @grzm who did most of the work on integrating http://java.net.http.