Patrik Svensson
banner
patriksvensson.se
Patrik Svensson
@patriksvensson.se
Father. Husband. Programmer. Microsoft MVP. GitHub Star alumni. Likes OSS, compilers, programming. Cake, Spectre.Console. Ally ✊🏾🏳️‍🌈🏳️‍⚧️♀️(He/Him) @patriksvensson@mstdn.social

Stockholm archipelago, Sweden
Reposted by Patrik Svensson
Fuck you people. Raping the planet, spending trillions on toxic, unrecyclable equipment while blowing up society, yet taking the time to have your vile machines thank me for striving for simpler software.

Just fuck you. Fuck you all.

I can't remember the last time I was this angry.
December 25, 2025 at 11:25 PM
Reposted by Patrik Svensson
Package managers keep using git as a database, it never works out.

https://nesbitt.io/2025/12/24/package-managers-keep-using-git-as-a-database.html
Package managers keep using git as a database, it never works out
Using git as a database is a seductive idea. You get version history for free. Pull requests give you a review workflow. It’s distributed by design. GitHub will host it for free. Everyone already knows how to use it. Package managers keep falling for this. And it keeps not working out. ## Cargo The crates.io index started as a git repository. Every Cargo client cloned it. This worked fine when the registry was small, but the index kept growing. Users would see progress bars like “Resolving deltas: 74.01%, (64415/95919)” hanging for ages, the visible symptom of Cargo’s libgit2 library grinding through delta resolution on a repository with thousands of historic commits. The problem was worst in CI. Stateless environments would download the full index, use a tiny fraction of it, and throw it away. Every build, every time. RFC 2789 introduced a sparse HTTP protocol. Instead of cloning the whole index, Cargo now fetches files directly over HTTPS, downloading only the metadata for dependencies your project actually uses. (This is the “full index replication vs on-demand queries” tradeoff in action.) By April 2025, 99% of crates.io requests came from Cargo versions where sparse is the default. The git index still exists, still growing by thousands of commits per day, but most users never touch it. ## Homebrew GitHub explicitly asked Homebrew to stop using shallow clones. Updating them was “an extremely expensive operation” due to the tree layout and traffic of homebrew-core and homebrew-cask. Users were downloading 331MB just to unshallow homebrew-core. The .git folder approached 1GB on some machines. Every `brew update` meant waiting for git to grind through delta resolution. Homebrew 4.0.0 in February 2023 switched to JSON downloads for tap updates. The reasoning was blunt: “they are expensive to git fetch and git clone and GitHub would rather we didn’t do that… they are slow to git fetch and git clone and this provides a bad experience to end users.” Auto-updates now run every 24 hours instead of every 5 minutes, and they’re much faster because there’s no git fetch involved. ## CocoaPods CocoaPods is the package manager for iOS and macOS development. It hit the limits hard. The Specs repo grew to hundreds of thousands of podspecs across a deeply nested directory structure. Cloning took minutes. Updating took minutes. CI time vanished into git operations. GitHub imposed CPU rate limits. The culprit was shallow clones, which force GitHub’s servers to compute which objects the client already has. The team tried various band-aids: stopping auto-fetch on `pod install`, converting shallow clones to full clones, sharding the repository. The CocoaPods blog captured it well: “Git was invented at a time when ‘slow network’ and ‘no backups’ were legitimate design concerns. Running endless builds as part of continuous integration wasn’t commonplace.” CocoaPods 1.8 gave up on git entirely for most users. A CDN became the default, serving podspec files directly over HTTP. The migration saved users about a gigabyte of disk space and made `pod install` nearly instant for new setups. ## Go modules Grab’s engineering team went from 18 minutes for `go get` to 12 seconds after deploying a module proxy. That’s not a typo. Eighteen minutes down to twelve seconds. The problem was that `go get` needed to fetch each dependency’s source code just to read its go.mod file and resolve transitive dependencies. Cloning entire repositories to get a single file. Go had security concerns too. The original design wanted to remove version control tools entirely because “these fragment the ecosystem: packages developed using Bazaar or Fossil, for example, are effectively unavailable to users who cannot or choose not to install these tools.” Beyond fragmentation, the Go team worried about security bugs in version control systems becoming security bugs in `go get`. You’re not just importing code; you’re importing the attack surface of every VCS tool on the developer’s machine. GOPROXY became the default in Go 1.13. The proxy serves source archives and go.mod files independently over HTTP. Go also introduced a checksum database (sumdb) that records cryptographic hashes of module contents. This protects against force pushes silently changing tagged releases, and ensures modules remain available even if the original repository is deleted. ## Beyond package managers The same pattern shows up wherever developers try to use git as a database. Git-based wikis like Gollum (used by GitHub and GitLab) become “somewhat too slow to be usable” at scale. Browsing directory structure takes seconds per click. Loading pages takes longer. GitLab plans to move away from Gollum entirely. Git-based CMS platforms like Decap hit GitHub’s API rate limits. A Decap project on GitHub scales to about 10,000 entries if you have a lot of collection relations. A new user with an empty cache makes a request per entry to populate it, burning through the 5,000 request limit quickly. If your site has lots of content or updates frequently, use a database instead. Even GitOps tools that embrace git as a source of truth have to work around its limitations. ArgoCD’s repo server can run out of disk space cloning repositories. A single commit invalidates the cache for all applications in that repo. Large monorepos need special scaling considerations. ## The pattern The hosting problems are symptoms. The underlying issue is that git inherits filesystem limitations, and filesystems make terrible databases. **Directory limits.** Directories with too many files become slow. CocoaPods had 16,000 pod directories in a single Specs folder, requiring huge tree objects and expensive computation. Their fix was hash-based sharding: split directories by the first few characters of a hashed name, so no single directory has too many entries. Git itself does this internally with its objects folder, splitting into 256 subdirectories. You’re reinventing B-trees, badly. **Case sensitivity.** Git is case-sensitive, but macOS and Windows filesystems typically aren’t. Check out a repo containing both `File.txt` and `file.txt` on Windows, and the second overwrites the first. Azure DevOps had to add server-side enforcement to block pushes with case-conflicting paths. **Path length limits.** Windows restricts paths to 260 characters, a constraint dating back to DOS. Git supports longer paths, but Git for Windows inherits the OS limitation. This is painful with deeply nested node_modules directories, where `git status` fails with “Filename too long” errors. **Missing database features.** Databases have CHECK constraints and UNIQUE constraints; git has nothing, so every package manager builds its own validation layer. Databases have locking; git doesn’t. Databases have indexes for queries like “all packages depending on X”; with git you either traverse every file or build your own index. Databases have migrations for schema changes; git has “rewrite history and force everyone to re-clone.” The progression is predictable. Start with a flat directory of files. Hit filesystem limits. Implement sharding. Hit cross-platform issues. Build server-side enforcement. Build custom indexes. Eventually give up and use HTTP or an actual database. You’ve built a worse version of what databases already provide, spread across git hooks, CI pipelines, and bespoke tooling. None of this means git is bad. Git excels at what it was designed for: distributed collaboration on source code, with branching, merging, and offline work. The problem is using it for something else entirely. Package registries need fast point queries for metadata. Git gives you a full-document sync protocol when you need a key-value lookup. If you’re building a package manager and git-as-index seems appealing, look at Cargo, Homebrew, CocoaPods, Go. They all had to build workarounds as they grew, causing pain for users and maintainers. The pull request workflow is nice. The version history is nice. You will hit the same walls they did.
nesbitt.io
December 24, 2025 at 4:49 PM
Reposted by Patrik Svensson
Crow Country is 50% off in the Steam Winter Sale! 🐦‍⬛❄️

