Madhusudan (@sahnnu) header
Madhusudan (@sahnnu) profile picture

Electrical engineer who understands legacy code and makes them live,Slightly overweight but looks great in pics.Fascinated by evolution of C++. +919040609020

Banglore
Joined April 2011
Photo by Madhusudan (@sahnnu)Photo by Madhusudan (@sahnnu)Photo by Madhusudan (@sahnnu)Photo by Madhusudan (@sahnnu)Photo by Madhusudan (@sahnnu)Photo by Madhusudan (@sahnnu)Photo by Madhusudan (@sahnnu)Photo by Madhusudan (@sahnnu)Photo by Madhusudan (@sahnnu)Photo by Madhusudan (@sahnnu)
Madhusudan retweeted
Replying to @rohanpaul_ai
We've definitely felt this in practice. The biggest issue hasn't been missing tools, it's tools reasoning over different versions of the same codebase. Giving agents a shared view of the architecture has been far more useful than adding another specialized tool.Curious how others are handling this.Check out lgraph.dev
1
6
568
Madhusudan retweeted
Grok estimates the brain can process the equivalent of 43,500 token a day. We are plateaued! Grok speaks: “Estimating the daily output of the human brain in terms of "tokens" as used in Large Language Models (LLMs) like myself involves several assumptions and simplifications: 1. **Definition of a Token:** In LLMs, a token roughly corresponds to a word or a punctuation mark, or sometimes a piece of a word for more complex terms. For simplicity, let's equate one token to one word. 2. **Human Speech Output:** An average person speaks around 7,000 to 20,000 words per day. Let's take the midpoint for our calculation, which is 13,500 words. 3. **Internal Thoughts:** The brain's activity isn't just limited to spoken words. Internal thoughts, which could be considered as "processing" or "output" in a computational sense, are harder to quantify but can be significantly higher. Some studies suggest we might "think" up to 50,000 or even 70,000 words per day if we include all forms of internal dialogue and thought. 4. **Non-verbal Communication:** Gestures, facial expressions, and other non-verbal cues also convey information, but translating these into tokens would be speculative. For this calculation, we'll stick to verbal and thought "tokens." Putting this together: - **Spoken Words:** Approximately 13,500 tokens per day. - **Internal Thoughts:** Let's conservatively estimate around 30,000 tokens (considering not all thoughts are fully verbalized). **Total Daily Output:** - 13,500 (spoken) + 30,000 (thoughts) = 43,500 tokens per day. However, this is a very rough estimate because: - **Complexity of Thought:** Human thoughts are not linear like text input to an LLM. They involve complex, multi-layered processing where one thought might lead to several others simultaneously. - **Multimodal Nature:** The brain processes and outputs in ways that go beyond simple tokens, including sensory data and emotional states. In comparison: - An LLM like myself processes or generates tokens based on prompts or tasks. My daily "output" would depend on usage, but for context, a single session with a user might involve generating thousands of tokens. Over a day, with multiple users, this could easily reach or exceed the human estimate, but it's a very different kind of "output" since it's not continuous thought but rather on-demand generation based on queries. Keep in mind, this comparison is highly metaphorical and somewhat speculative. The human brain's "output" isn't just in tokens but involves a vast, interconnected network of biological processes far beyond what current AI models can replicate or even fully measure in terms of computational analogy.”
i’m not lazy, i just don’t want to hit my brain’s token limit for the day.
1
1
127
90% of Microservices interviews in 2026 are just these 12 concepts repeated:
10
54
430
58,904
Madhusudan retweeted
System Design Talks 30 - Database Locking [Walmart System Design Interview] Problem On Black Friday sale, 2 users click 'Buy' on the very last item at the exact same millisecond. If you use standard DB updates, you may sell 2 units for 1 item. How'd you handle this at scale?
12
18
2
262
9,966
Madhusudan retweeted
Are we writing fiction, or are we practising engineering? If you know my work, you know I generally prefer data and science over fiction. But @RealGeneKim's fantastic novel, The Unicorn Project, made me realise something... 🧵 1/9
2
14
2
74
11,589
Madhusudan retweeted
93.5% of Senior Backend Engineer interviews are just these 7 concepts repeated again and again.
29
319
5
3,679
386,253
Stop wasting hours trying to learn AI. 📘📚 I have already done it for you. With one list. Zero confusion. And no fluff 📹 Videos: 1. LLM Introduction: lnkd.in/dMqbaZdK 2. LLMs from Scratch: lnkd.in/dYYwEhYy 3. Agentic AI Overview (Stanford): lnkd.in/dArmMt2i 4. Building and Evaluating Agents: lnkd.in/dBWd2W8u 5. Building Effective Agents: lnkd.in/dHfdebqw 6. Building Agents with MCP: lnkd.in/dXuNHrRJ 7. Building an Agent from Scratch: lnkd.in/da3ANw3w 8. Philo Agents: lnkd.in/dq-BfZE5 🗂️ Repos 1. GenAI Agents: lnkd.in/d3UDtwwv 2. Microsoft's AI Agents for Beginners: lnkd.in/dHvTmJnv 3. Prompt Engineering Guide: lnkd.in/gJjGbxQr 4. Hands-On Large Language Models: lnkd.in/dxaVF86w 5. AI Agents for Beginners: lnkd.in/dHvTmJnv 6. GenAI Agentshttps://lnkd.in/dEt72MEy 7. Made with ML: lnkd.in/d2dMACMj 8. Hands-On AI Engineering:lnkd.in/dgQtRyk7 9. Awesome Generative AI Guide: lnkd.in/dJ8gxp3a 10. Designing Machine Learning Systems: lnkd.in/dEx8sQJK 11. Machine Learning for Beginners from Microsoft: lnkd.in/dBj3BAEY 12. LLM Course: lnkd.in/diZgGACG 🗺️ Guides 1. Google's Agent Whitepaper: lnkd.in/gFvCfbSN 2. Google's Agent Companion: lnkd.in/gfmCrgAH 3. Building Effective Agents by Anthropic: lnkd.in/gRWKANS4. 4. Claude Code Best Agentic Coding practices: lnkd.in/gs99zyCf 5. OpenAI's Practical Guide to Building Agents: lnkd.in/guRfXsFK 📚Books: 1. Understanding Deep Learning: lnkd.in/dgcB68Qt 2. Building an LLM from Scratch: lnkd.in/g2YGbnWS 3. The LLM Engineering Handbook: lnkd.in/gWUT2EXe 4. AI Agents: The Definitive Guide - Nicole Koenigstein: lnkd.in/dJ9wFNMD 5. Building Applications with AI Agents - Michael Albada: lnkd.in/dSs8srk5 6. AI Agents with MCP - Kyle Stratis: lnkd.in/dR22bEiZ 7. AI Engineering: lnkd.in/gi-mQcXa 📜 Papers 1. ReAct: lnkd.in/gRBH3ZRq 2. Generative Agents: lnkd.in/gsDCUsWm. 3. Toolformer: lnkd.in/gyzrege6 4. Chain-of-Thought Prompting: lnkd.in/gaK5CXzD. 🧑🏫 Courses: 1. HuggingFace's Agent Course: lnkd.in/gmTftTXV 2. MCP with Anthropic: lnkd.in/geffcwdq 3. Building Vector Databases with Pinecone: lnkd.in/gCS4sd7Y 4. Vector Databases from Embeddings to Apps: lnkd.in/gm9HR6_2 5. Agent Memory: lnkd.in/gNFpC542 Repost for your network ♻️ &follow for more stuff on building AI Agents.
94
1,137
27
4,197
394,078
India 🇮🇳 gets just ~1 crore foreign tourists a year. That’s less than Bangkok (3.2 Crore) alone gets. And this, in a country with: 🕌 40 UNESCO sites 🏔️ The Himalayas 🌴 Goa, Kerala and Andaman beaches 🍛 The best food on Earth 🧘‍♂️ Yoga, Ayurveda, Rich Culture, so many Festivals We have everything, except tourists. Now imagine if India touched 10 crore+ foreign visitors every year Here’s what happens 👇 💰 Billions in forex inflow 🏨 Lakhs of new jobs in hotels, taxis, crafts, food 🏡 More income in small towns & villages 🚆 Better infrastructure across tourist circuits 🌍 And a stronger global image for India Tourism is soft power + real economy combined. So what’s stopping us? ❌ Dirty public spaces ❌ Aggressive touting & scams ❌ Patchy infrastructure ❌ Poor marketing abroad ❌ Complicated visitor experience We don’t need to reinvent the Taj Mahal. We just need to make India cleaner, simpler, and kinder to our guests. Solutions are simple: ✅ Keep top 50 tourist zones spotless. ✅ Train taxi drivers, guides & shopkeepers. ✅ Make e-visa truly seamless. ✅ Launch an “India Smiles Back” global campaign. ✅ Turn hospitality into national pride again. If we fix these, India won’t just have 10 crore foreign visitors, We’ll have 100 crore stories told around the world. 🌏✨ Because the world already loves India. We just need to make visiting it a joy, not a challenge. 💛
489
802
95
4,031
337,689
Why C++23 Static Reflection Will Change Everything: The End of Boilerplate Code as We Know It by DevDebugged medium.com/p/why-c-23-static…
3
5
26
1,856
Madhusudan retweeted
Anger and anguish of General Bakshi is fully justified
243
6,314
388
29,964
1,378,124
𝗧𝗼𝗽 𝟭𝟬 𝗔𝗿𝗰𝗵𝗶𝘁𝗲𝗰𝘁𝘂𝗿𝗮𝗹 𝗣𝗮𝘁𝘁𝗲𝗿𝗻𝘀 𝗦𝗼𝗳𝘁𝘄𝗮𝗿𝗲 𝗮𝗿𝗰𝗵𝗶𝘁𝗲𝗰𝘁𝘂𝗿𝗲 is the process of designing the structure and behavior of a software system, which includes making decisions about components, modules, interfaces, and the system's organization. 𝗦𝗼𝗳𝘁𝘄𝗮𝗿𝗲 𝗮𝗿𝗰𝗵𝗶𝘁𝗲𝗰𝘁𝘂𝗿𝗲 𝗽𝗮𝘁𝘁𝗲𝗿𝗻𝘀 are essential because they provide reusable solutions to common problems in software design. They capture best practices and proven solutions for designing reliable, scalable, maintainable, and extensible software systems. There are many software architecture design patterns to know, but some of the most important ones are: 𝟭. 𝗟𝗮𝘆𝗲𝗿𝗲𝗱 𝗔𝗿𝗰𝗵𝗶𝘁𝗲𝗰𝘁𝘂𝗿𝗲: This pattern is based on dividing the application into logical layers, where each layer has a specific responsibility and interacts with the layers above and below it. 𝟮. 𝗠𝗶𝗰𝗿𝗼𝘀𝗲𝗿𝘃𝗶𝗰𝗲𝘀 𝗔𝗿𝗰𝗵𝗶𝘁𝗲𝗰𝘁𝘂𝗿𝗲: This pattern is based on decomposing the application into small, independent services that communicate through well-defined APIs. 𝟯. 𝗘𝘃𝗲𝗻𝘁-𝗗𝗿𝗶𝘃𝗲𝗻 𝗔𝗿𝗰𝗵𝗶𝘁𝗲𝗰𝘁𝘂𝗿𝗲: This pattern uses events to communicate between different components or services, where events trigger actions or reactions in the system. 𝟰. 𝗦𝗽𝗮𝗰𝗲-𝗯𝗮𝘀𝗲𝗱 𝗮𝗿𝗰𝗵𝗶𝘁𝗲𝗰𝘁𝘂𝗿𝗲 (𝗦𝗕𝗔): is a software design method that centers the system's structure around the idea of "spaces," which are independent and autonomous units. 𝟱. 𝗠𝗶𝗰𝗿𝗼𝗸𝗲𝗿𝗻𝗲𝗹 𝗮𝗿𝗰𝗵𝗶𝘁𝗲𝗰𝘁𝘂𝗿𝗲: this is an approach where the kernel provides minimal functionality and services are implemented as separate modules outside the kernel. 𝟲. 𝗣𝗲𝗲𝗿 𝘁𝗼 𝗣𝗲𝗲𝗿 𝗮𝗿𝗰𝗵𝗶𝘁𝗲𝗰𝘁𝘂𝗿𝗮𝗹 𝗽𝗮𝘁𝘁𝗲𝗿𝗻: this is a decentralized model where nodes in a network can act as both clients and servers, allowing for distributed sharing of resources and information without a central authority. 𝟳. 𝗖𝗹𝗼𝘂𝗱 𝗻𝗮𝘁𝗶𝘃𝗲 𝘀𝗼𝗳𝘁𝘄𝗮𝗿𝗲 𝗮𝗿𝗰𝗵𝗶𝘁𝗲𝗰𝘁𝘂𝗿𝗲: this is a pattern where applications are developed and deployed to run on cloud platforms, leveraging cloud services and infrastructure for scalability, reliability, and agility. 𝟴. 𝗖𝗤𝗥𝗦 (𝗖𝗼𝗺𝗺𝗮𝗻𝗱 𝗤𝘂𝗲𝗿𝘆 𝗥𝗲𝘀𝗽𝗼𝗻𝘀𝗶𝗯𝗶𝗹𝗶𝘁𝘆 𝗦𝗲𝗴𝗿𝗲𝗴𝗮𝘁𝗶𝗼𝗻): This pattern separates the command and query responsibilities of an application's model, making it easier to scale and optimize the application. 𝟵. 𝗛𝗲𝘅𝗮𝗴𝗼𝗻𝗮𝗹 𝗔𝗿𝗰𝗵𝗶𝘁𝗲𝗰𝘁𝘂𝗿𝗲: This pattern separates the application into an inner and outer layer, where the inner layer contains the business logic and the outer layer includes the interfaces with the outside world. 𝟭𝟬. 𝗖𝗹𝗲𝗮𝗻 𝗔𝗿𝗰𝗵𝗶𝘁𝗲𝗰𝘁𝘂𝗿𝗲: This pattern emphasizes separating concerns and decoupling components, making it easier to maintain and change an application over time. #softwarearchitecture #programming #developers
6
104
1
465
37,031
Madhusudan retweeted
Replying to @svembu
I didn’t see it referenced but this notion of accidental vs. essential complexity comes from the wonderful “Out of the Tar Pit” paper: github.com/papers-we-love/pa…
2
6
3,899
Madhusudan retweeted
Smart Indian-American children, whose parents work in engineering or tech, are moving to High Finance. This mirrors what smart Americans have done for well over a generation - when I got my PhD from Princeton in 1994, a former engineer from silicon valley, who moved to a Wall Street job, tried to persuade me to join their quantitative analysis and trading team and I instead took a lower paying job as an engineer at Qualcomm. I did not find the idea of making money on money appealing - probably my father's admonition from childhood. Recently I have noticed that smart well-educated Indians are gravitating to Finance. This is not good. We need to apply our talents to solve hard engineering and tech problems, hard urban and rural infrastructure problems, hard health care problems and so on. Making money on money feels easy but a finance-driven economy would destroy society. This is ancient wisdom, and we must pay heed.🙏
499
1,266
152
8,014
529,366
Replying to @svembu
True. Back of envelope maths- if IT exports go down by 50% and that is visible and possible- Q-commerce, real estate, FMCG, Tourism and retail will crash in large cities. People will cook and become healthier. We will he back to basics- only essentials.
3
16
1,624
Silence is a space beyond creation and Creator, beyond life and death. As you practice silence, slowly, you can become #silence. #SadhguruQuotes
8
134
7
250
The next 3 articles in my CPU rasterizer tutorial series are done! These are all about adding full 3D support, with perspective projection, perspective interpolation, triangle clipping, and a depth buffer. lisyarus.github.io/blog/post…
3
38
4
303
18,205
Madhusudan retweeted
hot take ik X will hate me for this Not everything needs microservices. Sometimes, keeping it monolithic, simple, and shipping fast is the way to go. Gain users first, and then consider switching to microservices. build for the needs you have now, not the ones you might have later ok there might be Sr/Staff/Principal engineers who might not agree with me but I want to know their POV cause this is how I can grow
19
58
9
651
49,806