This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-17
Channels
- # aleph (57)
- # announcements (2)
- # babashka (11)
- # beginners (55)
- # calva (18)
- # cider (37)
- # clj-kondo (24)
- # clojure (18)
- # clojure-europe (80)
- # clojure-nl (2)
- # clojure-norway (22)
- # clojure-uk (7)
- # clojured (1)
- # clojurescript (24)
- # data-science (9)
- # datomic (45)
- # events (1)
- # gratitude (4)
- # humbleui (30)
- # hyperfiddle (7)
- # introduce-yourself (2)
- # malli (3)
- # missionary (12)
- # music (1)
- # off-topic (33)
- # re-frame (3)
- # reagent (11)
- # ring (24)
- # shadow-cljs (13)
- # sql (3)
- # tools-deps (4)
This is potentially the same answer as @markaddleman got yesterday, but I was hoping to use a bb
script to get some data from an API and spit it out in Excel format for our finance people, using dk.ative/docjure
, which is a Clojure wrapper around (and thus transitively includes) the Java Apache POI libs.
If bb
is closed for Java libs, I assume that's not going to work? I actually came here because I was getting an error about java.util.Calendar
not being found, and that's a class in Java core. I didn't realise any of that was excluded from bb
and came here to ask if there was any way to pull it in or something I should be doing differently to reference it. But even if I got that working I guess I would hit the same problem as Mark as soon as it tried to (:import (apache.poi ...))
@U6SUWNB9N There is a bb excel library. poi won't work. https://github.com/kbosompem/bb-excel
There's also #C029PTWD3HR which supports using any Node.js library, if you need the more light-weight fast-starting nature of bb. Else I'd just use the JVM
Maybe relevant, I played with the idea of starting a clj pod from babashka some time ago (https://github.com/jeroenvandijk/pod-babashka-clj). I didn't use it much in practise but I can see some use cases. The advantage over going for JVM only is that you sometimes can benefit from the fast startup time of Babashka. E.g. to validate input arguments or other parts that don't require the jvm lib.
Perhaps you could write to CSV? Excel can easily import CSV. That's what I usually do.