Every copy sold, stream, video, piece of fanart or recommendation to friends or followers helps Adam and me make our next game, and hopefully another after that!

store.steampowered.com/app/1996010/...
December 23, 2025 at 5:31 PM
The new Spectre.Console (and Spectre.Console.Cli) website is now live! 🎉

This is all courtesy of @philco.bsky.social, who has done an amazing job, just as he did with the previous website.

spectreconsole.net
Spectre.Console Documentation
Documentation for Spectre.Console and Spectre.CLI - rich console UI library and command-line application framework for .NET
spectreconsole.net
December 24, 2025 at 6:43 PM
Having a beer in your small hometown:

Pros: Nostalgia
Cons: Homophobic slurs every other minute at the next table
December 24, 2025 at 6:18 PM
Time to publish the new Spectre.Console site! Just need another beer...
December 24, 2025 at 5:43 PM
I want whatever they're smoking over in Redmond.
Are you ready to read 5,600 lines of c++ code ported to rust per hour?

I have the perfect job for you:

Do not despair, it is just 100 lines of code per minute.
December 24, 2025 at 4:57 PM
Reposted by Patrik Svensson
Happy Not Christmas Day, to those that celebrate.
December 24, 2025 at 8:19 AM
Reposted by Patrik Svensson
Games made in Sweden stood for 20% of the revenue on Steam in 2025.

