techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.6K
active users

#adventofcode

0 posts0 participants0 posts today
H@R0👨🏻‍💻<p>劍星打完三個結局,仍在白金路上,代碼同步繼續。今次換了 <a href="https://mastodon.social/tags/DeepSeekR1" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DeepSeekR1</span></a> 智能直線上升,2025年手敲代碼已經沒有意義了</p><p><a href="https://github.com/cosmoswafer/advent-of-code-2024/blob/main/src/bin/day10.rs" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/cosmoswafer/advent-</span><span class="invisible">of-code-2024/blob/main/src/bin/day10.rs</span></a></p><p><a href="https://mastodon.social/tags/AdventOfCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AdventOfCode</span></a> <a href="https://mastodon.social/tags/AdventOfCode2024" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AdventOfCode2024</span></a></p>
The Dupdob<p>I just completed all 25 days of Advent of Code 2015! <a href="https://piaille.fr/tags/AdventOfCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AdventOfCode</span></a> <a href="https://adventofcode.com/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">adventofcode.com/</span><span class="invisible"></span></a></p>
Lucomo<p>I presume that for people who use AI for private hobby programming projects the appeal of something like the Advent of Code is unfathomable?</p><p><a href="https://social.anoxinon.de/tags/Programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programming</span></a> <a href="https://social.anoxinon.de/tags/AdventOfCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AdventOfCode</span></a> <a href="https://social.anoxinon.de/tags/AI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AI</span></a> <a href="https://social.anoxinon.de/tags/Claude" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Claude</span></a> <a href="https://social.anoxinon.de/tags/ChatGPT" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ChatGPT</span></a> <a href="https://social.anoxinon.de/tags/CoPilot" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CoPilot</span></a></p>
magnetichuman<p>I just completed all 25 days of Advent of Code 2016! <a href="https://cupoftea.social/tags/AdventOfCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AdventOfCode</span></a> <a href="https://adventofcode.com/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">adventofcode.com/</span><span class="invisible"></span></a><br>Now on to 2017!</p>
Schrank :shopware: 🐘 (er/ihm)<p><span class="h-card" translate="no"><a href="https://phpc.social/@Crell" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>Crell</span></a></span> very good Point! I did that a while back while doing <a href="https://phpc.social/tags/adventOfCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>adventOfCode</span></a> <span class="h-card" translate="no"><a href="https://fosstodon.org/@dilawar" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>dilawar</span></a></span></p>
Carm<p>Finished Advent of Code 2024.</p><p>25 days of exercises, parts 1 and 2. Done over a period of 1.5 months, mostly on weekends.</p><p>In COBOL. </p><p>Was it worth it? 😅 </p><p>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!</p><p>So will I participate next year? 🤔 Which language? Fortran? 😄</p><p>My solutions (not very clean code! 🙈): <a href="https://github.com/caarmen/aoc" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/caarmen/aoc</span><span class="invisible"></span></a></p><p><a href="https://mastodon.social/tags/cobol" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cobol</span></a> <a href="https://mastodon.social/tags/adventofcode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>adventofcode</span></a> <a href="https://mastodon.social/tags/adventofcode2024" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>adventofcode2024</span></a></p>
Felipe Vogel<p>🎄 2015 day 6 of Advent of Code in Ruby:</p><p>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: <a href="https://www.reddit.com/r/adventofcode/comments/3vmltn/comment/cxp12nt" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">reddit.com/r/adventofcode/comm</span><span class="invisible">ents/3vmltn/comment/cxp12nt</span></a></p><p>I feel like I'm passing by whole other universes.</p><p><a href="https://ruby.social/tags/AdventOfCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AdventOfCode</span></a> <a href="https://ruby.social/tags/Ruby" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Ruby</span></a> <a href="https://ruby.social/tags/ProgrammingLanuages" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ProgrammingLanuages</span></a></p>
H@R0👨🏻‍💻<p>今次 <a href="https://mastodon.social/tags/Qwen3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Qwen3</span></a> 不行了,換了 <a href="https://mastodon.social/tags/Gemini25Flash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Gemini25Flash</span></a> 後瞬間秒殺 😂 因為這兩天一直在和伊芙玩所以進度慢了 😂 </p><p><a href="https://github.com/cosmoswafer/advent-of-code-2024/blob/main/src/bin/day9.rs" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/cosmoswafer/advent-</span><span class="invisible">of-code-2024/blob/main/src/bin/day9.rs</span></a></p><p><a href="https://mastodon.social/tags/adventofcode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>adventofcode</span></a> <a href="https://mastodon.social/tags/adventofcode2024" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>adventofcode2024</span></a></p>
Daniel Düsentrieb<p>One way to spend time instead of <a href="https://social.linux.pizza/tags/doomscrolling" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>doomscrolling</span></a> has recentlt been <a href="https://social.linux.pizza/tags/codewars" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>codewars</span></a></p><p>Bitesized problems of different difficulties for almost any language. </p><p>Not as big as <a href="https://social.linux.pizza/tags/adventofcode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>adventofcode</span></a>, so I can riddle along on my mobile device as well (and be forced to code without an lsp)</p><p><a href="https://www.codewars.com/dashboard" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">codewars.com/dashboard</span><span class="invisible"></span></a></p><p><a href="https://social.linux.pizza/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://social.linux.pizza/tags/code" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>code</span></a></p>
H@R0👨🏻‍💻<p>需要用到一點點數學,問題是不難的,今次Qwen3沒有跳步了,可以正常地用它將文字描述的邏輯寫成代碼,但是 <a href="https://mastodon.social/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> 在這裏變得不太好用了,例如那些usize的運算需要手動關注和修一修</p><p><a href="https://github.com/cosmoswafer/advent-of-code-2024/blob/main/src/bin/day8.rs" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/cosmoswafer/advent-</span><span class="invisible">of-code-2024/blob/main/src/bin/day8.rs</span></a></p><p><a href="https://mastodon.social/tags/AdventOfCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AdventOfCode</span></a> <a href="https://mastodon.social/tags/AdventOfCode2024" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AdventOfCode2024</span></a></p>
H@R0👨🏻‍💻<p>I just completed "Resonant Collinearity" - Day 8 - Advent of Code 2024 <a href="https://mastodon.social/tags/AdventOfCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AdventOfCode</span></a> <a href="https://adventofcode.com/2024/day/8" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">adventofcode.com/2024/day/8</span><span class="invisible"></span></a></p>
H@R0👨🏻‍💻<p>今次換成 <a href="https://mastodon.social/tags/Qwen3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Qwen3</span></a> 30b a3b 打算模疑用本地部署的方式使用AI,但它仍然會跳步直接完成答案,這題的邏輯不算複雜只是編寫代碼稍稍有點長,尤其是歷遍所有運算符的可能性,AI直接就給出了最優解 🤔 </p><p><a href="https://github.com/cosmoswafer/advent-of-code-2024/blob/main/src/bin/day7.rs" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/cosmoswafer/advent-</span><span class="invisible">of-code-2024/blob/main/src/bin/day7.rs</span></a></p><p><a href="https://mastodon.social/tags/adventofcode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>adventofcode</span></a> <a href="https://mastodon.social/tags/adventofcode2024" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>adventofcode2024</span></a></p>
H@R0👨🏻‍💻<p>直接模擬就能出答案,比較容易呢,今次用了 <a href="https://mastodon.social/tags/DeepSeekR1" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DeepSeekR1</span></a> 沒用 <a href="https://mastodon.social/tags/Qwen3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Qwen3</span></a> ,OpenRouter 上面的供應商都不太穩定,直接用DeepSeek官方API。這道題用Rust解似乎沒甚麼優點,多少會有一些runtime bug,part 1我遇到的是 usize 小於0會overflow,part 2則是搜尋過程有deadloop但沒注意。</p><p><a href="https://github.com/cosmoswafer/advent-of-code-2024/blob/main/src/bin/day6.rs" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/cosmoswafer/advent-</span><span class="invisible">of-code-2024/blob/main/src/bin/day6.rs</span></a></p><p><a href="https://mastodon.social/tags/adventofcode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>adventofcode</span></a> <a href="https://mastodon.social/tags/adventofcode2024" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>adventofcode2024</span></a></p>
Alavi | علوی<p>Today I spent a LOT of time solving AoC2024 day2 puzzle.</p><p>I solved it in three ways:<br />1. Javascript, just how I normally write it (somewhat functional programming)<br />2. A fully FP javascript solution<br />3. clojure solution</p><p>I realized some interesting things:<br />1. the functional programming js solution was very pretty and clean, and I think js is pretty good at FP. (I&#39;m just learning FP so maybe I&#39;m wrong) </p><p>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&#39;m much more used to js</p><p>3. The effective LOC of the functional solutions were almost half the LOC of the &quot;normal&quot; solution</p><p>Here are the solutions<br /><a href="https://github.com/alirezaalavi87/advent-of-code/tree/main/2024/day2" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/alirezaalavi87/adve</span><span class="invisible">nt-of-code/tree/main/2024/day2</span></a></p><p><a href="https://techhub.social/tags/adventofcode" class="mention hashtag" rel="tag">#<span>adventofcode</span></a> <a href="https://techhub.social/tags/javascript" class="mention hashtag" rel="tag">#<span>javascript</span></a> <a href="https://techhub.social/tags/clojure" class="mention hashtag" rel="tag">#<span>clojure</span></a> <a href="https://techhub.social/tags/functional_programming" class="mention hashtag" rel="tag">#<span>functional_programming</span></a></p>
Carm<p>A reminder that reading the docs can save time in the end. Who knew? 😅</p><p>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!</p><p><a href="https://medium.com/@ms.carmen.alvarez/advent-of-cobol-when-in-doubt-rtfm-2ce5571d36c2" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">medium.com/@ms.carmen.alvarez/</span><span class="invisible">advent-of-cobol-when-in-doubt-rtfm-2ce5571d36c2</span></a> </p><p><a href="https://mastodon.social/tags/adventofcode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>adventofcode</span></a> <a href="https://mastodon.social/tags/cobol" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cobol</span></a></p>
Alavi | علوی<p>I started Advent of Code 2024 because I wanted to learn <a href="https://techhub.social/tags/clojure" class="mention hashtag" rel="tag">#<span>clojure</span></a> so I thought I would solve these puzzles with it.</p><p>GODDAMNIT the puzzles are so hard I can&#39;t even solve the puzzles with <a href="https://techhub.social/tags/javascript" class="mention hashtag" rel="tag">#<span>javascript</span></a> that I&#39;m good at, let alone a language that I&#39;m just learning.</p><p><a href="https://techhub.social/tags/adventofcode" class="mention hashtag" rel="tag">#<span>adventofcode</span></a></p>
H@R0👨🏻‍💻<p>今次有點難度,Qwen3在解part1時直接就跳出答案了,但part2它出現嚴重的幻覺,有一部份代碼是手工輸入的。解題時我問了DeepSeek R1它說要用Topological Sorting,但我採用最笨的辦法重覆跑3次交換位置,雖然不是正確的解決但剛好能輸出答案 😂 </p><p><a href="https://github.com/cosmoswafer/advent-of-code-2024/blob/main/src/bin/day5.rs" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/cosmoswafer/advent-</span><span class="invisible">of-code-2024/blob/main/src/bin/day5.rs</span></a></p><p><a href="https://mastodon.social/tags/adventofcode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>adventofcode</span></a> <br><a href="https://mastodon.social/tags/adventofcode2024" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>adventofcode2024</span></a></p>
H@R0👨🏻‍💻<p>I just completed "Print Queue" - Day 5 - Advent of Code 2024 <a href="https://mastodon.social/tags/AdventOfCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AdventOfCode</span></a> <a href="https://adventofcode.com/2024/day/5" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">adventofcode.com/2024/day/5</span><span class="invisible"></span></a></p>
gerikson<p>I just completed all 25 days of Advent of Code 2019! <a href="https://mastodon.social/tags/AdventOfCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AdventOfCode</span></a> <a href="https://adventofcode.com/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">adventofcode.com/</span><span class="invisible"></span></a></p>
gerikson<p>I just completed "Many-Worlds Interpretation" - Day 18 - Advent of Code 2019 <a href="https://mastodon.social/tags/AdventOfCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AdventOfCode</span></a> <a href="https://adventofcode.com/2019/day/18" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">adventofcode.com/2019/day/18</span><span class="invisible"></span></a></p>