#adventOfCode

Just think, in another six months, we'll be celebrating the end of #AdventOfCode 2025! We love you Eric <3

2025-06-15

Finished Advent of Code 2024.

25 days of exercises, parts 1 and 2. Done over a period of 1.5 months, mostly on weekends.

In COBOL.

Was it worth it? 😅

Some exercises were tough! Some took several days. I wasn't sure I'd be able to complete it. The subreddit was helpful for those days!

So will I participate next year? 🤔 Which language? Fortran? 😄

My solutions (not very clean code! 🙈): github.com/caarmen/aoc

2025-06-13

🎄 2015 day 6 of Advent of Code in Ruby:

Amazing. A code golf solution in Ruby is twice as long as a solution that wasn't even intended to be golf, in the K language: reddit.com/r/adventofcode/comm

I feel like I'm passing by whole other universes.

#AdventOfCode #Ruby #ProgrammingLanuages

H@R0👨🏻‍💻quetalocatl
2025-06-06

今次 不行了,換了 後瞬間秒殺 😂 因為這兩天一直在和伊芙玩所以進度慢了 😂

github.com/cosmoswafer/advent-

shnarazk :rust: :nixos: 🎄shnarazk@functional.cafe
2025-06-06

Solved several #AdventOfCode problems in #Swift. Time for a break. Or to get back to some pending tasks.

2025-06-05

One way to spend time instead of #doomscrolling has recentlt been #codewars

Bitesized problems of different difficulties for almost any language.

Not as big as #adventofcode, so I can riddle along on my mobile device as well (and be forced to code without an lsp)

codewars.com/dashboard

#programming #code

H@R0👨🏻‍💻quetalocatl
2025-06-03

需要用到一點點數學,問題是不難的,今次Qwen3沒有跳步了,可以正常地用它將文字描述的邏輯寫成代碼,但是 在這裏變得不太好用了,例如那些usize的運算需要手動關注和修一修

github.com/cosmoswafer/advent-

H@R0👨🏻‍💻quetalocatl
2025-06-03

I just completed "Resonant Collinearity" - Day 8 - Advent of Code 2024 adventofcode.com/2024/day/8

H@R0👨🏻‍💻quetalocatl
2025-06-02

今次換成 30b a3b 打算模疑用本地部署的方式使用AI,但它仍然會跳步直接完成答案,這題的邏輯不算複雜只是編寫代碼稍稍有點長,尤其是歷遍所有運算符的可能性,AI直接就給出了最優解 🤔

github.com/cosmoswafer/advent-

H@R0👨🏻‍💻quetalocatl
2025-06-01

直接模擬就能出答案,比較容易呢,今次用了 沒用 ,OpenRouter 上面的供應商都不太穩定,直接用DeepSeek官方API。這道題用Rust解似乎沒甚麼優點,多少會有一些runtime bug,part 1我遇到的是 usize 小於0會overflow,part 2則是搜尋過程有deadloop但沒注意。

github.com/cosmoswafer/advent-

Alavi | علویalavi@techhub.social
2025-05-30

Today I spent a LOT of time solving AoC2024 day2 puzzle.

I solved it in three ways:
1. Javascript, just how I normally write it (somewhat functional programming)
2. A fully FP javascript solution
3. clojure solution

I realized some interesting things:
1. the functional programming js solution was very pretty and clean, and I think js is pretty good at FP. (I'm just learning FP so maybe I'm wrong)

2. the effective LOC of both clojure and js solution were exactly the same, and I think in the cleanliness and readability department they are very similar. But maybe that is because I'm much more used to js

3. The effective LOC of the functional solutions were almost half the LOC of the "normal" solution

Here are the solutions
github.com/alirezaalavi87/adve

#adventofcode #javascript #clojure #functional_programming

2025-05-30

A reminder that reading the docs can save time in the end. Who knew? 😅

Here's a little writeup of an adventure I had with Advent of Code, realizing after a few days of debugging and imposter syndrome that no, I don't need to implement an XOR function, it exists in the language. 😁 Also learned a thing or two about COBOL in the process!

medium.com/@ms.carmen.alvarez/

Alavi | علویalavi@techhub.social
2025-05-30

I started Advent of Code 2024 because I wanted to learn #clojure so I thought I would solve these puzzles with it.

GODDAMNIT the puzzles are so hard I can't even solve the puzzles with #javascript that I'm good at, let alone a language that I'm just learning.

#adventofcode

H@R0👨🏻‍💻quetalocatl
2025-05-30

今次有點難度,Qwen3在解part1時直接就跳出答案了,但part2它出現嚴重的幻覺,有一部份代碼是手工輸入的。解題時我問了DeepSeek R1它說要用Topological Sorting,但我採用最笨的辦法重覆跑3次交換位置,雖然不是正確的解決但剛好能輸出答案 😂

github.com/cosmoswafer/advent-


H@R0👨🏻‍💻quetalocatl
2025-05-30

I just completed "Print Queue" - Day 5 - Advent of Code 2024 adventofcode.com/2024/day/5

geriksongerikson
2025-05-29

I just completed all 25 days of Advent of Code 2019! adventofcode.com/

geriksongerikson
2025-05-29

I just completed "Many-Worlds Interpretation" - Day 18 - Advent of Code 2019 adventofcode.com/2019/day/18

H@R0👨🏻‍💻quetalocatl
2025-05-28

第4題開始加難度的,今次AI沒有自動波解題,所以不確定是否最優解,可以再研究一下是否能優化

github.com/cosmoswafer/advent-

H@R0👨🏻‍💻quetalocatl
2025-05-28

I just completed "Ceres Search" - Day 4 - Advent of Code 2024 adventofcode.com/2024/day/4

H@R0👨🏻‍💻quetalocatl
2025-05-28

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst