Fork me on GitHub
#babashka
<
2023-03-16
>
Jakub Šťastný00:03:47

What does babashka uses for pretty-printing exceptions? I was trying to find it in Clojure and then noticed Clojure doesn't give me that. I mean this:

----- Error --------------------------------------------------------------------
Type:     java.lang.ArithmeticException
Message:  Divide by zero
Location: /Users/jakub/Documents/Projects/et/jkl.clj:1:1

----- Context ------------------------------------------------------------------
1: (/ 1 0)
   ^--- Divide by zero

----- Stack trace --------------------------------------------------------------
I caught an exception and what to pretty-print it like this (at least if the platforms is bb).

lispyclouds09:03:33

this is something built into bb. we can do these tricks from one of the facts that the code is interpreted not compiled like clojure/jvm 🙂

borkdude09:03:57

This code could be ported to the JVM as well and be published as a library, e.g. babashka.error

borkdude09:03:32

There is nothing that couldn't be done in JVM Clojure I think

borkdude09:03:31

I think exposing this as a library would also help improving this stuff, since there are some things I am not yet happy with, e.g. it should print the exception root message. So I'll give it a try

gratitude 6
borkdude10:03:04

It will probably not be this week though, but I am working on that part of the code as part of another issue so probably not too long

Jakub Šťastný13:03:28

Oh wow @U04V15CAJ if you could make that available, I'd be very grateful. It's really way more readable than CLJ default errors.

borkdude11:03:38

@pesterhazy @timok About babashka conf in Berlin, maybe...? 🧵

❤️ 8
👀 4
partyparrot 2
borkdude11:03:15

Maybe it could be a special edition of the Berlin Clojure Meetup with a talk about babashka and some other stuff: what are people doing with babashka in their company, etc?

pesterhazy11:03:21

Sounds great, I'd be happy to help make it happen

❤️ 2
pesterhazy11:03:50

We could use Pitch's office as a location

pesterhazy11:03:05

We're writing tons of babshka these days at Pitch so it makes a ton of sense

pesterhazy11:03:30

(Currently I'm doing TDD for bb scripts, and it's way better than I thought it would be)

lispyclouds12:03:04

also can do an in-person version of https://clojure.stream/workshops/babashka

4
borkdude12:03:48

yes, workshop + "keynote" (almost) 5 years of bb + some other bb-related talks

pesterhazy12:03:16

How much time? A full day maybe?

borkdude12:03:05

workshop 2 hours, keynote 40 minutes, several other 20-30 minute talks, I think this could easily be over half a day, maybe with lunch etc too. we could start late(r) if we can't fill up the day

borkdude12:03:26

we could also throw in lightning talks

💯 4
borkdude12:03:39

and a big break in between maybe too

💯 4
borkdude12:03:44

for socializing

lispyclouds12:03:00

sounds good! would be really excited for it! 😄

pesterhazy12:03:17

Sounds good. When are you guys free? May, June, something like that?

pesterhazy12:03:32

What should we call it? Berlin Babashka Day?

borkdude12:03:35

Either that, or just Babashka Conf maybe? :)

pesterhazy12:03:20

BabashkaConf is great

babashka 12
borkdude12:03:28

I think second half of May / first half of June would work for me

lispyclouds13:03:10

similar time for me should be good too, would be good to have a month or more of heads up though, 3rd world visa issues i have 😕

Jakub Šťastný13:03:18

That'd be great. Long way for me from Mexico though. Would it be at the time when I'm back seeing family I'd definitely love to come (although travelling in EU is prohibitively expensive for me, but I'd try, after all from CZ it's just a train ride to Berlin). Would that not be the case, I'd be very grateful would the videos be available online.

timo14:03:45

That would be great! @pesterhazy Happy to help organizing things. I am in Berlin.

👍 2
pesterhazy18:03:32

It's only 4.5h by train from Prague

Jakub Šťastný18:03:57

All good from Prague, the trick is to get from MX to Prague. 2 changeovers and a lot of $$$. I go every other year.

borkdude18:03:15

Come to the 2024 edition :)

👍 2
Jakub Šťastný18:03:51

I think I could make that year, yes. I hope so.

Jakub Šťastný18:03:46

Or you all come to MX 😉 It's warm, cheap and the food is great.

borkdude18:03:44

@pesterhazy Actually I have a thing end of May probably. So maybe first half of May is better or first half (second week) of June. End of July also works, no plans for August yet, But I guess many people will be with summer break etc.

ep20:03:09

Would love to attend. Third week of may is complicated due to the long holiday weekend (family trip already planned). There holidays on Monday the first couple of weeks I think. Otherwise, June is great. July / depends on week.

borkdude21:03:17

ClojureD was 11th of June last year. Maybe 10th of June 2023 (Saturday)?

👍 4
pesterhazy11:03:41

BabashkaConf in Berlin is being planned, in lieu of clojureD. Very exiting :-) We're now picking a date. Any reason why June 10, 2023 may not be optimal?

🎉 6
borkdude11:03:25

Note that there's always people who can't make it on a specific date, no matter what date you propose

borkdude11:03:58

But it would be good if it didn't co-incide with some other clojure conference (of which there are zero announced currently in Europe AFAIK)

pesterhazy11:03:46

Of course, or maybe it's World Cup or something silly like that

agata_anastazja (she/her)16:03:09

I am also in Berlin and I would love to help with organising

🎉 4
pesterhazy16:03:09

Great! I'll reach out off thread

lispyclouds17:03:50

well since everyone's here, @timok can @U2J6U9D1R reach out to you for berlin things? good friend of mine and would love some berlin-ness 😅

👍 2
borkdude17:03:42

We now have a #C04VAK5U86L channel for organisation chit chat :)

pesterhazy11:03:41

BabashkaConf in Berlin is being planned, in lieu of clojureD. Very exiting :-) We're now picking a date. Any reason why June 10, 2023 may not be optimal?

🎉 6