#typst is amazing for typsetting, but using it for other purposes is... interesting. I solved #AdventOfCode2024 day 12 in Typst and it ended up using 15GB of memory and took 90 seconds. (I did cheat mildly by increasing the maximum call depth in the compiler from 80 -> 1000)
https://github.com/funnyboy-roks/AdventOfCode/blob/2024-many/12-typst/one.typ

It took me until the end of August 2025, but I finally got done with a massive #AdventOfCode project: a SINGLE LINE of #Python that solves EVERY DAY of #AdventOfCode2024!

I call it "The Drakaina", after the Python of Greek mythology. Look, if you dare...

https://github.com/WinslowJosiah/adventofcode/blob/main/aoc/2024/drakaina.py

劍星打完三個結局,仍在白金路上,代碼同步繼續。今次換了 #DeepSeekR1 智能直線上升,2025年手敲代碼已經沒有意義了

https://github.com/cosmoswafer/advent-of-code-2024/blob/main/src/bin/day10.rs

#AdventOfCode #AdventOfCode2024

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! 🙈): https://github.com/caarmen/aoc

#cobol #adventofcode #adventofcode2024

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

https://github.com/cosmoswafer/advent-of-code-2024/blob/main/src/bin/day9.rs

#adventofcode #adventofcode2024

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

https://github.com/cosmoswafer/advent-of-code-2024/blob/main/src/bin/day8.rs

#AdventOfCode #AdventOfCode2024

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

https://github.com/cosmoswafer/advent-of-code-2024/blob/main/src/bin/day7.rs

#adventofcode #adventofcode2024

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

https://github.com/cosmoswafer/advent-of-code-2024/blob/main/src/bin/day6.rs

#adventofcode #adventofcode2024

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

https://github.com/cosmoswafer/advent-of-code-2024/blob/main/src/bin/day5.rs

#adventofcode
#adventofcode2024

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

https://github.com/cosmoswafer/advent-of-code-2024/blob/main/src/bin/day4.rs

#adventofcode #adventofcode2024