babashka

m3tti 2026-02-06T09:01:56.230009Z

is jline allready in mainline babashka?

borkdude 2026-02-06T09:26:31.712159Z

it's in the dev build from master:

bash <(curl )  --dev-build --dir .

./bb ...
Please try it out so we can see if there's missing functionality :)

🙌 1
m3tti 2026-02-06T10:10:09.599339Z

I will definetly do i have currently one new oportunity to add babashka 😉

m3tti 2026-02-06T10:10:33.905179Z

and i'm sorry that i'm quite quiet about all the stuff even borkweb but i have new ideas and to little time 😄

borkdude 2026-02-06T10:11:50.991209Z

it's your life, no obligations ;)

❤️ 3
Matt Ielusic 2026-02-06T16:36:37.060449Z

Hi! I have a library I want to add to my bb script, but it depends on clj-http And that depends on a JAR, Apache’s commons-codec , that is not in SCI Is there a way I can add all the dependencies I need to my script?

teodorlu 2026-02-06T16:54:04.119079Z

New Java classes can unfortunately not be loaded by Babashka at runtime. Therefore, commons-codec can't be added without changing Babashka itself. But there's a Babashka-compatible HTTP-client with an API very similar to clj-http: https://github.com/babashka/http-client/ I'd try using that!

Matt Ielusic 2026-02-06T16:54:45.002089Z

So I need to refactor the original library to use bb’s http client?

teodorlu 2026-02-06T16:55:07.567699Z

Ooh, not your library. Yes, if you go for babashka/http-client. And I don't see any other solution.

teodorlu 2026-02-06T16:55:11.621939Z

Is the library open source?

borkdude 2026-02-06T16:55:25.281709Z

Either that or you can mock clj-http's function calls in a fake namespace that calls bb.http-client or so?

💡 1
Matt Ielusic 2026-02-06T16:56:50.145279Z

No, it’s my library. I can edit it. But it’s used by several projects & trying to load a ns that depends on clj-http inside a babashka REPL throws (because the REPL tries to load the JAR that doesn’t exist).

borkdude 2026-02-06T16:57:57.741069Z

True. You can also use reader conditionals if you don't like to switch over callers of your lib to bb.http-client

borkdude 2026-02-06T16:58:20.117919Z

or a macro:

(defn if-bb [then else]
  (if (System/getProperty "babashka.version") then else))

Matt Ielusic 2026-02-06T17:01:36.204389Z

Thanks for all the help!