Fork me on GitHub

Haven’t tested it yet, but saw you made a repo: . Does that mean I cannot use the original hato directly with babashka? @borkdude


Yes, you can use hato natively with bb now


We even test that on CI


The hato native project was just a way to check if it ran with Graal. It does but it yields a big binary. But now we include java net http so it runs from source


> We even test that on CI Could you hint me the code?


What about cheshire, hato relies on it for json


Cheshire is part of bb

👍 1

We should probably update


Another question, possible to run jsonista on bb? It complains``: Unable to resolve classname: jsonista.jackson.DateSerializer```


not possible

Martynas Maciulevičius10:07:27

Is it possible to get a list of supported packages that can be imported from babashka script? I was wondering that if I'll start using it I could avoid going into docs and finding how to import what I want to. Maybe CLI command could do that? Something like bb --list-included-packages What do you think? This could be accompanied by a link to the docs then :thinking_face:


What about:

bb -e '(run! prn (remove #(str/includes? % "impl") (map ns-name (all-ns))))'

Martynas Maciulevičius10:07:22

Nice. It gave me the packages. But can we have a short cli switch? I can't remember this a command. Then you could have it as part of the CLI help.

Martynas Maciulevičius10:07:48

Actually all-ns is already useful but I'll probably forget it.


Yeah, I think that would be useful

Martynas Maciulevičius10:07:41

It's not that I need it but I was just wondering.


It ties into this issue: I think bb could print a list of libraries it includes with links to their respective doc pages


There is also this page: But it may not be up to date. If you spot missing libs in there, please let me know

Martynas Maciulevičius10:07:32

Links to doc pages are findable from the library's package name. But you could then get bb version and find the possible imports this way too. Yeah, kind of low priority feature.


There is also bb print-deps


I bet you can write a script that goes through the deps information, finds the version control link and then spits out an HTML page :)


also, I want to make something like but for babashka. The clojure toolbox website code is already ported to babashka here: We should just fill it with content

Martynas Maciulevičius10:07:36

Clojars sometimes links to sources. I don't know if they have an API but it's probably easy to create a client-side script that would try to get the link for a JAR and open it. But then that probably can't be included into babashka.


I meant as a temporary workaround ;)

Martynas Maciulevičius11:07:21

I don't know if the JARs themselves carry the information where the source is located at. At least I don't add this to my local uberjars that I build. So then it either has to be a hand-maintained list or it has to come from a third party such as Clojars (because authors of the libraries put the links there and you don't need to maintain a list yourself). So yes, you could make a crawler but I'm not in a position where I know that you can crawl Clojars. You could do it but I don't know, maybe they could give you an API or something. This way your script could download the source links and make a webpage for you. :thinking_face: OR if you build the libraries yourself you could have a buildscript that includes the URL of the source.


This information is available in the pom file

Martynas Maciulevičius11:07:36

I don't know what we're talking about anymore 😄 I don't think that I want to compile that webpage myself if I freshly installed bb from an older repository just to find that I can't use malli for this specific version of babashka :thinking_face:


Here is an example for clj-kondo:

$ bb -e "(babashka.deps/add-deps '{:deps {clj-kondo/clj-kondo {:mvn/version \"2022.06.22\"}}})" -e "(require '[ :as io])" -e '(def xml (slurp (io/resource "META-INF/maven/clj-kondo/clj-kondo/pom.xml")))' -e '(second (re-find #"<url>(.*)</url>" xml))'


As I said, I'm talking about a workaround script in user space


so given print-deps output, you could combine it with the above to get to the github repo

Martynas Maciulevičius11:07:09

Nice. So that would solve your issue with the unknown links. This one: At least it could solve it temporarily. You could hardcode this command into CLI and then run it for all found JARs :thinking_face:


For a built-in one I would just curate the content myself manually. Just some ideas for a hack script in user space ;)


Dear babashka hackers! I've put up now which is a direct port of clojure toolbox! All we need now is PRs that take info from this page: to here:, before a more public announcement will be made. If you see anything worth mentioning on or elsewhere, PR away!

🎉 6
💯 2