Prashant Jain (@omprashantjain) header
Prashant Jain (@omprashantjain) profile picture

Co-founder & CTO, KnowledgeGATE: 593K students, 231M YouTube views · 303K on my coding channel · Building with AI agents on our servers · Ex-Microsoft, Amazon

Delhi, India
Joined May 2010
Photo by Prashant Jain (@omprashantjain)Photo by Prashant Jain (@omprashantjain)Photo by Prashant Jain (@omprashantjain)Photo by Prashant Jain (@omprashantjain)Photo by Prashant Jain (@omprashantjain)Photo by Prashant Jain (@omprashantjain)Photo by Prashant Jain (@omprashantjain)Photo by Prashant Jain (@omprashantjain)Photo by Prashant Jain (@omprashantjain)Photo by Prashant Jain (@omprashantjain)
I'm Prashant, co-founder and CTO of KnowledgeGATE (knowledgegate.ai). 593K students use it to prepare for GATE, UGC NET and government exams, and our YouTube videos have 231M views. Engineering is mostly me and a fleet of AI agents on 30 machines of our own. I post what works, with real numbers, and what breaks.
1
4
366
Four backup methods failed. A fifth, taken almost by accident, saved the day. GitLab, 31 January 2017. While repairing database replication, an engineer removed the data directory on the primary server instead of the secondary. About 300 GB was gone before it could be stopped; about 4.5 GB was left. Then the backups: pg_dump had been failing silently (version mismatch), the failure emails were rejected, Azure disk snapshots weren't enabled for the database servers, and the S3 bucket was empty. A manual LVM snapshot, taken about 6 hours earlier for staging, saved them. Those 6 hours of data were lost.
8
One rule, a global outage. Cloudflare, 2 July 2019. A new firewall rule went out without staging and reached every server within seconds. Part of its regex, .*(?:.*=.*), backtracks badly on some inputs. CPU on the machines serving HTTP traffic went to nearly 100%. Core HTTP and HTTPS traffic was down worldwide for 27 minutes. It recovered after the firewall was switched off globally. Afterwards: CPU protection restored, plus plans for a regex engine that can't blow up and staged rollouts for rules.
21
Seven of eight servers. Knight Capital, 1 August 2012. New order-routing code was rolled out to 8 servers, and one was missed. The new code reused an old flag. On the missed server, that flag switched on Power Peg, old routing logic unused since 2003. In about 45 minutes it sent millions of orders. The loss was more than $460 million. No second technician reviewed the deploy, and nobody noticed the missing server.
9
Same number, wrong unit. Mars Climate Orbiter, 23 September 1999. Ground software supplied thruster impulse data in pound-force seconds. The navigation software expected newton-seconds, so it underestimated the effect of each small thruster firing on the trajectory by a factor of about 4.45. The planned closest approach was 226 km above Mars. After the loss, the board estimated 57 km. The spec required metric. Discrepancies were noticed along the way, but the mismatch went unresolved.
5
Another overflow, with a bigger bill. Ariane 5's first flight, 4 June 1996. About 37 s into the flight sequence, a 64-bit float (horizontal bias, derived from horizontal velocity) was converted to a 16-bit signed integer. It didn't fit. The backup inertial unit failed first. The active one failed 72 ms later, running the same code. The code came from Ariane 4. Its alignment function kept running after liftoff, where it served no purpose, and Ariane 5's faster trajectory was never in its tests.
16
0.1 + 0.2 == 0.3 is false in JavaScript, Python, Java, C and most languages that use 64-bit floats. A double can't store 0.1 exactly. It stores the nearest binary fraction, so 0.1 + 0.2 prints as 0.30000000000000004 in Python and JavaScript. Two habits that prevent real bugs: 1. Compare floats with a tolerance (relative for large values), not ==. 2. Store money in its smallest unit: ₹499.99 as 49999 paise, an integer.
7
A binary search bug sat in Java's standard library for about nine years: int mid = (low + high) / 2; For large indices, low + high can overflow and make mid negative. Joshua Bloch wrote about it in 2006. One fix: int mid = low + (high - low) / 2; Correct on paper is not the same as correct on a machine.
27
How Lean and Mathlib certified a 17-million-line proof of the Riemann Hypothesis, per their 21 November statement: 1. Check the statement is RH. Experts vetted Mathlib's version. 2. Reproduce the build. Dozens reported the same raw proof export. 3. Check the proof proves exactly that statement. Two independent tools confirmed it. 4. Check the proof. Lean's kernel and several independent checkers accepted it. My favourite detail: the checks ran on an inert export, out of reach of hypothetical malicious code in the proof sources.
20
Why prompt caching can make coding agents cheaper, in one picture. Most agents resend a growing conversation on every step. If the start of that input matches what the provider cached, the model reuses that work and only processes the new part. The longer the session, the bigger the reused share.
22
Our rule: an AI agent's PR can't merge on a review from its own vendor. Claude-written code gets a GPT review, and vice versa. In our experience, same-vendor models miss similar things. So each reviewer checks the other's habit first: GPT tends to over-engineer, Claude can miss places a change needs to reach.
22
What Lean settles, and what it doesn't, since everyone is asking after yesterday's Riemann Hypothesis claim: Lean's kernel checks that the proof really proves the stated theorem, from the axioms it uses. You still check that the formal statement matches the real theorem, that the axioms are acceptable, and that nothing rests on a 'sorry'. Lean's print axioms command shows both. The checker is strict. The statement is written by people.
22
X's open-source ranking code gives some new posts from small accounts a cold-start boost, chosen by Thompson sampling. Each eligible post starts at Beta(0.75, 49.25), a 1.5% like-rate prior. Likes add to alpha. Home views without a like add to beta. The probability chapter you thought you'd never use is helping decide your reach.
12
13–19 Nov in my company's codebase: 834 pull requests merged. 818 were opened by our AI agents' accounts. 16 by people, and 9 of those were mine. Busiest day: Friday the 13th, with 224.
1
18
I read X's open-source ranking code this morning. The part nobody talks about: when Grok scores your reply, its prompt can include how many replies you posted in the last 24 hours, whether the reply was pasted, and how many legit blocks you got in that window.
1
18
Two more things matter for small accounts. By default, For You filters out replies from people a viewer doesn't follow. Eligible original posts from accounts with up to 50K followers can get a cold-start slot while they're under 2 hours old.
1
6
My takeaway for a small account: every reply is judged on its own, with your recent volume as part of the context. Original posts are the part with a built-in test audience. Source: github.com/xai-org/x-algorit…
4
Engineers: which college subject do you use most at work?
13
My bet: the best apps of the next few years come from people who've understood a problem for ten years and learned to build last month.
25
The model scoreboard flips every week. The benchmark I trust is which model I still reach for a week later.
13
Builders: what's the one task you still won't hand to an AI agent?
1
25