@prologic@twtxt.net Great now I can start using twtxt and reply.
@shreyan@twtxt.net What are you stuck on? 🤔
@jason@jasonsanta.xyz Yes it does ! 😁
literally cannot get past day one. what’s the trick?
@prologic@twtxt.net Does putting the hash in my reply work?
@jason@jasonsanta.xyz At the very least you can copy/paste the subject and hash in your reply 😆
@prologic@twtxt.net @xuu@txt.sour.is Don’t think I can reply to the thread in twtwt. Right now Jenny is not working for some reason. I wonder if @movq@www.uninformativ.de has any ideas. Anyway I am happy to be back and will see if I can get jenny working. Though my following list is gone now. Plus I can’t see when someone mentions me if I am not follwing them so I should work on that.
@jason@jasonsanta.xyz Welcome back buddy! 🤗
@jason@jasonsanta.xyz if you do see this.. Welcome back! 👋🏼
I am back on twtxt for now. I am using twtwt client. Don’t think that it does replies so I should try jenny with mutt again.
This day one advantage of code was pretty neat looking.
https://twitter.com/gereleth/status/1730495736070938786?s=09
Code here: https://github.com/gereleth/aoc_python/blob/main/src/year2023/day01vis.py
Ahh I see how someone did it.
https://github.com/immannino/advent-of-go/blob/master/cmd/2023.go#L30-L40
I could have made my search smarter using a prefix search rather than scanning the full buffer for each iteration.
@movq@www.uninformativ.de haha! I’m sure they had fun working around stuff like nineight
@movq@www.uninformativ.de Dang. Really going overboard with this!
@prologic@twtxt.net I didn’t have to do much backtracking. I parsed into an AST-ish table and then just needed some lookups.
The part 2 was pretty easy to work into the AST after.
https://git.sour.is/xuu/advent-of-code-2023/commit/c894853cbd08d5e5733dfa14f22b249d0fb7b06c
A little “visualization” / “progress bar” of day 3 part 2:
https://movq.de/v/6fc13f8ce1/MVI_6766.MOV.mp4
Running in a DOS box under OS/2 Warp 4, including some of OS/2’s silly sound effects. 🤣
@movq@www.uninformativ.de Hah 😅 Hmm 🤔 Yeah all I had to do in the 2nd part was store the YX coordinate of the Symbol for the part, then transpose all the parts into a map of SymbolYX -> Part(s)
Note that I call it YX
and not XY
because the usual way of dealing with this in code, is rows first, then columns, ro Y then X 😅
@prologic@twtxt.net Yours is more clever and cleaner, I think. 🤔 You were able to reuse more code for the second part. I, instead, wrote a different search logic for part 2. 😅
@movq@www.uninformativ.de Hah looks like your logic is quite similar to mine actually and we wrote similar amounts of lines of code 🤔
@movq@www.uninformativ.de Nice! 👌 But you still beat me 😆
@prologic@twtxt.net Oh boy, that’s too hot, I’m not gonna trade you. :-D
I messed up on the date. That’s the corrected link: https://lyse.isobeef.org/morgensonne-2023-12-03/
Did I write too much code again? 😅
I don’t know. 😅 My solution is rather long as well:
https://www.uninformativ.de/git/advent-of-code/file/2023/day03/s.c.html
Still happily runs on DOS.
@movq@www.uninformativ.de @prologic@twtxt.net At least my recent messages seem to still work then. :-) Thanks to both of you.
@lyse@lyse.isobeef.org Meanwhile we’re sitting outside in 28C 🥵 ‘Twas a top of 34 😱
Current #AdventOfCode #2023 Twtxt/Yarn Leaderboard
@movq@www.uninformativ.de I’m pretty sure it’s experience from doing past AoC puzzles 😅
@movq@www.uninformativ.de I don’t even think I notice 😅
@movq@www.uninformativ.de Yeah! Tell me about it. Grid searching, looking around, backtracking uggh I hate this stuff, this is why I’m not really a true Software Engineer, because in reality you almost never write this stuff yourself from scratch 🤣
@shreyan@twtxt.net Don’t worry, plenty of time to catch up 😅
@movq@www.uninformativ.de @taigrr@ndl.taigrr.com again, I dunno how you both beat me 🤣 But well done! 👏 Did I write too much code again? 😅
Day 3, Part 1 and Day 3, Part 2 of #AdventOfCode #2023 done 🥳 – My solution isn’t very efficient though 🤦♂️ But it’ll do 🤣
@prologic@twtxt.net now i just need to actually start solving the problems lol
@prologic@twtxt.net Oof, it’s already getting a bit tricky. 😬
Day 3 of #AdventOfCode puzzle 😅
Let’s go! 🤣
Come join us! 🤗
👋 Hey you Twtxters/Yarners 👋 Let’s get a Advent of Code leaderboard going!
Join with
1093404-315fafb8
and please use your usual Twtxt feed alias/name 👌
@lyse@lyse.isobeef.org All I can say is: My client didn’t report any errors. :-) (Does that mean anything? 😅)
@xuu@txt.sour.is Ah, you went with the “scanning” approach as well. I did that, too.
It’s quite surprising to see (imho) how many people on reddit started substituting strings (one
becomes 1
etc.). That makes the puzzle much harder by introducing nasty corner cases.
(Maybe I was just lucky this time to pick the correct approach right from the start. 🤣 Or maybe it’s a bit of experience from doing past AoC events …)
@xuu@txt.sour.is Interesting 🤔 I mean I only wrote ~3x more code, not too bad considering:
$ wc -l day2*.go
270 day2.go
69 day2_test.go
339 total
My code is here. https://git.sour.is/xuu/advent-of-code-2023
@xuu@txt.sour.is Yeah or in my case a lot of strings.TrimSpace()
and strings.Split()
because I hand-built a custom parser 🤣
Day 2 used lots of Cut and Split.
Oof. Its quite everywhere here in my area. Hope its not too bad there.
@lyse@lyse.isobeef.org Actually my wife and I are fine so far 🤞 Maybe we’ll get lucky and not catch the nasty shit™ ?! 🤣
@shreyan@twtxt.net Nice! 👌 Welcome! 🤗
joining the twtxt aoc leaderboard..
I rotated June to September into their own archive feeds. I hope I didn’t mess up. There’s still one or the other manual step involved. I should write a few tests and automate it fully. It might also be a good idea to write a validator program which can check all the feeds for consistency.
@prologic@twtxt.net Oh crap, hope you get well soon!
@movq@www.uninformativ.de Ta! Of course this happens after I got a second battery for the camera. Maybe I gotta have to bring it to a photo shop. Probably costs me a fortune.
Hope you all are doing well :)
@slashdot@feeds.twtxt.net BahahahahahahahHah