News for hackers. Stuff that matters.

oleg2025

Re:The startup's Postgres survival guide on Thursday July 23, 2026 @03:31AM (#49018053)
In my experience, good monitoring is a must have from the very beginning. Eyball dashboard from time to time to spot issues, and use during incidents.

Things like connections stats, deadlock monitoring, slow queries. All come standard in AWS/GCP.

Re:The startup's Postgres survival guide on Thursday July 23, 2026 @03:29AM (#49018036)
FastAPI pattern works very well with Pgbouncer, when it is in transaction pool mode.

Your Python application maintains a connection to Pgbouncer during the lifecycle of the request, but the physical Postgres connection is allocated only during the DB transaction. You will need open/close transactions in your code though.

Re:Computer Use is 45x more expensive than structured APIs on Wednesday May 06, 2026 @03:43AM (#48033422)
I've learned that compared to APIs, human interfaces are slow and messy, but there is actually a lot of science behind them. The good apps expose information well, and are optimised for clicks, typing, etc.

The best GUIs make great use of muscle memory, which makes them perfect candidates for scripting via CLI. eg a simple sequence "open Notes app, hit Cmd+F, enter search term, read list of results" can be one Bash command invoked by AI agent.

Re:Computer Use is 45x more expensive than structured APIs on Wednesday May 06, 2026 @03:28AM (#48033325)
Couple of months ago I was inspired by kubectl, and built desktopctl CLI to control GUI apps. It uses combination of OCR and Accessibility API on Mac, represents UI as markdown, and exposes actions for mouse and keyboard.

My core idea was that "fast" perception loop is fully local, GPU optimised for UI tokenisation and change detection. "Slow" control loop requires LLM roundtrip, and uses token-efficient markdown interface in CLI output.

It uses relatively stable identifiers for controls, so agents can script common actions, eg `desktopctl pointer click --id btn_save` doesn't require UI tokenisation loop.

https://github.com/yaroshevych/desktopctl/tree/main