惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

F
Full Disclosure
WordPress大学
WordPress大学
小众软件
小众软件
Cloudbric
Cloudbric
AWS News Blog
AWS News Blog
腾讯CDC
量子位
人人都是产品经理
人人都是产品经理
大猫的无限游戏
大猫的无限游戏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Vulnerabilities – Threatpost
Scott Helme
Scott Helme
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
C
CXSECURITY Database RSS Feed - CXSecurity.com
The Hacker News
The Hacker News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
IT之家
IT之家
Jina AI
Jina AI
Attack and Defense Labs
Attack and Defense Labs
S
SegmentFault 最新的问题
Simon Willison's Weblog
Simon Willison's Weblog
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
Google Online Security Blog
Google Online Security Blog
美团技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog
罗磊的独立博客
L
LINUX DO - 最新话题
博客园 - Franky
博客园 - 叶小钗
Apple Machine Learning Research
Apple Machine Learning Research
The Last Watchdog
The Last Watchdog
J
Java Code Geeks
AI
AI
C
Cisco Blogs
酷 壳 – CoolShell
酷 壳 – CoolShell
C
Cyber Attacks, Cyber Crime and Cyber Security
Cisco Talos Blog
Cisco Talos Blog
博客园 - 三生石上(FineUI控件)
雷峰网
雷峰网
Help Net Security
Help Net Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
云风的 BLOG
云风的 BLOG
I
Intezer
S
Securelist

Anže's Blog

The 15-Year-Old iptables Rule That Broke My DNS Fedidevs 9h Outage Postmortem Letting Claude Upgrade My Raspberry Pi Agents Day Lisbon DjangoCon Europe 2026 How to Safely Update Your Dependencies Speeding Up Django Startup Times with Lazy Imports Typing Your Django Project in 2026 Claude Fixes User Bug Jekyll to Hugo Migration Django bulk_update Memory Issue Migrating Gunicorn to Granian Disable Network Requests When Running Pytest Disable Runserver Warning in Django 5.2 Autogenerating og:images with Jekyll Power Outages and Gunicorn PID Files UV with Django Go-like Error Handling Makes No Sense in JavaScript or Python Packages Do Not Match the Hashes Pip Error Gotchas with SQLite in Production Fedidevs Dev Update #2 Django SQLite Production Config Django Streaming HTTP Responses Deploying a Django Project to My Raspberry Pi (Video) Thoughts on Code Reviews Django SQLite Benchmark Django, SQLite, and the Database Is Locked Error No Downtime Deployments with Gunicorn SQLite Write-Ahead Logging Writing a Pytest Plugin Fedidevs Dev Update #1 Django-TUI: A Text User Interface for Django Commands Automate Hatch Publish with GitHub Actions Words TUI: App for Daily Writing Textual App Auto Reload RDS Blue/Green Deployments Fly.io Certificate Renewal Using Testing Library with Selenium in Python The Fastest Way to Build a Read-only JSON API import __hello__ Enum with `str` or `int` Mixin Breaking Change in Python 3.11 Your Code Doesn't Have to Be Perfect Fixing _SixMetaPathImporter.find_spec() Not Found Warnings in Python 3.10 Upgrading Django App to Python 3.10 Integer Overflow Error in a Python Application Python Dependency Management MySQL Performance Degradation in Django 3.1 New Features in Python 3.8 and 3.9 The Code Review Batch Size The Code Review Bottleneck
Advent of Code 2025 🎄
Anže Pečar · 2025-12-12 · via Anže's Blog

December is the time for Advent of Code, as it has been since 2015, when the first Advent of Code event was published.

This year, Advent of Code only had 12 days instead of the usual 25. To me, this was a relief. I always get competitive and then start waking up at 5 am every day to get more points on the leaderboards. I did the exact same thing this year as well, of course, but at least I only did it for 12 days!

And yes, my sleep score suffered, but I was happy with my results. So it was all worth it, right?

Sleep score graph showing a drop in sleep quality when Advent of code started

Personal times

My personal times were surprisingly good! I only ended up oversleeping once (day 8):

Day   -Part 1-   -Part 2-
 12   01:09:09   01:10:14
 11   00:16:00   00:23:47
 10   00:16:00   00:48:30
  9   00:14:21   00:53:24
  8   02:17:08   02:26:17
  7   00:17:22   00:25:13
  6   00:10:12   01:24:39
  5   00:14:06   00:25:28
  4   00:20:31   00:23:34
  3   00:27:38   00:54:27
  2   00:10:53   00:18:37
  1   00:10:42   00:57:21

I managed to do most of the days within an hour! Still way too slow for the global leaderboard, if it was available this year (good riddance, imo), but I’m happy with my results.

