Settings that did nothing: placebo toggles from building with an AI agent
Three settings showed in the UI, saved, and never reached the engine. How it happened with an AI agent writing the code, and the tests that guard it.
Three settings showed in the UI, saved, and never reached the engine. How it happened with an AI agent writing the code, and the tests that guard it.
libarchive's lz4 gets 17× slower at level 3 for 0.3% smaller output, and a hand-built ZIP directory wraps its entry count at 65,536, silently.
Creating a 7z on a Mac was 8× slower than 7-Zip until it wasn't. How Purrchiver made xz, 7z, and ZIP compression multithreaded.
Brotli files over 64 KiB failed with "stream processing failed". The cause: a Swift pointer outliving its closure, found by a cross-tool test suite.
SwiftUI drag-out renamed .gitignore to _gitignore. NSFilePromiseProvider fixed the names, then came a Swift 6 crash and two deadlocks.
Write to a temp file next to the original, then swap: the textbook safe save. In a sandboxed Mac app that temp file can't be created. What works.
A 42 KB zip can expand to petabytes. Here's how Purrchiver checks an archive's declared size before extracting it, and when it stops to ask.
How Purrchiver extracts and compresses multi-gigabyte archives with a near-flat memory footprint — and never leaves a half-written file behind.
libarchive returned NULL for every non-ASCII filename in my Swift tests. The cause is the C locale; the fix is uselocale, scoped to the call.
Purrchiver's first day of development: vendoring libarchive and UnRAR, reading RAR and encrypted 7z, and building a test corpus before the app.