Pretty impressive considering Sweden’s size of 10 million inhabitants.

Source: @alineaanalytics.bsky.social
December 23, 2025 at 5:29 PM
A group of friends and I (about 25 people) have been running a self-hosted Mattermost instance for a while, because it was a good open-source alternative to Slack.

We updated the server to the latest version a couple of days ago, only to hit a 10000-message limit.

Is Matrix good?
December 22, 2025 at 1:42 AM
I must say that I’m extremely happy with both the performance and the API of my little TUI framework. I’m going to spend my time off working on widgets to make it actually useful.

There’s a good chance that Spectre.Console v2 will use Spectre.Tui (in inline mode) for all interactive components.
December 21, 2025 at 11:20 AM
Reposted by Patrik Svensson
The recording of my @cakebuild.net SDK talk from @oredev.org is now published and available
youtu.be/WzQ_goL6H4Y?...

#dotnet #devops #csharp
Mattias Karlsson - GitHub Actions DevOps Pipelines as Code using C# and Cake SDK
YouTube video by Øredev Conference
youtu.be
December 15, 2025 at 3:53 PM
Min vän Agge har skrivit något mycket bra i GP som jag tycker att du ska läsa: www.gp.se/kultur/varse...
Varselvästmannen symboliserar förlusten av ett folkhem
Det är bekvämare att fälla en tår över det gamla folkhemmet än att betala för det nya.
www.gp.se
December 19, 2025 at 9:00 PM
Reposted by Patrik Svensson
Speaking of The Knightling...

We couldn't afford to spend our entire dev budget on a trailer at THAT award show, but you can see it on Steam! And I'm so chuffed that even though this game is CRIMINALLY overlooked, 100% of our recent reviews were positive! 🛡️
store.steampowered.com/app/1471650/...
December 18, 2025 at 4:26 PM
Reposted by Patrik Svensson
Today's shitty future
December 17, 2025 at 10:14 PM
Reposted by Patrik Svensson
Have you tried Apple's "Clean Up" ai function in Photos? It's advertised as being able to remove blemishes, distracting details, entire objects. But if you use it in any photo that contains nudity it switches to a censored pixelation mode. One step closer to my tweeted predictions.
December 17, 2025 at 9:52 PM
I love my friends! ❤️😍
December 17, 2025 at 9:45 PM
Reposted by Patrik Svensson
America, you've spoken loud and clear: you do not like being stabbed in the dick with an ice pick. But what if stabbing yourself in the dick with an ice pick is the only way to fight, idk, climate change or whatever?
December 16, 2025 at 2:36 AM
What the fuck GitHub?
December 16, 2025 at 6:31 PM
Pro tip: never publish your podcasts or music to Spotify.
December 16, 2025 at 7:42 AM
Reposted by Patrik Svensson
one of the funnier aspects to the AI backlash is the fact that they're negatively polarizing much of the tech enthusiast demographic against them by making hobbyist PC building functionally unaffordable
Just so I'm clear on this, computer memory has tripled in price because a bunch of it that hasn't been produced yet has been ordered to populate GPUs that aren't installed in data centers that aren't built yet in order to service a demand that doesn't exist to make profits that don't happen.
December 15, 2025 at 8:04 PM
Reposted by Patrik Svensson
Just so I'm clear on this, computer memory has tripled in price because a bunch of it that hasn't been produced yet has been ordered to populate GPUs that aren't installed in data centers that aren't built yet in order to service a demand that doesn't exist to make profits that don't happen.
December 15, 2025 at 12:21 PM
Reposted by Patrik Svensson
Learned today that “Galápagos” comes from a Spanish word for tortoise, meaning that “Galápagos Tortoise” is,

in fact,

a tortology
December 13, 2025 at 9:49 PM
Reposted by Patrik Svensson
December 13, 2025 at 3:16 AM
Reposted by Patrik Svensson
posted about my Apple ID woes, please share widely?

hey.paris/posts/appleid/
December 13, 2025 at 4:59 AM