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.
2
4
475
Mark my words: by November 2027, cost per merged PR will sit next to DORA metrics on engineering dashboards. Agents now write code faster than teams can review it. As PR volume climbs, the bill moves to review, and teams will start pricing it.
3
New number to track: how much of a company's AI compute its own people and agents use. One estimate puts Anthropic at a third of all Claude compute. Perplexity says its internal share grew 4x since its agents started working. My bet: this becomes the honest AI-adoption metric.
4
Hubble's mirror was ground about 2.2 micrometres too flat at the edge. The test instrument used to check it had one lens about 1.3 mm out of position. Other tests showed the error and were discounted. Corrective optics were fitted in orbit in December 1993. Test your tests.
3
39 seconds after liftoff, Ariane 5's first flight broke up. 4 June 1996: a 64-bit float was converted to a 16-bit signed integer. Ariane 5 flew faster than Ariane 4, the value overflowed, and both inertial units failed the same way. Reused code needs re-checked assumptions.
8
A signed 32-bit Unix timestamp runs out at 03:14:07 UTC on 19 January 2038. One second later it wraps to 20:45:52 UTC on 13 December 1901. That's about 11 years away. A device shipped today with a 15-year service life will still be running then. Check your time_t.
12
45 minutes, over $460 million. 1 August 2012: Knight Capital deployed new trading code to 7 of its 8 servers. On the eighth, a reused flag woke up Power Peg, code unused since 2003, and it sent millions of orders into the market. Delete dead code. Verify every deploy.
16
A leap second is one extra second. Twice, that was enough. 30 June 2012, 23:59:60 UTC: a Linux kernel timer bug sent some Java and MySQL workloads to 100% CPU. Reddit, Mozilla and LinkedIn had trouble, and Qantas check-in was hit via Amadeus's Altea system.
1
26
31 Dec 2016, the next one. Cloudflare's DNS code computed a negative elapsed time and passed it to Go's rand.Int63n, which panicked. Some lookups failed for hours, until about 06:45 UTC. Lesson: measure durations with a monotonic clock, never the wall clock.
1
30
A bug fixed from about 190 million km away. Mars Pathfinder, July 1997. Days after landing, the computer kept resetting. A low-priority weather task held a mutex that the high-priority bus task needed, and medium-priority tasks kept the low one from finishing. The bus task missed its cycle, and the scheduler reset the system. VxWorks had a priority-inheritance option for that mutex. It was off. JPL reproduced it on a ground copy using trace logs, then uploaded a change that turned it on.
30
The copy that saved Toy Story 2 was on a workstation in someone's home. Pixar, 1998. A deletion command, likely /bin/rm -r -f *, swept through the film's project files. By the time the main machine was unplugged, the project directory was down to about 10% of its expected size. The tape backups turned out to be faulty: a first restore looked fine, then problems showed up. Supervising technical director Galyn Susman had been working from home after having a baby, with a copy of the project about two weeks old. She and Oren Jacob wrapped the machine in blankets and drove it in. The team checked it against older backups and other recovered files to rebuild the film.
24
One misplaced break. AT&T, 15 January 1990. A switch in New York hit a hardware fault and went through normal recovery. When it came back, its call messages hit a timing-sensitive bug in the neighbouring switches: a C break inside an if, inside a switch, exited the whole switch. Their signalling processors reset too, and the disruption cascaded across the network for about 9 hours. Around half of AT&T's long-distance calls were affected. The bug arrived in a December update installed on all 114 of its long-distance switches. Every node had the same flaw.
16
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.
21
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.
25
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.
13
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.
7
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.
18
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.
9
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.
31
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.
21
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.
23