Kuldeep Pisda (@kdpisda)

Kuldeep Pisda @kdpisda 2026-11-28T07:41:08.000Z

Hash everything the benchmark runs, not just the file you named. chi caches evals by the candidate file's hash. Mine was one line: import from a helper module. Slow helper: 16.7 ms. Fast helper: cache hit, 16.7 ms. Edit the candidate: 0.049 ms. Archived champion: that import.

0 0 5 0 0
Grok @grok 2026-11-28T07:07:05.000Z

@kdpisda @lorxell Doctor Doom. RDJ is Victor von Doom—confirmed by Feige as not a Tony Stark variant or Iron Man return. The trailer gaps are likely hiding him to protect that spoiler.

0 0 8 1 0
Grok @grok 2026-11-28T07:05:52.000Z

@kdpisda @lorxell Doctor Doom (Robert Downey Jr.). Fans noticed the awkward empty gaps in the Avengers: Doomsday trailer scenes with the Fantastic Four visiting Steve Rogers and think Marvel digitally scrubbed him out to hide spoilers.

0 0 18 1 0
Kuldeep Pisda @kdpisda 2026-11-28T06:46:25.000Z

A firm asked me to turn their internal tool into a product other companies could run under their own brand. The obvious answer was one deployment per customer. I put every customer in one deployment instead, and I'd make the same call again. The tool was an investor-matching platform for a venture-capital firm: Django and Vue, where a fundraising startup builds a profile and gets matched against a large curated database of investors. It started as the firm's internal MVP in 2022. In mid-2024 they decided it was good enough to sell, because other companies wanted to run it as their own branded matching platform. Per-client deployments are the safe-looking move. Each customer gets its own stack, so isolation comes free from the infrastructure. The cost arrives later: N copies to deploy, N places to apply a fix, N versions drifting apart. I went multi-tenant inside one deployment. A middleware resolves the tenant from the incoming request. Tenant-owned models inherit from a SiteModel base class that scopes every query to that tenant, so one customer can never read another's data. Each tenant is its own Django Site, with its own logo, its own trial and free-tier limits, and its own AI configuration. That last part turned out to be the most product-shaped decision in the whole system. A whitelabel customer doesn't want their deal analysis running through my AI account. They want their own vendor, their own billing and their own compliance posture. So each tenant carries an llm_vendor (Claude by default, or GPT, Gemini or Perplexity) plus the API keys the tenant supplies, and the AI layer resolves the vendor and keys from the tenant when it builds a client. Switching vendors is a config change, not a code change. Building that abstraction cost more than hardcoding one provider, and it turned "which LLM do you use?" from a blocker in a sales call into a config field. The tradeoff is real. With separate deployments, isolation is a boundary you get for free. In one deployment it becomes a correctness property you defend on every query, for as long as the product lives. The savings from one codebase, one CI pipeline and one place to fix a bug for everyone were much larger than the cost of being disciplined about scoping. If you're about to make the same move, these are the places I'd check first, because they're where "every query is scoped" quietly stops being true. Anything that runs without a request. If middleware resolves the tenant, a Celery task, a cron command or a shell session has no tenant unless you pass one in. Decide what an unscoped query does there, and make the answer "fail", not "return everything". Anything that skips the base class. Raw SQL, reporting queries, the admin, a new model someone forgot to inherit from the scoped base. One unscoped path is enough. Per-tenant credentials. Once customers hand you their own LLM keys, you are holding secrets for someone else. They need the same care as your own: who can read them, whether they ever reach a log, and how a tenant rotates one. The way I'd put it to a founder: pick the deployment model by where you'd rather pay. Many deployments cost you operations work every week. One deployment costs you discipline on every query. The second is cheaper only if scoping is hard to bypass, not something everyone has to remember. The full case study: https://kdpisda.in/case-studies/investor-matching-platform/

0 0 53 2 0
Kuldeep Pisda @kdpisda 2026-11-28T02:36:29.000Z

I built an AI feature on a platform I always planned to throw away. On an investor-matching platform, the deal analyser takes a pitch deck and returns a ten-section investment report. In December 2024 I prototyped it on self-hosted Dify, with a small FastAPI sidecar exposing the research and scraping steps as tools. Stakeholders saw the report change within days, with no deploy per edit. At that stage the hard question was what the report should say. Two months later the shape had settled, and I moved the pipeline into Django and Celery tasks. Each report section's prompt became its own text file in git, reviewed and diffed like code. That bought testability and one fewer platform to operate. A throwaway tool is cheap when you decide it's a throwaway on day one. The expensive version is the prototype nobody planned to replace.

0 0 21 0 0
Kuldeep Pisda @kdpisda 2026-11-27T07:40:41.000Z

Myth: if chi exits 0 and says "done", the run measured something. One edit to the example problem: repeats: 5 became repeats: 0. chi validate: OK. chi run: 4 candidates, all passed 3/3 correctness seeds, 0 benchmark runs. Every score null, champion null. Exit 0, no warning.

0 0 42 0 0
Kuldeep Pisda @kdpisda 2026-11-27T02:36:30.000Z

One STOP reply shouldn't cancel someone's appointment reminders. On an AI receptionist platform for home-services contractors, texts fell into two A2P 10DLC categories: customer care and marketing. The easy build treats STOP as global. That is technically safe, and it means a customer dodging promos also loses the reminder for the job they booked. So opt-out was scoped by category end to end. An inbound STOP or START applies to the category of the text it answers. Every outbound send checks the recipient's state for that category. The state syncs back to the CRM's telecom records, and ops see a per-category badge in the UI. The design doc was committed alongside the code. Compliance rules nobody can find are the next incident.

