Fork me on GitHub
#babashka
<
2022-05-12
>
michael zhou03:05:23

Hello, want to know someone have tried to use bb and edn to create automation install software script like ansible and its yaml playbook.

Bob B03:05:50

<https://epiccastle.io/spire/> might be in the ballpark of what you're looking for (available from clojure or a babashka pod)

michael zhou06:05:58

@U013JFLRFS8 thanks. will try spire.

borkdude16:05:47

As promised a while back, here are the babashka Q1 2022 survey results! https://blog.michielborkent.nl/babashka-survey-q1-2022.html

😎 2
babashka 3
👍 2
dominic18:05:04

Hi! I’m getting an error “Method schedule on class java.util.concurrent.Executors$DelegatedScheduledExecutorService not allowed!” on a piece of code that seems to work fine on the JVM - I’m guessing I’m just hitting a limit of what Babashka can do?https://github.com/babashka/babashka/blob/master/src/babashka/impl/classes.clj#L397 but I guess that doesn’t mean all of it is accessible? This isn’t anything critical, just trying to get my head around the “Java interop” bit of Babashka 😄

1
🎉 1
borkdude18:05:29

This can be fixed

borkdude18:05:49

Can you make an issue + repro?

dominic18:05:48

is this a bug or a feature request? 😅

dominic18:05:06

I’m actually quite a few versions behind I’ve realised so I’ll try to repro on latest babashka first

dominic19:05:17

Ah great thanks! For now I’m getting away with putting a Thread/sleep inside a future and using future-cancel 😅

dominic19:05:17

Ah makes sense, so even though Executors is included, newSingleThreadScheduledExecutor is returning an instance of DelegatedScheduledExecutorService which isn’t in that list.