Fork me on GitHub
#babashka
<
2022-03-15
>
Daniel Amber08:03:16

Hey guy! made my first tutorial using Babashka… would love some feedback if there is any… especially from @borkdude 🙂 - Ignore the typo in the title I’ve sorted it :face_palm: https://www.youtube.com/watch?v=jm0RXmyjRJ8

🎉 7
babashka 4
borkdude09:03:13

I've watched the first part and it looks very very good to me, thank you so much! I'll finish watching the rest later this week.

Daniel Amber09:03:00

Thank you! Had an awesome time doing this one, Im just hoping all the info is accurate 🙂

borkdude09:03:23

@U02KYBC5WJY Could you also post this link in the #news-and-articles channel? 🙏

borkdude09:03:31

I finished watching already. Absolutely fantastic.

Daniel Amber09:03:55

Thanks so much man!

borkdude10:03:09

I noticed you restarted the REPL when you added a dependency. I usually also do that, but you can prevent that if you want by executing (babashka.deps/add-deps '{:deps ...})

borkdude10:03:54

If you want to make videos about other bb related topics: bb tasks might be cool. It's a Makefile-like replacement but for bb/clojure. Docs: https://book.babashka.org/#tasks

borkdude10:03:07

And then there's #nbb, a babashka-like environment but for Node.js

borkdude10:03:11

@U7761CJTS ^ it might be nice to know that stash got used in that video :)

woohoo 1
Daniel Amber10:03:52

@borkdude would you like to join in a video about nbb? 🙂

solf13:03:52

Petition to change name to babashaka 🙋

2
ordnungswidrig15:03:49

Is there an ical pod for babashka yet?

👀 1
borkdude15:03:55

what's that?

borkdude15:03:08

if it's the apple thing, you might be able to use #obb?

ordnungswidrig16:03:01

no, iCal the calendar format 😉

borkdude16:03:42

is this a binary or text format?

borkdude16:03:52

maybe not so hard to parse yourself?

borkdude16:03:30

I'm having thoughts lately to add instaparse to bb

borkdude16:03:40

so it can parse all kinds of thing as long as there is a grammar for it

ordnungswidrig16:03:37

It's plaint text and not that hard to parse but the semantics are tricky when it comes to timezones etc.

ordnungswidrig16:03:22

There is a nice library, ical4j so I may give creating a pod for it a spin.

borkdude16:03:27

you may also have some luck with #nbb btw https://www.npmjs.com/package/node-ical

ordnungswidrig07:03:57

I generally don't trust npm libs 😛 But it sounds like a good idea!

borkdude09:03:55

@U054UD60U nbb is pretty amazing. let me know what you think in #nbb

borkdude09:03:10

It's pretty fast too. On m1 it has a startup of only 100ms

ordnungswidrig12:03:08

Nice! I fell back to using ical4j with regular clojure as I wanted to merge calendars and ical4j supports that. But I might use node-ical when I need to actually inspect the event data! (However, reoccurring events are hard to parse manually)

Brandon Stubbs21:03:15

Hey, any pointers as to why I can’t use this dependency?

(deps/add-deps '{:deps {com.auth0/java-jwt {:mvn/version "3.19.0"}}})
(import com.auth0.jwt.algorithms.Algorithm)
;; Unable to resolve classname: com.auth0.jwt.algorithms.Algorithm
Or any other recommendations for RS256 JWT signing in BB ?

borkdude22:03:41

There is buddy pod here: https://github.com/babashka/pod-babashka-buddy but buddy.sign isn't included in there. If that is a solution to you, happy to receive a PR for it.

borkdude22:03:50

Else you could maybe try #nbb with e.g. https://github.com/auth0/node-jsonwebtoken

Brandon Stubbs22:03:35

Thanks, I started making the changes in pod-babashka-buddy but ran into BouncyCastle provider issues. Will have to have a bit more of a dig into it, something relating to Graal. Unfortunately I won’t be able to use #nbb with it as this is part of a large program that is already using some other pods and a large part of the ecosystem

Brandon Stubbs22:03:16

Let me give it a shot

borkdude22:03:34

or adding a reflection config. maybe you can post an issue / pr with what you did and what problems you encountered, if you get stuck

borkdude20:03:13

@U015Y1A1N8Y That's fantastic!!!

borkdude20:03:37

About the sign API, is there a reason to deviate from buddy's API?

Brandon Stubbs20:03:04

Yeah so using the keys api returns BouncyCastle object that run into the world of problems

Brandon Stubbs20:03:34

So that’s why I did it that way, just to ensure that everything to do with bouncy castle stays in the pod

Brandon Stubbs20:03:42

The buddy.core.keys/private-key returns org.bouncycastle.jcajce.provider.asymmetric.rsa.BCRSAPrivateCrtKey for an RSA PEM

Brandon Stubbs20:03:21

I have to pop out - will back back in 2 or 3 hours