ayush (@opcode01) profile picture

CS grad from JNU , Founding Engineer @ https://teapawt.net/t.co/77lLYrsHAP Building AI products, one system at a time.

New Delhi
Joined March 2025
Photo by ayush (@opcode01)Photo by ayush (@opcode01)Photo by ayush (@opcode01)Photo by ayush (@opcode01)Photo by ayush (@opcode01)Photo by ayush (@opcode01)Photo by ayush (@opcode01)
I built a physics engine for the browser. Nothing is animated, it's all computed live. You can create your own simulation and world of physics. - Pendulums 0.001° apart turn chaotic - Pendulum wave that falls back into line - 3 stars on a figure eight - Collision fountain that never stops Try it out now. Free: solitonplay.com Docs is available at : docs.solitonplay.com/ #Physics #STEM #NCERT #Math #Study #Education
4
2
4
159
- Hundred in 2nd Unofficial Test ✅ - Hundred in 3rd Unofficial Test ✅ YASHASVI JAISWAL IS HERE - It's time to rule in Tests in News Zealand, Best news for Indian Cricket 🇮🇳
11
142
6
3,483
40,028
Life of a Vibe coder(or maybe all developes): 1. Ask AI to build an app. 2. It breaks. 3. Ask AI to fix it. 4. Something else breaks. 5. Ask AI to fix that too. 6. Ship to production. “I have no idea how it works, but we have 10k users.”
68
Ever wondered why "Promise.then()" runs before "setTimeout(fn, 0)" in JavaScript? It comes down to the Event Loop. - Synchronous code executes first. - Promise callbacks run as microtasks. - "setTimeout()" schedules a timer callback as a task. After synchronous execution finishes, microtasks are processed before the next task in this example. Remember: "setTimeout(fn, 0)" doesn't mean execute immediately. Understanding the Event Loop is essential for writing predictable asynchronous JavaScript, especially in Node.js. #JavaScript #NodeJS
1
45
ayush retweeted
Best thing is human AI collaboration in auto research The big jumps are still suggestions I gave from my intuition But I was able to get those approaches because Opus gave me so many experiments to analyse
Autoresearch is so crazy! I left this new model architecture I'm working on to Opus 5.5 and forgot, and a week later it has hill-climbed crazyyy
1
3
208
ayush retweeted
23. "Not just another" builder/founder/developer from India🇮🇳. Looking to connect with more builders, indie hackers and founders across the globe. Let's join hands if this sounds like you.
21
2
17
598
ayush retweeted
Me helping the agent ship a feature
40
112
20
1,847
88,694
Python "asyncio": "await" vs "asyncio.create_task()" They’re not interchangeable. "await" waits for a coroutine to complete. "asyncio.create_task()" schedules a coroutine to run concurrently with other tasks. Here’s the difference: # Sequential: ~4 seconds await fetch("A") await fetch("B") # Concurrent: ~2 seconds task_a = asyncio.create_task(fetch("A")) task_b = asyncio.create_task(fetch("B")) await task_a await task_b Why does this matter? With sequential "await", B starts only after A finishes. With "create_task()", both tasks can make progress while waiting for I/O. Remember: - "await" → wait for a result. - "create_task()" → schedule concurrent work. - "await task" → wait for scheduled work to finish. When to use what? Use "await" when the next operation depends on the current result. Use "create_task()" when independent operations can overlap. One caveat: "asyncio" provides concurrency, not automatic CPU parallelism. Writing async code isn't enough. You need to structure it for concurrency.
2
76
A common FastAPI misconception: lifespan events run once for the entire application. Not exactly. They run once per application instance, typically once per worker process. For example, if you start FastAPI with 4 Uvicorn workers: uvicorn main:app --workers 4 And your lifespan looks like this: @asynccontextmanager async def lifespan(app: FastAPI): print("Starting application") app.state.cache = await create_cache() yield await app.state.cache.close() You should expect the startup code to run in each worker process. That means: - 4 workers can create 4 cache instances. - An ML model may load 4 times into memory. - Each worker may create its own database connection pool. - Shutdown cleanup runs separately for each worker. Why does this matter? If each worker's database pool allows 20 connections, 4 workers could allow up to 80 connections in total. The key lesson: use lifespan for resources owned by a worker process. Use dependencies for request-scoped resources, and use external infrastructure when state must be shared across workers. In FastAPI, understanding the process boundary is just as important as understanding the request lifecycle. #FastAPI #Python #BackendEngineering
1
4
113
Pipe anything into cbirds and watch it fly in your terminal fastfetch | cbirds cat file.c | cbirds cbirds 1.6.0 github.com/clainstone/cbirds
7
11
1
119
51,784
Why are teams moving from AWS ECS to EKS? It's not always about performance. It's often about control, flexibility, and the Kubernetes ecosystem. ECS offers simplicity and deep AWS integration. EKS brings: - Kubernetes ecosystem & tooling - Advanced orchestration - Platform engineering at scale - Greater portability across environments But Kubernetes comes with operational complexity and cost. The real question isn't ECS vs. EKS. It's: Does your system need Kubernetes, or is ECS already enough? #AWS #EKS #ECS #Kubernetes #DistributedSystems
1
1
3
129
A 403 Forbidden error in Azure doesn't always mean you need to add another role assignment. Before changing permissions, check: → Are you using the expected identity? → Does it have the required RBAC permissions? → Are ADLS Gen2 ACLs configured correctly? → Does the identity have execute permission on parent directories? → Is the application using a valid, current token? Don't blindly add permissions to fix an access issue. Find the actual permission gap. That's how you troubleshoot cloud security without creating unnecessary access.
2
2
3
153
Time is surprisingly dangerous in distributed systems. A common mistake is assuming that wall-clock timestamps can establish causality. Consider two nodes: Node A: "10:00:00.100" Node B: "10:00:00.050" You might conclude: "B → A" But that conclusion can be wrong because clocks are not perfectly synchronized. NTP adjusts clocks, clock drift exists, and network delay makes the actual ordering of events unknowable from timestamps alone. The deeper problem: Wall-clock time tells you when a node thinks something happened, not necessarily the causal order of events. That's why distributed systems use mechanisms such as: - Lamport clocks — establish a partial ordering of events - Vector clocks — track causal relationships between nodes - Hybrid Logical Clocks — combine physical time with logical ordering - Monotonic clocks — measure elapsed time without being affected by wall-clock adjustments So when designing a distributed system, don't casually use: "timestamp(A) < timestamp(B)" as proof that: "A happened before B". In distributed systems, ordering is a protocol problem, not simply a timestamp problem.
1
4
108
A weird thing about backend engineering: The hardest bugs usually aren't in the code you wrote. 🐛 They're in the assumption you didn't realize you made. “Users won't do that.” “This service won't be down.” “The queue will stay small.” “The timestamp is always valid.” Production exists to challenge assumptions. #BackendEngineering #SoftwareEngineering #Programming #DevLife #DistributedSystems #SRE #Tech
3
93
Everyone keeps asking: “Will AI replace software engineers?” I think that’s the wrong question. The more interesting question is: Will AI expose how many software engineering practices were already bad? AI can generate a CRUD endpoint in seconds. But it still doesn't automatically know: - Why this service exists - Which invariant must never break - What happens under partial failure - Whether the database model is fundamentally wrong - Where the real bottleneck is - Which “temporary” workaround became production architecture Writing code was never the hardest part of engineering. Understanding systems was. AI is making that distinction much harder to ignore.
1
1
157
“All we have to decide is what to do with the time that is given us.” — J.R.R. Tolkien, The Fellowship of the Ring
1
1
64
ayush retweeted
Multiply your chances of “not getting ghosted” by founders with this cheat sheet. I have an opinion on this one, though.💡 In the language I’m most familiar with, and probably one you guys can relate to - this compiled advice is like a GPU: Enormous benefits if you’re an ML engineer, gamer, etc. Almost zero benefit if you’re a consultant, product manager, etc. My point? You need to bring something to the table to get a response. If you don’t, this advice is 'trash'🗑️. Whoever you are. Whatever you do. Wherever you live. It doesn’t matter. Level yourself up in what you’re showing you can do. Then, on top of that, get pretty good at writing cold emails. Because great cold emails + nothing valuable to show = still getting ghosted.
I compiled Y Combinator's best cold email advice. teapawt.net/mariagorskikh/status/2…
1
2
7
202