The main thing for me is the lovely community around /r/adventofcode.

The subreddit was flooded by visualizations, memes, and insightful posts every day. The memes were top-notch, and I really enjoyed lurking in the subreddit after I finished solving the day.

I also want to give a huge shoutout to Rodrigo, who live-streamed explanations for solutions each day. If you got stuck at some point, find his video, and you’ll learn a lot!

So to sum up, if you are doing Advent of Code on your own, you are missing out. Find a group of people to share the experience with. It’s fun comparing solutions, sharing struggles, and boasting when your solution is 0.2ms faster than your friend’s!

Benchmarks!

Speaking of comparing solution run times, this year my goal was to have solutions for every day that finish in less than 100ms. Just to show everyone that Python isn’t that slow!

I am also happy that I managed to reach this goal:

DayVariantStatusPart 1 TimePart 2 TimeTotal Time
010.45ms 🟢0.54ms 🟢0.99ms 🟢
020.07ms 🟢0.12ms 🟢0.19ms 🟢
030.31ms 🟢0.80ms 🟢1.11ms 🟢
04numpy0.67ms 🟢3.69ms 🟢4.36ms 🟢
044.99ms ⚪12.64ms ⚪17.63ms ⚪
050.23ms 🟢0.08ms 🟢0.31ms 🟢
060.68ms 🟢1.03ms 🟢1.71ms 🟢
071.06ms 🟢1.28ms 🟢2.34ms 🟢
08numpy5.60ms 🟢2.31ms 🟢7.91ms 🟢
08410.11ms ⚪421.54ms ⚪831.65ms ⚪
09numpy0.79ms 🟢83.24ms 🟢84.03ms 🟢
099.80ms ⚪142.66ms ⚪152.46ms ⚪
10numpy2.29ms 🟢49.08ms 🟢51.37ms 🟢
10172.86ms ⚪238.10ms ⚪410.96ms ⚪
110.28ms 🟢0.64ms 🟢0.92ms 🟢
120.95ms 🟢-0.95ms 🟢
Total13.38ms 🟢142.81ms 🟡156.19ms 🟡

Legend:

  • 🟢 < 100ms
  • 🟡 100ms - 1s
  • 🔴 > 1s
  • ⚪ Not included in total

(The table was generated by adventofcode PyPI package)

Unfortunately, I wasn’t able to get the total time for all days under 100ms, mostly because days 9 and 10 were brutal, and I couldn’t get them down to a reasonable time. The meme from /r/adventofcode describes the situation very well:

Days 1-8 a cute Labrador. Days 9 & 10: a black monster. Day 11, a cute Labrador, and the same for day 12

It was a shame because all the other days together took less than 10ms to finish! Which I think isn’t bad for using a language that is supposedly too slow! Although I must admit that a few of the solutions did require numpy/scipy to reach <100ms.

All the solutions are in my adventofcode2025 repository.

AI 🤖

I decided not to turn off AI autocomplete for solving the initial puzzles. I think we are going to rely heavily on AI from now on, so the sooner we get comfortable with it, the better.

I didn’t use agentic features for getting the initial solution. If the AI could figure out I’m doing DFS while I was typing it out, then fine, I’ll accept the suggestion as long as I didn’t explicitly ask it to write the DFS algorithm for me.

Once I had a full solution, I used Agent mode to ask the AI to optimize the solutions. Especially if my version was too slow.

I was blown away by how well this worked. Yes, the AI would sometimes mess up and get the result wrong, but then it would recover and find a solution that would leave my original solution in the dust.

I don’t think I could have reached my goal of less than 100ms per solution without AI’s help. To get to it, I’d have to sink way more time into this than I have available.

I’m still not onboard with the whole vibe coding mentality because the code that the AI produces is unmaintainable, but if you give it a well-defined problem, it will surprise you, so don’t shy away from trying it out!

My adventofcode PyPI package

The benchmarks above were generated by my adventofocode PyPI package, which I first wrote back in 2023 to help me automate tedious tasks like downloading the puzzle input, asserting that example inputs return the correct results, and finally submitting the answer after all the sample cases pass.

I ended up pushing 13 releases from Nov 29 to Dec 12. I still have a few bugs to fix and some rough edges to clean up, and I promise those will all be addressed just in time for Advent of Code 2026!

Happy holidays

I have gotten so used to finishing Advent of Code on Christmas morning that I feel like the only appropriate thing to do is to move the holiday. From now on, I am expecting presents on the 12th instead of the 25th, Santa, I hope you are listening! 🎅

Happy holidays to everyone, and see you in 2026!