clj-yaml

borkdude 2022-09-21T10:54:04.149029Z

@lee https://www.youtube.com/watch?v=0IA3ZvCkRkQ! It looks like your PR was merged (and our hunch that starting with an issue + PR and not using many words was the right approach for this maintainer!)

🚀 2
🎉 1
grzm 2022-09-21T11:10:58.295609Z

(Though I'm more of a https://www.youtube.com/watch?v=23YkC7Gx1Y4 kinda guy)

grzm 2022-09-21T11:12:00.864019Z

And I needed some of those words to clarify what the actual narrow issue in this case actually was 😛

borkdude 2022-09-21T11:14:33.589869Z

I think it all helped (except my blunt remarks at the start)

grzm 2022-09-21T11:32:13.456209Z

pats @borkdude on the shoulder. YAML is infuriating/crazy-making.

lread 2022-09-21T11:57:12.983019Z

https://youtu.be/Gcm-tOGiva0

😆 2
lread 2022-09-21T11:57:25.496429Z

Glad it worked out!

lread 2022-09-21T11:58:59.823919Z

It really looked like something different at the start. And finding the root cause made the change make more sense.

lread 2022-09-21T12:07:56.177649Z

Also thanks for the idea of how to approach submitting the PR/issue @borkdude, I think it really helped.

borkdude 2022-09-21T10:55:21.583829Z

https://bitbucket.org/snakeyaml/snakeyaml/wiki/Changes

borkdude 2022-09-21T11:02:37.213489Z

SnakeYAML is normally released twice a year: August and February
laughsob

grzm 2022-09-21T11:13:45.592419Z

I can respect that. Helps pace the project, you know you get regular updates, keeps the maintainers on track while letting them work on other stuff too. I mean, would you want to worry about YAML 100% of the time?

borkdude 2022-09-21T11:17:24.383799Z

Yeah but I think it makes sense to host our own fork meanwhile on Clojars

borkdude 2022-09-21T11:17:42.189969Z

To undo the churn caused by those frequent updates hehe

borkdude 2022-09-21T11:21:25.131109Z

Ah it seems we might be getting it sooner than expected :)

grzm 2022-09-21T11:31:07.596459Z

Awesome sauce!

borkdude 2022-09-21T11:38:20.216199Z

> I can respect that. Don't get me wrong, I respect that too, I was just lol-sobbing because we just missed the last release window

borkdude 2022-09-21T11:38:31.859939Z

I wonder what the remaining issue is that Andrey is referring to

lread 2022-09-21T11:59:30.909159Z

I don't know, hope he lets us know!

borkdude 2022-09-21T12:18:53.837979Z

He replied and is on it. I'm starting to like this guy

lread 2022-09-21T12:40:14.116199Z

He had me at YAML

🤣 1
lread 2022-09-21T14:38:33.315109Z

Trying to give back to Andrey a bit https://bitbucket.org/snakeyaml/snakeyaml/issues/555/snakeyaml-github-actions-failing-for-jdk7.

borkdude 2022-09-21T14:39:30.392189Z

That is very kind of you. You rule!

👑 2
borkdude 2022-09-21T14:42:19.597449Z

Btw, I've been wondering, is there a similar "datetime" problem with what gets emitted for 1.1 and read by 1.2?

borkdude 2022-09-21T14:42:27.233279Z

🐰

lread 2022-09-21T14:45:03.568879Z

Ya, Andrey hinted at that… I wonder. So YAML 1.1 supports timestamps but YAML 1.2 does not…

lread 2022-09-21T14:45:23.091699Z

that’s right, I think?

borkdude 2022-09-21T14:48:16.740929Z

$ bb -e '(yaml/generate-string {:foo #inst "2022-09-09"})'
"{foo: !!timestamp '2022-09-09T00:00:00Z'}\n"

borkdude 2022-09-21T14:48:55.030009Z

dunno what's up with this, but if nobody hits that problem, I guess it's fine

lread 2022-09-21T14:50:32.093749Z

Also:

❯ bb -e '(yaml/parse-string "foo: 2022-09-09")'
#ordered/map ([:foo #inst "2022-09-09T00:00:00.000-00:00"])

lread 2022-09-21T14:51:48.270329Z

Weird:

❯ bb -e '(yaml/parse-string "foo: 2022-40-40")'  
#ordered/map ([:foo #inst "2025-05-10T00:00:00.000-00:00"])