0 0 75 0 0
Kuldeep Pisda @kdpisda 2026-11-26T07:41:30.000Z

chi's noisy benchmark imports the candidate. Python reuses a cached .pyc if size and whole-second mtime match. 2 same-size candidates saved in one second: the new one, 1 line event, scored 606, the old one's cost. 5 of 5. PYTHONDONTWRITEBYTECODE=1: 1.0 https://getchi.dev

0 0 51 1 0
Kuldeep Pisda @kdpisda 2026-11-26T02:36:01.000Z

The CMS had hit its ceiling, and I still didn't rewrite it. On a non-profit platform I've led since 2022, Directus was serving content fine but was the wrong home for payments, receipts and accounts. A rewrite would have meant a cutover, a freeze, and months where the new system did less than the old one. So I deployed a Django service alongside Directus, pointed at the same Postgres and the same Redis, and moved one capability at a time. Directus kept serving content until Django had absorbed it. Its real value was the free admin UI, so a react-admin panel on our own DRF API replaced that a few months in. There was never a cutover day. The staging Redis cluster was still named after Directus years later. Nobody renamed it, because nothing ever broke hard enough to force a cutover. If your stack has outgrown a tool, ask what you can run next to it on the same data before you plan the rewrite.

0 0 40 0 0
Sujit 🇮🇳 @skh27 2026-11-25T06:43:34.000Z

Asked ditto about porting my health policy. Expected a sales pitch. Their advisor told me to stay put. 5+ years of continuity, past the moratorium, not worth risking for a few features or a lower premium. An advisor talking u out of a sale. Rare. Not paid, not sponsored, just genuinely impressed.

218 9 22709 25 2
Kuldeep Pisda @kdpisda 2026-11-25T07:40:43.000Z

Postmortem: a 30s host stall made my fastest chi candidate a wrong answer. 5s eval timeout. It passed seed 11, timed out on seed 27, stored as incorrect. Two identical resubmits: cache hits by hash, never re-checked. Champion: the 18.1 ms baseline. Without the stall: 0.057 ms.

0 0 35 0 0
Kuldeep Pisda @kdpisda 2026-11-25T02:36:56.000Z

A login code and a billing export should never wait in the same line. A clinic platform I built solo in 2019 runs both through Celery. The OTP SMS is the only thing between a user and logging in. A bulk Excel export of a clinic's billing history can take a while, and nobody is watching it. On one shared worker pool, a fat export can sit at the head of the queue while the login feels broken. So the workers are split by queue instead of scaled as one pool: five queues, each in its own container (send_text_messages, reminders_cron, export, import, wallet), routed from a single task_routes dict. The scheduled reminder jobs fan out through their own queue too. A stuck export cannot delay an OTP because the two never share a worker. It cost almost nothing to set up on a small cluster. Before adding Celery workers, sort tasks by how long a user can wait for each one, and give the impatient ones their own queue.

0 0 39 0 0
Kuldeep Pisda @kdpisda 2026-11-24T07:42:16.000Z

Mac mini, 10 plain chi runs. All 20 candidates are 4.4% slower than baseline (40 interleaved pairs). 2 of 10 runs crowned a slower one anyway, claiming up to 2.1%. On a 4 vCPU cloud box: 9 of 10, up to 17.2%. chi run keeps the lowest score and never re-measures it.

0 0 44 0 0
Kuldeep Pisda @kdpisda 2026-11-24T02:36:36.000Z

An investor-matching platform I worked on reindexed a contact in Elasticsearch every time anything related to it changed. Match scores are derived data, so a Django signal fired on each change and wrote to the index right away. At scale that was potentially thousands of index writes a minute, most of them redundant. The fix was to stop writing from signals. A change now records the contact's id in a pending-sync table with get_or_create, so repeated edits to one contact leave one row. A cron'd command drains that table in batches of 500 every 15 minutes. Per the project's docs, Elasticsearch load went from thousands of operations a minute to four batch operations an hour. The real decision was admitting the index never had to be current to the second. Nobody could tell the difference in search freshness. If a search index is fed by model signals, check how many of its writes are the same document rewritten.

0 0 49 0 0
mumu木川 @linmumu223 2026-11-23T10:24:36.000Z

卧槽!重磅!朝鲜要改革开放了! 朝鲜时隔30多年恢复接受外国大使递交国书。这次金正恩一口气接待了来自10个国家的大使,包括印度、越南、印尼、俄罗斯等。 金正恩还强调,要优先发展经济,推动国家和平繁荣发展。这话怎么听着这么耳熟?这不就是当年中国改革开放的口号吗? https://t.co/OjYXTZN1B2

18236 2273 3277371 942 594
The Habib @habibthekhan 2026-11-22T18:06:08.000Z

I am looking for a 20-28yo App and web developer for a full-time remote role. - Cross platform apps - Strong in design Must have at least few published apps and websites.

141 4 9518 107 0
Kuldeep Pisda @kdpisda 2026-11-23T07:41:42.000Z

Slow pytest suite, 22 tests, 50 ms fixture each. Gate: exit code 0. baseline: 1.62 s skip every test: 0.31 s, passes, wins session scope: 0.37 s Gate counting passed tests, order shuffled per seed: skip: 0/22 session: 21/22 on seed 2 deepcopy: 0.40 s https://getchi.dev

1 0 55 0 0