Fork me on GitHub
#babashka
<
2022-08-07
>
jmglov12:08:49

OMG I got https://github.com/jmglov/blambda working with a deps layer. I shall blog about it later, but it was a fun rabbit hole to go down! 😉

🎉 2
Karol Wójcik13:08:08

I went the same route. I think it would be probably easier to use bb uberjar to pack deps and then use -cp on the bootstrap phase ;)

jmglov14:08:22

Ooh, good idea! I looked at Holy Lambda quite a bit to get some ideas on the tricky bits. I’ll probably just straight up copy your hacks.clj. 😉

Karol Wójcik14:08:38

Sure, go for it!

Karol Wójcik14:08:59

Btw, wouldn't you like more to join forces?

jmglov14:08:29

Yes and no. 😉

jmglov14:08:01

Our goals are different, I would say. I'm mainly trying to learn how everything works and get something simple that works for my use cases. Holy Lambda looks more like an honest to goodness production ready system.

jmglov14:08:17

There's also my Docker allergy. 😉

jmglov14:08:03

But yes, I'd definitely like to join forces in the sense of sharing info about how we solved problems with Babashka.

👍 1
jmglov14:08:05

I'm still in the "move fast and break things but it's OK because I'm my only user" stage, so I'll probably rethink this once I accomplish my basic goals of having some lambdas working.

👍 1
Karol Wójcik18:08:32

Oh yes, got you point. I’m moving all parts of babashka backend away from docker when I add option for pods download with different architecture directly in BB.

jmglov20:08:01

Ooh, sounds nice!

rads17:08:22

$ bb
Babashka v0.9.161 REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.

user=> (require '[taoensso.timbre :as log])
nil
user=> (log/set-config! {:min-level :info})
Could not resolve symbol: log/set-config! [at <repl>]
Is taoensso.timbre/set-config! not available or am I missing something here?

rads17:08:06

Got it, thanks! I'll create an issue for this

lread19:08:07

FWIW, I’m currently doing https://github.com/clj-commons/etaoin/blob/a89c9a3ad1cfc6c5e0206c69ff0936ce51d139ce/script/bb_test_runner.clj#L5-L6:

;; default log level for bb is debug, change it to info
(alter-var-root #'taoensso.timbre/*config* #(assoc % :min-level :info))

lread17:08:26

Tagental, but related, is the default logging level really debug? Should it maybe be info?

borkdude17:08:23

The default is whatever timbre has as the default I think