lread 2022-09-21T14:52:16.768699Z

I guess we can address if something comes up.

borkdude 2022-09-21T14:52:26.202499Z

if it looks like a date, it quacks like a date

🤔 1
lread 2022-09-21T14:52:57.030769Z

It’s a date alright, but all quacked up.

borkdude 2022-09-21T14:53:51.167519Z

at least a date string doesn't get emitted like an un-quoted thing, right? <insert meme of boy and girl where girl says "right?" second time and boy looks frustrated>

lread 2022-09-21T14:54:16.019819Z

Ya was thinking same.

borkdude 2022-09-21T14:54:50.247709Z

might be good to double check with 1.3.32

borkdude 2022-09-21T14:54:54.045609Z

1.32 I mean

borkdude 2022-09-21T14:55:23.914219Z

or wait, that was already in bb ;)

borkdude 2022-09-21T14:55:29.693899Z

<confused/>

lread 2022-09-21T14:55:40.341719Z

Blame one of the other borks.

borkdude 2022-09-21T14:55:49.092879Z

will do

lread 2022-09-21T14:56:54.657839Z

I’m a YAML newbie. Maybe @grzm can think of a yaml 1.1 vs 1.2 timestamp issue?

grzm 2022-09-21T14:58:08.815469Z

I'm a YAML agnostic.

😆 2
grzm 2022-09-21T15:02:50.372329Z

I didn't even know YAML attempted to do anything with timestamps. I also didn't know there were such crazy subtle gotchas between versions

borkdude 2022-09-21T15:03:37.283719Z

but now you do right? so are you still an agnostic or do you BELIEVE THAT YAML HELL IS FOR REAL 🔥

grzm 2022-09-21T15:05:43.241439Z

Pascal’s YAML’s Wager?

borkdude 2022-09-21T15:06:13.068069Z

I was thinking of that one too ;)

🧠 1
borkdude 2022-09-21T15:09:31.062699Z

It's like an index fund right

lread 2022-09-21T15:09:34.335039Z

Wasn’t it Sartre that claimed Hell is YAML?

😆 1
borkdude 2022-09-21T15:09:36.215609Z

kinda

borkdude 2022-09-21T15:09:50.030169Z

Hell is other people's Clojure or just YAML in general

1
borkdude 2022-09-21T16:00:15.774069Z

Btw folks, I was just making lame jokes, I hope I didn't offend anyone. I love other's people's clojure.

❤️ 2
grzm 2022-09-21T17:31:37.993389Z

I love @lee ‘s Java, both because I think it was an elegant, concise solution and that I didn't have to write it :)

borkdude 2022-09-21T17:33:47.461179Z

Yeah. Andrey did some minor edits I see here: https://bitbucket.org/snakeyaml/snakeyaml/commits/1962a437263348c3b90857cda4bbfa2bd97908f8

grzm 2022-09-21T17:33:47.532999Z

And now I realize @borkdude ‘s projects are really just his way of making our Clojure is more like his 😜

lread 2022-09-21T17:34:15.710729Z

Thanks @grzm! It took me a some time to figure out where to inject my, uh, masterpiece. I used to write Java for a living. I almost forgot how!

💯 1
lread 2022-09-21T17:36:02.402789Z

Yeah I think his edits are good, his naming is probably clearer. I was surprised he made so few changes. I was wondering if he’d be ok with that regex as I don’t think he uses regexes otherwise in that area of his code.

borkdude 2022-09-21T17:36:44.564389Z

O wait. Snake... YAML.. 👿

borkdude 2022-09-21T17:36:53.158319Z

🐍

borkdude 2022-09-21T17:37:03.832269Z

🍎

grzm 2022-09-21T17:37:04.729089Z

It matched exactly what I was hoping to do, but hadn't yet done the research of where or whether it was feasible in the codebsse

grzm 2022-09-21T17:37:36.168319Z

So, thanks :)

lread 2022-09-21T17:37:45.548739Z

My pleasure!

borkdude 2022-09-21T17:37:54.821679Z

I think the only thing left to do is wrap up your PR @grzm - by the time we finish that, Andrey will probably have published 1.33

👍 1
lread 2022-09-21T17:38:30.041489Z

So is the snake in snakeyaml from the garden of eden @borkdude?

