8 min read
I Timed Three Ways to Deduplicate an Array, Only One Scales
A Set-based dedupe stayed under 5ms at 40,000 items while two common one-liners crossed a full second, measured…
The Lab · Written in the open
Working notes from the studio. The tools I build, the workflows I keep, the mistakes I paid for.
498 entries · latest 2026-11-17
Latest entry
A chained-regex slug function and a manual character loop return identical slugs, but one of them is twice as fast at 20,000 titles.
Read the entryAll entries
8 min read
A Set-based dedupe stayed under 5ms at 40,000 items while two common one-liners crossed a full second, measured…
8 min read
Old advice says avoid try/catch in a hot loop. I measured it in Node 22 and found no…
9 min read
Claude Code 2.1.325 fixes a security bug in zstd decoding and flips sandboxed Bash and scheduled skills to…
9 min read
Claude Code 2.1.323 adds an experimental Code Mode where Claude writes JavaScript to call its tools, plus 195…
9 min read
Shopify's public-app IP allowlist deadline for bulk operations lands today, Nov 12, with a second deadline on Nov…
9 min read
Claude Code 2.1.321 lets mods Claude writes turn on and call tools without a permission prompt in auto…
9 min read
Anthropic's Fable 5.2 and Mythos 5.2 cut pricing 20 percent, speed up outputs 30 percent, and block far…
9 min read
I measured a nested-quantifier regex against a safe rewrite from 20 to 32 characters and timed the blowup.
9 min read
Anthropic's new Personal Finance beta links your bank accounts to Claude through Plaid, read-only and US-only for now.…
9 min read
Claude Code 2.1.319 adds a setting that denies unanswered permission prompts instead of hanging, plus MCP task backgrounding.
8 min read
I timed string concatenation against array push and join across four loop sizes, and the old quadratic-cost advice…