Fork me on GitHub
#babashka
<
2022-03-09
>
mkvlr07:03:18

bb dev
WARNING: this project requires babashka 0.7.6 or newer, but you have: 0.6.5
did you consider making this exit with an error as well?

borkdude07:03:26

I guess a subset of things will still work and it will fail with the real cause when you hit the thing that the upgrade was needed for. I basically did what lein also did

craftybones07:03:08

Question. Let us say I wanted to parallelise git pulls in babashka across many directories, would you simply recommend a pmap or something else?

lispyclouds07:03:28

Im assuming youre gonna shell out to git, if yes I'd recommend starting the processes via babashka process and deref all of them in a doesq or something. since they are forks, they would run in parallel

craftybones07:03:47

Yo @U7ERLH6JX - been a while. 🙂

craftybones07:03:12

Yeah, I considered a doall

craftybones07:03:23

the pmap just saves some keystrokes that’s all 😄

lispyclouds07:03:24

pmap's chunking lazyness may bite you

craftybones07:03:58

I’ll wrap it in a doall

lispyclouds07:03:47

yeah it would work, for me this seems to be a bit overkill as the forks are parallel anyways 😄

lispyclouds08:03:46

helped someone(you may know him too 😛 ) with a similar problem a while back: https://gitlab.com/njoseph/babashka-scripts/-/blob/master/scripts/git.clj#L25

lispyclouds08:03:12

also i guess dorun would be better here if you don't care about the outputs

edannenberg10:03:02

if you are pulling from github you might get rate limited

mknoszlig16:03:03

i ran into a surprise when using the mysql pod: it installs without issue and locally works as expected, but on a different box i get Message: No suitable driver found for jdbc:mysql://… . The driver is installed as part of the pod i’m assuming?

borkdude16:03:27

the driver is part of the pod yes. what is the difference between local and the box?

mknoszlig16:03:12

osx vs linux

borkdude16:03:40

Well, the CI tests run linux too, but what kind of linux?

mknoszlig16:03:53

ubuntu 20.04 LTS, babashka 0.7.4 (vs 0.7.7 on osx)

mknoszlig16:03:09

weird indeed. guess i’ll have to dig some more, must be a mistake on my side somewhere - thanks :)

borkdude16:03:06

you're using the exact same code? maybe a port number that's wrong?

mknoszlig16:03:38

code is the same - the uri is read from a config file, and somehow this is where the problem occurs - if i substitute the uri into the code, the driver problem is gone

mknoszlig16:03:29

sorry for the noise %)

borkdude16:03:39

no problem :)

borkdude19:03:47

Ordered an M1 macbook air... when Graal supports M1, there will be an m1 binary for sure ;) (although hopefully, circleci will support compiling for m1 at some point)

lispyclouds19:03:25

would it be the new M1 ultra hyper super duper or something that was mentioned yesterday?

lispyclouds19:03:10

my work laptop was supposed to be switched to an M1 macbook pro too but now wanna wait for this one

borkdude20:03:14

no, m1 air

👍 1
borkdude20:03:53

I need a travel laptop (for vacations, conferences) and my air from 2015 isn't behaving well lately

borkdude20:03:28

also compiling babashka on it was a thing that I could still do in 2019 but nowadays it's so slow compared to my i9 2019

borkdude20:03:55

it's a bit unfortunate that I had to buy the november 2020 model but I've got a vacation coming up soon and there wasn't a refresher yesterday

borkdude20:03:02

and even then it may take a few months I guess

lilactown22:03:23

the m1 chip is so good

lilactown22:03:40

does Graal work using rosetta?

borkdude22:03:13

not yet, they are very close

Drew Verlee00:03:51

somewhat related question. Is there a reason to perfer mac (and its OS) over ubuntu and a custom build? Like do people feel support for software and drivers is better on mac?

Drew Verlee00:03:21

Cost wise, getting a mac always seems like a bad trade off for the raw specs you get. But maybe that's less then half the story.

Drew Verlee00:03:36

This is assuming you don't need a labtop, which i very rarely do.

borkdude08:03:47

@U4YGF4NGM eh yes, Graal + Rosetta works, I interpreted your question as: does Graal work on m1 natively, with that they are very close.

1
kokada10:03:00

Even being mostly a Linux/NixOS user I am kinda interested in the M1 Macs