😆 1
grzm 2022-09-21T17:38:31.681179Z

The codebsse is pretty logical from what I saw.

lread 2022-09-21T17:39:04.551129Z

Yeah but so many types, eh?

grzm 2022-09-21T17:40:26.545069Z

Yeah, but understandable. And it's Java

borkdude 2022-09-21T17:40:52.054209Z

@lee Well, definitely not the garden of .edn 🥁

🥇 1
😆 1
lread 2022-09-21T17:41:06.487849Z

Ooooo! Noice!

lread 2022-09-21T17:41:52.090979Z

Yeah @grzm, the “types” thing was just me trying to be witty! simple_smile I found my way around without too much difficulty.

👍 1
lread 2022-09-21T17:45:43.861239Z

More people should join this channel, they would come for the YAML but stay for the excellent jokes.

grzm 2022-09-21T17:46:43.898129Z

I thought YAML was the joke.

borkdude 2022-09-21T17:47:51.001489Z

I couldn't help myself. I think I reached my lame joke climax today https://twitter.com/borkdude/status/1572643607324069888

borkdude 2022-09-21T17:49:03.812249Z

I ask for forgiveness and hope tomorrow is a better day

😆 1
grzm 2022-09-21T17:50:05.283199Z

Repent, and sin no more.

🙏 1
borkdude 2022-09-21T18:01:05.296679Z

One more idea though: a SnakeYAML PR which turns everything from camelCase to snake_case... Might be a good 1 April prank ;)

borkdude 2022-09-21T18:01:39.901719Z

ouch... https://twitter.com/ybaroj/status/1572646993419468800

lread 2022-09-21T20:22:46.608779Z

I think Andrey’s opinion was that https://github.com/spring-projects/spring-boot/issues/32221#issuecomment-1237882892.

borkdude 2022-09-21T20:39:12.830049Z

This is encouraging: https://github.com/spring-projects/spring-boot/issues/32221#issuecomment-1238021832

lread 2022-09-21T20:40:59.352209Z

Yeah saw that, he seems to have taken quite a few hits of late and is shown to be generally trying to help out there!

borkdude 2022-09-21T20:41:28.447839Z

Yeah, agreed

lread 2022-09-21T20:43:15.968289Z

I mean it doesn’t take much negative energy for me to say, “blech, maybe not”, when trying to help out. Looks like he has some real tenacity.

lread 2022-09-21T20:45:25.883349Z

https://github.com/spring-projects/spring-boot/pull/32464/files might be worth studying someday.

lread 2022-09-21T20:46:15.488359Z

I mean… like… if we were really into YAML or something…

borkdude 2022-09-21T20:47:28.104889Z

I was just going to post that link and was going to say almost the exact same thing as you, but then I thought: ah well, lread has already done something similar, I guess ;)

lread 2022-09-21T20:48:42.724969Z

I dunno about that… but I think our solution (snakeyaml numberish PR) might be better for us at this point in time… based on what we currently understand… or don’t understand…

borkdude 2022-09-21T20:56:05.749279Z

yes, as long as things just keep working and we can stay ignorant of any edge cases, this seems best

👍 1
borkdude 2022-09-21T20:56:27.189229Z

in the comfortable dream world between YAML hell and EDN heaven

lread 2022-09-21T20:57:11.711529Z

it’s trippy… I can’t feel my hands… where am I?

borkdude 2022-09-21T20:58:11.565149Z

your hands are numb of whitespace indentation lread, take a break

borkdude 2022-09-21T20:59:48.047289Z

https://www.youtube.com/watch?v=_FrOQC-zEog

lread 2022-09-21T21:00:00.969379Z

beat me to it!

slipset 2022-09-21T15:04:34.240619Z

@lee and @grzm I get a really warm, fuzzy feeling for how you’ve handled this issue vis a vis the SnakeYAML maintainer. I really feel you’ve represented the Clojure community in the best way possible!

grzm 2022-09-21T15:10:24.825499Z

Thanks. I think the community does a great job of attracting great people and reinforcing great, productive behavior. I'm happy to be a part of it!

❤️ 1
lread 2022-09-21T15:14:41.172039Z

Yeah, the Clojure community sets a good example. I reinforces treating others with equanimity and respect. Which seems like a simple thing, right? But maybe not so easy for everyone?

❤️ 2
borkdude 2022-09-21T15:04:56.134219Z

I agree