Fork me on GitHub
#babashka
<
2021-09-01
>
borkdude07:09:29

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.

borkdude09:09:41

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.

👍 2
celebrimbor37913:09:09

@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. 💯

borkdude09:09:14

It should be able to run the https://github.com/schmee/java-http-clj library from source.

borkdude10:09:58

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.

borkdude10:09:32

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.

emilaasa13:09:39

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 ?

emilaasa13:09:12

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

borkdude13:09:31

@U6T7M9DBR yes, you can do this using babashka.process/process or babashka.tasks/shell

emilaasa13:09:47

oh fancy - googling

emilaasa13:09:09

Currently I'm doing (require '[clojure.java.shell :refer [sh]]) but maybe that's the newbie way? 🙂

borkdude15:09:38

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

borkdude15:09:27

😎 14
😻 4
kokada20:09:27

Nice, updating the nixpkgs package

borkdude17:09:54

Special shout out to @grzm who did most of the work on integrating http://java.net.http.

🙏 18
2