This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-30
Channels
- # announcements (12)
- # babashka (25)
- # biff (30)
- # cherry (34)
- # cider (46)
- # clj-kondo (23)
- # clojure (37)
- # clojure-berlin (6)
- # clojure-europe (12)
- # clojure-nl (4)
- # clojure-norway (6)
- # clojure-uk (2)
- # clojurescript (8)
- # conjure (1)
- # cursive (4)
- # data-science (11)
- # datalevin (12)
- # datascript (15)
- # emacs (2)
- # events (1)
- # fulcro (14)
- # graalvm (16)
- # gratitude (23)
- # honeysql (11)
- # jobs (2)
- # jobs-discuss (14)
- # kaocha (1)
- # leiningen (8)
- # nbb (45)
- # off-topic (7)
- # portal (8)
- # re-frame (9)
- # releases (2)
- # shadow-cljs (24)
- # squint (5)
- # tools-build (17)
- # tools-deps (7)
- # vim (5)
we have ended up with untracked .clj-kondo/babashka/
folder. Should this be added to gitignore?
this is probably a stupid question, but can you use an arbitrary jar in babashka?
add it to deps and have it work
(add it to the classpath?)
is there a specific place in a manual or a blog post or something that outlines the limitations of the JVM babashka starts up? I've sort of tried to answer it for myself a couple times, but i keep getting distracted by not finding it relatively easily, and going back to just getting stuff done.
suppose i start a babashka process with an arbitrary jar on the classpath (as mentioned earlier) - what can it not do that you would expect from a "normal' jvm?
is this question about jars and classpaths, or is it about language support differences between bb and clojure?
jars and classpaths; basically, we have a jar that does an operation, and I was thinking about whether i could write a babashka script to wrap and automate it.
I'm trying to build a mental model for what is possible with Babashka, basically.
but there are some limitations to the kinds of clojure code that bb can execute and what clojure can do. Here are the differences: https://book.babashka.org/#differences-with-clojure
actually, i think it is this line: • A pre-selected set of Java classes are supported. You cannot add Java classes at runtime. which most confuses me. Given what you said above about using java jars, could you add more detail on how to interpret this bullet?
is this combined with your statement basically saying that you can have a jar on the classpath, but you can't alter the classloader/dynamically add a generated class the way you could in a raw clojure program?
a jar is basically just a zip file that contains resources. it doesn't matter if these resources come in a jar file or are read from a directory: this is just a file format. jar isn't that interesting.
you can add clojure sources dynamically to the classpath, but adding Java classes has no impact on bb whatsoever, since Java classes need to be built into bb
so our jar that contains a set of java classes?
we'd have to build a custom version of bb to use it?