Fork me on GitHub
#babashka
<
2021-11-09
>
joelkuiper08:11:46

Is it possible to use uberscript with pods? The pods are loaded dynamically so I don't think so, but I might be overlooking something!

borkdude09:11:32

Hey! Currently the uberscript stumbles over those pod namespaces since they don't exist on disk. I have a branch of bb where this should be fixed, but it isn't released yet...

borkdude09:11:54

You could also consider making an uberjar, depends on what you want to do

borkdude09:11:52

If you want I can give you access to the fixed binary, I'm looking for testers :)

joelkuiper11:11:25

I'd be happy to test! I'm trying to use the postgresql pod for some script that is deployed inside Docker, I would like that Docker image to not contain the jre to save disk space, but I guess building an uberjar also works, so I can use the distroless base image

borkdude11:11:29

yeah uberjar would also work for that case. however, I would like to have this uberscript thing fixed as well. for which OS would you like to have the fixed bb?

joelkuiper11:11:48

(although probably not the distroless base image, since it would still depend on some other dependencies, still could save some other disk space)

borkdude11:11:05

you can look for this yourself in #babashka-circleci-builds for uberscript-in-bb

borkdude11:11:14

I just updated that branch so there are binaries there now

joelkuiper11:11:38

(I'm testing on MacOS Intel right now btw)

joelkuiper11:11:48

but I'll try in Docker / debian should also be fine

joelkuiper11:11:28

thanks, I'll check it out!

hugod12:11:03

Can you require pods in bb.edn?

borkdude13:11:49

@hugod not yet, it's best to just put the load-pod in a file and use load-file or require in bb.edn

mmz13:11:17

8 years ago my interest in Clojure was triggered by the "Structure and Interpretation of Computer Programs" (SICP) course. https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/ For me, the hurdles were quite big to really focus on the main ideas in this course. The IDE's didn't have great Clojure support (yet), I didn't work with emacs (yet), the error messages 'left room for improvement', and I was pretty much hypnotised by the OO mindset. Nowadays with babashka it's soooo easy to try these ideas immediately, without any other fluff in a REPL. No setup, no conventions or configuration, no namespaces, nothing. Create a file, start a REPL and start coding along. 🤓 For me, translating the Scheme code to Clojure also helps in getting a deeper understanding of both SICP and Clojure. Big thanks to @borkdude for making the Clojure and REPL experience almost frictionless. :thumbsup::skin-tone-3:

❤️ 4
💯 3
amar14:11:36

I agree. I've been encouraging my nephew (2nd grade) to check his math homework using bb. I think it might be a good way to learn things even for ClojureBridge. I've volunteered at a couple of them and spending Friday night installing software is not the most fun. Clojure CLI tools have made this easier but you still have to make sure the JVM is available. bb is frictionless.

babashka 2
David Pham14:11:52

In the same manner, maybe nbb and scittle are worth checking: making nice website and document is a wonderful creative feeling :)

💡 1