<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Chinmay Vivek 🇮🇳 🦀 on Medium]]></title>
        <description><![CDATA[Stories by Chinmay Vivek 🇮🇳 🦀 on Medium]]></description>
        <link>https://medium.com/@chinmayvivek?source=rss-8ae071e9a1e1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wtZ6im5Uc41ic5lao2tsYA.jpeg</url>
            <title>Stories by Chinmay Vivek 🇮🇳 🦀 on Medium</title>
            <link>https://medium.com/@chinmayvivek?source=rss-8ae071e9a1e1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 02:59:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chinmayvivek/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What If an ERP Framework Had Almost No Dependencies?]]></title>
            <link>https://chinmayvivek.medium.com/what-if-an-erp-framework-had-almost-no-dependencies-330eda269749?source=rss-8ae071e9a1e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/330eda269749</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[erp-software]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[Chinmay Vivek  ]]></dc:creator>
            <pubDate>Thu, 24 Sep 2026 07:27:45 GMT</pubDate>
            <atom:updated>2026-09-24T07:27:45.119Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Building Sumeru: a modular ERP framework in Go, designed around stability, simplicity, and fewer dependencies.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sKzFswXKBXYxjKZZIvoXUg.png" /><figcaption><em>a modular ERP framework in Go, designed around stability, simplicity, and fewer dependencies.</em></figcaption></figure><h3>Why I’m Building an ERP Framework in Go - Without the Dependency Jungle</h3><p>ERP software is one of those things that looks simple from the outside.</p><p><strong><em>You have customers, Products, Sales, Invoices, Inventory, Users, Reports, Accounting.</em></strong></p><p>Then you start building one.</p><p>Suddenly, you’re dealing with hundreds of interconnected concepts, business rules, database relationships, permissions, workflows, UI definitions, integrations, and edge cases that have accumulated over years.</p><p>That complexity is exactly why I started building <strong>Sumeru</strong>.</p><p>Sumeru on GitHub: <a href="https://github.com/projectmeru/sumeru">https://github.com/projectmeru/sumeru</a></p><p>Sumeru is my attempt to build something different:</p><blockquote><strong><em>A modular ERP framework in Go, with a strong focus on stability, simplicity, and minimal external dependencies.</em></strong></blockquote><p>It is still pre-alpha and not intended for production workloads yet. The goal right now is to build the foundation correctly before worrying about everything else. GitHub : <a href="https://github.com/projectmeru/sumeru">https://github.com/projectmeru/sumeru</a></p><h3>The Problem I Wanted to Solve</h3><p>There are already excellent ERP platforms in the open-source world.</p><p>So why build another one?</p><p>For me, the answer wasn’t:</p><p><em>“There aren’t enough ERP systems.”</em></p><p>There are plenty.</p><p>The interesting question was:</p><p><strong>What would an ERP framework look like if we designed it from the ground up around Go, modularity, and minimal dependency overhead?</strong></p><p>That question became Sumeru.</p><p>I wanted an ERP framework where the core ideas were easy to understand.</p><p><strong>Where adding a business module didn’t require modifying the entire application.</strong></p><p>Where the framework could discover modules, understand their dependencies, create their database structures, and connect them to the application.</p><p>And most importantly, where the foundation itself would remain relatively small and predictable.</p><h3>Why Go?</h3><p>Go was a natural choice for this experiment.</p><p>Go gives you a surprisingly strong foundation for building server-side infrastructure without requiring a huge ecosystem of frameworks.</p><p>The language itself provides many of the things I want from an ERP backend:</p><ul><li>A simple language model</li><li>Strong typing</li><li>Excellent concurrency primitives</li><li>A powerful standard library</li><li>Fast compilation</li><li>A single deployable binary</li><li>Straightforward tooling</li><li>Predictable runtime behavior</li></ul><p>But the most important reason is simplicity.</p><p>I don’t want the framework to depend on dozens of layers just to start an HTTP server, process a request, or execute application logic.</p><p>The philosophy is simple:</p><p><strong>Use the language wherever possible. Add a dependency when it genuinely solves a problem.</strong></p><p>Not the other way around.</p><h3>The Dependency Problem</h3><p>Modern application development can sometimes turn into dependency management disguised as software development.</p><p>You start with one library.</p><p>Then that library needs another library.</p><p>That library needs three more.</p><p>Eventually, your application depends on an ecosystem that you didn’t design and don’t completely control.</p><p>Dependencies aren’t inherently bad.</p><p>They’re incredibly useful.</p><p>But an ERP framework is infrastructure.</p><p>It can potentially become the foundation for applications that businesses depend on for years.</p><p>That changes the equation.</p><p>I want Sumeru to have a relatively small and understandable foundation.</p><p>The goal isn’t to eliminate every external dependency.</p><p>The goal is to <strong>avoid unnecessary dependency chains</strong>.</p><p>If Go’s standard library can solve the problem well, I’d rather start there.</p><h3>ERP Should Be Modular</h3><p>One of the central ideas behind Sumeru is that an ERP shouldn’t be one giant application.</p><p>It should be a collection of business capabilities.</p><p>For example:</p><ul><li>Contacts</li><li>Products</li><li>CRM</li><li>Sales</li><li>Inventory</li><li>Invoicing</li><li>Users</li><li>Companies</li><li>Localization</li><li>Other industry-specific applications</li></ul><p>Each capability should be able to exist as an addon/module.</p><p>Sumeru’s architecture follows this idea: addons can contain manifests, Go models, XML views and menus, and dependencies. The kernel discovers and loads them as part of the application. GitHub</p><p>This creates a much more interesting architecture.</p><p>Instead of thinking:</p><blockquote><em>“I am building an ERP.”</em></blockquote><p>You can think:</p><blockquote><em>“I am building a platform that can host ERP applications.”</em></blockquote><p>That’s a significant difference.</p><h3>The Kernel Is the Important Part</h3><p>When building an ERP, it’s tempting to start with the visible features.</p><p>Build the customer screen.</p><p>Then products.</p><p>Then invoices.</p><p>Then sales.</p><p>Then inventory.</p><p>But the real challenge isn’t creating those screens.</p><p>The real challenge is building the <strong>kernel underneath them</strong>.</p><p>Sumeru therefore focuses heavily on the framework itself.</p><p>The kernel needs to understand things such as:</p><ul><li>Modules</li><li>Dependencies</li><li>Models</li><li>Database mappings</li><li>Views</li><li>Menus</li><li>Permissions</li><li>Users</li><li>Companies</li><li>Requests</li><li>Sessions</li><li>APIs</li><li>Application lifecycle</li></ul><p>Once those primitives are stable, individual ERP applications can be built on top.</p><p>That’s the part of the project that interests me the most.</p><h3>A Module Should Feel Like a Module</h3><p>One of the design goals is that an addon should be relatively self-contained.</p><p>A typical application can define its models and views without having to understand the internals of the entire framework.</p><p>Conceptually, the structure looks something like:</p><pre>ERP<br>│<br>├── Kernel<br>│   ├── ORM<br>│   ├── HTTP<br>│   ├── Security<br>│   ├── Users<br>│   ├── Companies<br>│   └── Module System<br>│<br>├── CRM<br>│<br>├── Sales<br>│<br>├── Inventory<br>│<br>├── Invoicing<br>│<br>└── Custom Applications</pre><p>The kernel provides the infrastructure.</p><p>The addons provide the business functionality.</p><p>That separation is important.</p><p>It means the framework can remain relatively stable while applications evolve independently.</p><h3>Why XML?</h3><p>Another interesting part of Sumeru is the use of XML for views and menus.</p><p>The idea is that the backend shouldn’t have to hard-code every piece of the application’s interface.</p><p>Instead, modules can describe parts of the UI declaratively.</p><p>For example, a module can define how a model should appear as a list, form, kanban, calendar, graph, pivot, or other workspace view.</p><p>Sumeru currently includes a workspace supporting multiple view types, including list, form, kanban, graph, pivot, calendar, gantt, map, and cohort views. GitHub</p><p>This is important for an ERP because business applications are often <strong>data-driven</strong>.</p><p>The framework already knows what a model is.</p><p>It knows its fields.</p><p>It knows permissions.</p><p>It knows relationships.</p><p>So the UI can be generated and configured around those concepts rather than every screen being manually implemented from scratch.</p><h3>The Addon Philosophy</h3><p>I want addons to be boring.</p><p>And I mean that as a compliment.</p><p>A good addon shouldn’t need to reinvent:</p><ul><li>Authentication</li><li>Database access</li><li>Routing</li><li>Permissions</li><li>User management</li><li>Company management</li><li>UI infrastructure</li><li>Search</li><li>Filtering</li><li>Module loading</li></ul><p>Those should belong to the framework.</p><p>The addon should primarily describe:</p><p><strong>What business problem does this module solve?</strong></p><p>That is where the business logic belongs.</p><h3>Stability Before Features</h3><p>This is probably the most important reason I started Sumeru.</p><p>It’s very easy to build an impressive-looking ERP demo.</p><p>Add dashboards.</p><p>Add charts.</p><p>Add animations.</p><p>Add twenty modules.</p><p>Add AI.</p><p>Add integrations.</p><p>Add hundreds of buttons.</p><p>But none of that matters if the foundation isn’t stable.</p><p>I would rather have a smaller ERP framework with a strong kernel than a huge ERP application built on unstable foundations.</p><p>That’s why Sumeru is being approached as a framework first.</p><p>The goal is to make the core predictable.</p><p>Then build applications on top of it.</p><h3>PostgreSQL as the Database Foundation</h3><p>Sumeru currently uses PostgreSQL as its persistence layer and provides an ORM/model layer for working with business data. The framework also supports things such as model synchronization, record rules, and multi-company behavior. GitHub</p><p>The database is another area where simplicity matters.</p><p>ERP systems are fundamentally data-heavy systems.</p><p>Almost everything eventually becomes:</p><pre>Business Rule<br>     ↓<br>Model<br>     ↓<br>Database<br>     ↓<br>Transaction<br>     ↓<br>Business Result</pre><p>If this foundation is reliable, everything built above it becomes easier.</p><h3>A Framework, Not Just an ERP</h3><p>This distinction is becoming increasingly important to me as Sumeru evolves.</p><p>I don’t want Sumeru to only answer:</p><blockquote><em>“How do I build a sales module?”</em></blockquote><p>I want it to answer:</p><blockquote><em>“How do I build an application that behaves like a native part of an ERP?”</em></blockquote><p>That means providing reusable primitives for developers.</p><p>A developer should be able to create a new module without needing to understand every internal component of the ERP.</p><p>Ideally:</p><pre>Create addon<br>      ↓<br>Define manifest<br>      ↓<br>Define models<br>      ↓<br>Define views<br>      ↓<br>Declare dependencies<br>      ↓<br>Install<br>      ↓<br>Framework handles the rest</pre><p>That’s the developer experience I’m aiming for.</p><h3>Why “Sumeru”?</h3><p>The name comes from <strong>Mount Sumeru</strong>, the mythological cosmic mountain found in several Hindu and Buddhist traditions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K9aXicZAe17QNE2FYAlw4Q.png" /><figcaption><strong>Mount Sumeru</strong></figcaption></figure><p>I liked the metaphor.</p><p>A mountain is built from layers.</p><p>So is software.</p><p>At the top, users see applications.</p><p>Underneath are modules.</p><p>Underneath those are the framework primitives.</p><p>And underneath everything is the foundation.</p><p>If the foundation is weak, the mountain doesn’t matter.</p><h3>Where Sumeru Is Today</h3><p>Sumeru is still early.</p><p>The repository currently describes it as <strong>pre-alpha</strong>, and explicitly warns against using it for production or commercial workloads because APIs, data models, and behavior can still change. GitHub</p><p>The project already has the basic shape of the platform:</p><ul><li>A Go-based ERP kernel</li><li>Modular addons</li><li>PostgreSQL persistence</li><li>ORM/model infrastructure</li><li>XML-defined views and menus</li><li>JSON-RPC API</li><li>Multi-company support</li><li>Record rules</li><li>A web workspace</li><li>Search, filters, grouping and saved searches</li><li>Multiple business-oriented view types</li><li>An addon SDK intended to provide a stable interface for module developers GitHub</li></ul><p>But there is still a lot to build.</p><p>And that’s the exciting part.</p><h3>What I Want Sumeru to Become</h3><p>The long-term goal isn’t to compete feature-for-feature with established ERP giants.</p><p>The goal is to create a <strong>solid ERP framework that developers can understand and extend</strong>.</p><p>I want someone to be able to look at the architecture and think:</p><blockquote><em>“I understand how this works.”</em></blockquote><p>I want creating a module to be straightforward.</p><p>I want upgrading the framework to be predictable.</p><p>I want the core to remain small enough that developers can actually read it.</p><p>And I want the number of things you need to install before writing your first ERP module to be as small as possible.</p><h3>The Bigger Idea</h3><p>There is a pattern I’ve noticed in software engineering.</p><p>We often solve complexity by adding more abstraction.</p><p>Then we solve the complexity of those abstractions by adding another layer.</p><p>Eventually, the system becomes powerful but difficult to understand.</p><p>Sumeru is an attempt to go in the other direction.</p><p>Not necessarily simpler in terms of functionality.</p><p><strong>Simpler in terms of foundations.</strong></p><p>Use Go.</p><p>Use the standard library where it makes sense.</p><p>Keep the kernel understandable.</p><p>Make applications modular.</p><p>Keep dependencies intentional.</p><p>Build the framework first.</p><p>Then let the ERP grow around it.</p><h3>Building an ERP Is Really Building a Platform</h3><p>That’s the lesson I’m discovering while building Sumeru.</p><p>The difficult part isn’t creating an invoice screen.</p><p>The difficult part is creating the machinery that allows someone else to create an invoice screen without rebuilding the entire application.</p><p>That’s what makes a framework valuable.</p><p>Sumeru is still at the beginning of that journey.</p><p>But the direction is clear:</p><p><strong>A modular ERP framework in Go.</strong></p><p><strong>Stable foundations.</strong></p><p><strong>Minimal unnecessary dependencies.</strong></p><p><strong>Business functionality delivered as addons.</strong></p><p>And hopefully, a platform that other developers can build on top of rather than another monolithic application they have to work around.</p><p>If that idea interests you, the project is open source and the code is available on <a href="https://github.com/projectmeru/sumeru">GitHub</a>.</p><p>Explore Sumeru on <a href="https://github.com/projectmeru/sumeru">GitHub</a></p><p>This is only the beginning.</p><p><strong>Sumeru is the mountain I’m trying to build.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=330eda269749" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Can Write Code. Do We Still Need to Learn Coding?]]></title>
            <link>https://chinmayvivek.medium.com/ai-can-write-code-do-we-still-need-to-learn-coding-abedf116a82f?source=rss-8ae071e9a1e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/abedf116a82f</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Chinmay Vivek  ]]></dc:creator>
            <pubDate>Fri, 19 Jun 2026 05:01:02 GMT</pubDate>
            <atom:updated>2026-06-19T05:01:02.943Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>The rise of AI coding assistants has sparked a question among students and aspiring developers:</blockquote><figure><img alt="AI Can Write Code. Do We Still Need to Learn Coding?" src="https://cdn-images-1.medium.com/max/768/1*K0DfaAu03zKBFLmDV0So6w.jpeg" /></figure><p><strong>“If AI can write code in seconds, why should I spend months or years learning programming?”</strong></p><p>It is a fair question.</p><p>Today, AI can generate functions, build APIs, create websites, fix bugs, and even explain code. Tasks that once took hours can now be completed in minutes.</p><p>At first glance, it may seem like coding skills are becoming unnecessary.</p><p>The reality is quite different.</p><h3>AI Writes Code. Engineers Solve Problems.</h3><p>Most people confuse coding with software engineering.</p><p>Coding is the act of writing instructions.</p><p>Engineering is understanding a problem, designing a solution, making trade-offs, handling edge cases, ensuring security, and building systems that work reliably at scale.</p><p>AI can generate code.</p><p>It cannot fully understand your business requirements, user expectations, technical constraints, or long-term architectural decisions.</p><p><strong>Someone still needs to decide:</strong></p><ul><li>What should be built?</li><li>How should it work?</li><li>Which technologies should be used?</li><li>How should the system scale?</li><li>How should security and performance be handled?</li></ul><p>Those decisions require human understanding.</p><h3>AI Is a Tool, Not a Replacement</h3><p>Think about calculators.</p><blockquote>When calculators became common, mathematics did not disappear.In fact, understanding mathematics became even more important because people could focus on solving complex problems instead of spending time on calculations.</blockquote><p>AI is doing something similar for software development.</p><p>Developers who understand programming can use AI to become more productive.</p><p>Developers who do not understand programming often struggle to verify whether the AI-generated code is correct.</p><p>The difference is not who has access to AI.</p><p>The difference is who knows how to use it effectively.</p><h3>The Real Skill Is Thinking</h3><p>Many beginners believe learning programming means memorizing syntax.</p><p>That was never the goal.</p><p>Programming teaches a much more valuable skill:</p><p>Problem solving.</p><p>When you learn algorithms and data structures, you learn how to break large problems into smaller parts.</p><p>When you debug code, you learn analytical thinking.</p><p>When you build applications, you learn how systems interact.</p><p>These skills remain valuable whether code is written by a human, an AI, or a combination of both.</p><p>Technology changes.</p><p>The ability to think does not.</p><h3>Who Will Benefit Most From AI?</h3><p>The biggest winners in the AI era will not be people who avoid learning programming.</p><p>They will be people who understand programming deeply.</p><p>A developer who understands system design, algorithms, databases, networking, and software architecture can use AI to work faster than ever before.</p><p>A person without those fundamentals may generate code but struggle to build reliable software.</p><p>AI increases productivity.</p><p>It does not replace expertise.</p><h3>The Future Belongs to Builders</h3><p>The question is no longer:</p><p>“Can you write code?”</p><p>The question is:</p><p>“Can you understand problems, design solutions, and use modern tools effectively?”</p><p>AI has changed how software is built.</p><p>It has not removed the need for engineers.</p><p>In fact, as AI becomes more powerful, the value of strong fundamentals becomes even greater.</p><p>Learning programming today is not about competing with AI.</p><p>It is about learning how to think, solve problems, and build technology with AI as your partner.</p><p>The future belongs to those who can combine human intelligence with powerful tools.</p><p>And that starts with learning the fundamentals.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abedf116a82f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vector Databases Simplified: The Most Important AI Component Nobody Talks About]]></title>
            <link>https://chinmayvivek.medium.com/vector-databases-simplified-the-most-important-ai-component-nobody-talks-about-f7c95d61b9b2?source=rss-8ae071e9a1e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7c95d61b9b2</guid>
            <category><![CDATA[startup-lessons]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[vector-database]]></category>
            <dc:creator><![CDATA[Chinmay Vivek  ]]></dc:creator>
            <pubDate>Mon, 01 Jun 2026 07:12:59 GMT</pubDate>
            <atom:updated>2026-06-01T07:12:59.778Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Vector Databases Simplified: The Most Important AI Component Nobody Talks About" src="https://cdn-images-1.medium.com/max/1024/1*fPw7cqJqGaWwI4oETMs0Tw.png" /></figure><p>Most AI builders spend weeks choosing models.</p><p>GPT-4 or Claude?</p><p>Open-source or closed-source?</p><p>70B parameters or 8B?</p><p>Prompt engineering or fine-tuning?</p><p>I’ve done it too.</p><p>But after building multiple AI products, I’ve learned something surprising:</p><p>Many AI systems don’t fail because of the model.</p><p>They fail because they can’t find the right information.</p><p>And that’s exactly why vector databases have become one of the most important technologies in modern AI.</p><h3>The Problem Most People Discover Too Late</h3><p>Imagine you’re building an AI assistant for customer support.</p><p>You upload:</p><ul><li>Product documentation</li><li>FAQs</li><li>Internal knowledge base</li><li>Support tickets</li><li>Company policies</li></ul><p>Everything seems perfect.</p><p>Now a customer asks:</p><blockquote><em>“How can I stop users from cancelling their subscriptions?”</em></blockquote><p>The answer exists somewhere inside your documentation.</p><p>But here’s the challenge.</p><p>The documentation doesn’t use those exact words.</p><p>Instead it contains phrases like:</p><ul><li>Reduce churn</li><li>Improve retention</li><li>Prevent subscription cancellations</li><li>Increase renewal rates</li></ul><p>A traditional database struggles here.</p><p>It searches for exact matches.</p><p>The user asked about “users cancelling subscriptions.”</p><p>The document talks about “reducing churn.”</p><p>Technically different words.</p><p>Practically the same meaning.</p><p>This is where vector databases shine.</p><h3>Traditional Databases vs Vector Databases</h3><p>Most developers are familiar with traditional databases.</p><p>Let’s say you have a user table.</p><p>ID, Name, Email: 1, John, <a href="/service/mailto:john@email.com">john@email.com</a></p><p>If you search:</p><pre>SELECT * FROM users WHERE name=&#39;John&#39;;</pre><p>The database finds exact matches.</p><p>This works beautifully for structured data.</p><p>But language isn’t structured.</p><p>Humans don’t communicate using exact matches.</p><p>We communicate using meaning.</p><p>And meaning is messy.</p><p>A user may ask:</p><ul><li>How do I increase revenue?</li><li>How do I grow sales?</li><li>How do I make more money?</li></ul><p>Different words.</p><p>Same intent.</p><p>Traditional databases see differences.</p><p>Vector databases see similarity.</p><p>That’s the entire magic.</p><h3>What Is a Vector?</h3><p>Before understanding vector databases, we need to understand vectors.</p><p>When AI models process text, they don’t truly understand words.</p><p>They convert them into numbers.</p><p>Lots of numbers.</p><p>For example:</p><p>“The cat is sleeping”</p><p>might become:</p><pre>[0.21, -0.48, 0.92, 0.15, ...]</pre><p>This list of numbers is called an embedding.</p><p>Or more simply:</p><p>A vector.</p><p>Every piece of text gets converted into a vector representation.</p><p>The remarkable thing is that similar meanings produce similar vectors.</p><p>For example:</p><p>“How do I reduce churn?”</p><p>and</p><p>“How do I retain customers?”</p><p>will generate vectors that are very close to each other in vector space.</p><p>Even though they share almost no words.</p><p>This changes everything.</p><h3>The Mental Model That Made It Click for Me</h3><p>Think of a traditional database like a library catalog.</p><p>You search using exact titles.</p><p>If the title doesn’t match, you might never find the book.</p><p>A vector database works differently.</p><p>Imagine a librarian who understands concepts.</p><p>You ask:</p><blockquote><em>“I want books about becoming healthier.”</em></blockquote><p>The librarian understands that books about:</p><ul><li>Exercise</li><li>Nutrition</li><li>Sleep</li><li>Weight loss</li></ul><p>might all be relevant.</p><p>That’s essentially what vector search does.</p><p>It retrieves information based on meaning rather than keywords.</p><h3>How Vector Databases Actually Work</h3><p>The workflow is surprisingly simple.</p><h3>Step 1: Collect Data</h3><p>You start with:</p><ul><li>Documents</li><li>PDFs</li><li>Articles</li><li>Support tickets</li><li>Emails</li><li>Product manuals</li></ul><p>Anything containing information.</p><h3>Step 2: Generate Embeddings</h3><p>An embedding model converts every piece of content into vectors.</p><p>For example:</p><pre>Document → Embedding Model → Vector</pre><p>Instead of storing words, you’re now storing meaning.</p><h3>Step 3: Store Vectors</h3><p>These vectors are stored inside a vector database.</p><p>Popular options include:</p><ul><li>Pinecone</li><li>Weaviate</li><li>Qdrant</li><li>Milvus</li><li>Chroma</li></ul><p>Each is optimized for high-speed similarity search.</p><h3>Step 4: User Query</h3><p>When a user asks a question:</p><blockquote><em>“How can I improve retention?”</em></blockquote><p>The same embedding model converts the query into a vector.</p><h3>Step 5: Similarity Search</h3><p>The vector database searches for nearby vectors.</p><p>Not matching keywords.</p><p>Matching meaning.</p><p>The closest vectors are retrieved.</p><h3>Step 6: Send Context to the LLM</h3><p>The retrieved documents are added to the prompt.</p><p>Now the LLM has relevant context.</p><p>Only then does it generate an answer.</p><p>This process powers most modern RAG systems.</p><h3>Why This Matters More Than Most People Realize</h3><p>Many teams believe the model is responsible for answer quality.</p><p>That’s only partially true.</p><p>Think about it this way.</p><p>Imagine hiring the smartest consultant in the world.</p><p>Now give them the wrong documents.</p><p>Bad data.</p><p>Missing context.</p><p>Outdated information.</p><p>What happens?</p><p>They still produce poor answers.</p><p>Not because they’re unintelligent.</p><p>Because they lacked the right information.</p><p>LLMs work the same way.</p><h3>The Biggest Mistake AI Teams Make</h3><p>I’ve seen this repeatedly.</p><p>Teams spend months optimizing:</p><ul><li>Model selection</li><li>Prompt engineering</li><li>Temperature tuning</li><li>Fine-tuning</li></ul><p>Meanwhile retrieval quality remains mediocre.</p><p>The result?</p><p>Users complain that the AI is unreliable.</p><p>The model gets blamed.</p><p>Retrieval was the real issue.</p><p>In many production systems:</p><p>Retrieval quality matters more than model quality.</p><p>That’s a statement that surprises people.</p><p>But it’s often true.</p><h3>Why Vector Databases Became Essential for RAG</h3><p>Retrieval-Augmented Generation (RAG) is now the default architecture for AI applications.</p><p>Without retrieval:</p><p>LLMs rely only on training data.</p><p>With retrieval:</p><p>LLMs can access fresh, private, and domain-specific information.</p><p>This enables:</p><ul><li>AI customer support</li><li>Internal knowledge assistants</li><li>Enterprise search</li><li>Legal document analysis</li><li>Medical information retrieval</li><li>Educational AI tutors</li></ul><p>Vector databases are the engine behind all of this.</p><p>Without them, RAG simply doesn’t work well.</p><h3>Practical Lessons From Building AI Products</h3><p>After working with AI systems in production, here are a few lessons worth remembering:</p><h3>1. Better Retrieval Beats Bigger Models</h3><p>A smaller model with excellent context often outperforms a larger model with poor context.</p><h3>2. Chunking Matters More Than People Expect</h3><p>Poor chunking can destroy retrieval performance.</p><p>Good data split incorrectly becomes bad data.</p><h3>3. Embeddings Matter</h3><p>Not all embedding models perform equally.</p><p>Choosing the right embedding model can dramatically improve results.</p><h3>4. Users Don’t Care About Your Architecture</h3><p>Nobody asks which vector database you’re using.</p><p>They care whether the answer is correct.</p><h3>5. Search Is Becoming More Important Than Generation</h3><p>As models improve, retrieval quality becomes a bigger differentiator.</p><p>The gap between products increasingly comes from information access rather than model intelligence.</p><h3>The Future of AI Isn’t Just Better Models</h3><p>Every year, models get smarter.</p><p>That trend will continue.</p><p>But the next generation of AI products won’t win simply because they have the best model.</p><p>They’ll win because they can find the right information faster, more accurately, and more reliably.</p><p>That’s why vector databases matter.</p><p>They’re not just another database technology.</p><p>They’re the bridge between human intent and machine intelligence.</p><p>And in many AI systems, they’re quietly doing more work than the model itself.</p><h3>Final Thought</h3><p>The AI industry loves talking about models.</p><p>But when users judge your product, they don’t care about parameter counts, benchmark scores, or architecture diagrams.</p><p>They care whether the answer is useful.</p><p>And useful answers start with finding the right information.</p><p>The model writes the response.</p><p>The vector database makes that response possible.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7c95d61b9b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI is Democratizing Coding, But Your Stack Still Matters]]></title>
            <link>https://chinmayvivek.medium.com/ai-is-democratizing-coding-but-your-stack-still-matters-167c630063f9?source=rss-8ae071e9a1e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/167c630063f9</guid>
            <category><![CDATA[tech-startups]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Chinmay Vivek  ]]></dc:creator>
            <pubDate>Mon, 23 Mar 2026 05:11:00 GMT</pubDate>
            <atom:updated>2026-03-23T05:11:00.673Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Artificial Intelligence is changing the game for developers. Tools can now generate JavaScript, Python, and other code snippets in seconds. Weekend projects that once took hours or even days can now be whipped up in minutes. It feels like coding is becoming accessible to everyone.</blockquote><blockquote>But here’s the catch: <strong>AI can write code, but it can’t write your product vision</strong>.</blockquote><figure><img alt="AI is Democratizing Coding, But Your Stack Still Matters" src="https://cdn-images-1.medium.com/max/768/1*9-JlafSCfKvlHuzDuerpdw.jpeg" /></figure><h3>The AI Hype vs. Reality</h3><p>There’s a growing myth that AI makes coding “easy” and that you no longer need to think carefully about the technology behind your product. This is dangerously misleading. A code-generating AI can handle syntax, boilerplate, and repetitive tasks — but it doesn’t understand <strong>your idea, your users, or the long-term implications of your tech choices</strong>.</p><p>Think about it this way: AI can generate a working login form in JavaScript in seconds. But choosing whether to use a serverless backend, a relational database, or a NoSQL solution requires understanding your product’s scale, performance needs, and growth plans. That’s a decision no AI can make for you.</p><h3>Why Your Stack Still Matters</h3><p>Even in an AI-driven world, the <strong>tech stack</strong> is critical. The stack defines:</p><ul><li><strong>Scalability:</strong> Can your app handle 10 users or 10 million?</li><li><strong>Performance:</strong> Will your app feel fast, or will it lag under pressure?</li><li><strong>Maintainability:</strong> Can your team update, debug, and improve it over time?</li></ul><p>Picking the wrong stack can turn a promising idea into a slow, buggy, and expensive project. AI can generate code, but it can’t compensate for a poor architectural choice.</p><h3>How to Approach Stack Decisions</h3><ol><li><strong>Start with your idea, not the tools.</strong><br>The product dictates the stack, not the other way around. Ask yourself: What problem am I solving? How many users do I expect? What features are critical?</li><li><strong>Balance AI with human judgment.</strong><br>Use AI to accelerate coding, testing, and prototyping — but let experienced developers guide architecture decisions.</li><li><strong>Learn from experience.</strong><br>Look at similar products in your space. Which stacks succeeded? Which failed? Lessons from past projects are invaluable.</li></ol><h3>The Bottom Line</h3><p>AI is an incredible enabler, but it’s not a replacement for thoughtful decision-making. JavaScript, Python, and other languages are easier to access than ever, but <strong>your stack should always follow your idea</strong>, not the hype.</p><p>AI can make you faster but choosing the right stack makes you smarter.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=167c630063f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VL‑JEPA: A Paradigm Shift in Vision‑Language AI (And Why It Matters)]]></title>
            <link>https://chinmayvivek.medium.com/vl-jepa-a-paradigm-shift-in-vision-language-ai-and-why-it-matters-3906bab6026a?source=rss-8ae071e9a1e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/3906bab6026a</guid>
            <category><![CDATA[research]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[innovation]]></category>
            <dc:creator><![CDATA[Chinmay Vivek  ]]></dc:creator>
            <pubDate>Thu, 08 Jan 2026 14:40:32 GMT</pubDate>
            <atom:updated>2026-01-08T14:55:39.871Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PXIFK93eJPQMZosc" /><figcaption>VL‑JEPA: A Paradigm Shift in Vision‑Language AI (And Why It Matters)</figcaption></figure><blockquote><a href="https://arxiv.org/pdf/2512.10942"><strong><em>VL‑JEPA (Vision‑Language Joint Embedding Predictive Architecture)</em></strong></a></blockquote><blockquote><em>is one of the most exciting vision‑language AI papers of late 2025 and it’s not just another incremental improvement. It rethinks how models represent meaning rather than generate words.</em></blockquote><p><strong>Authors:</strong> <em>Delong Chen, Mustafa Shukor, Theo Moutakanni, Willy Chung,<br>Lei (Jade) Yu, Tejaswi Kasarla, Allen Bolourchi, Yann LeCun, and Pascale Fung.</em></p><h3>What is VL‑JEPA?</h3><p>Traditional vision‑language models (VLMs) generate text <strong>one token at a time</strong> think typical captioning or visual question answering systems. VL‑JEPA does something radically different:</p><p><strong>Predicts semantic embeddings first</strong>, capturing the <em>meaning</em> of the answer in a dense latent space, then <strong>decodes into text only when needed</strong>.</p><p><strong>This shift has profound implications:</strong></p><ul><li>Focuses on <strong><em>semantics</em></strong> instead of surface wording</li><li>Reduces inference overhead by skipping unnecessary decoding</li><li>Works across <strong><em>multiple tasks</em></strong> with one architecture, no redesign needed</li></ul><h3>What Makes It Stand Out?</h3><h4>Predictive Embeddings Over Tokens</h4><p>VL‑JEPA abandons autoregressive word generation and instead learns <strong>continuous vector representations</strong> of target text. The model forecasts these embeddings before deciding whether to convert them into human‑readable text <em>only when useful</em>.</p><p>This means less wasted compute and a model that thinks <em>about semantics first</em>.<br>This is especially helpful in noisy, real‑world settings</p><h4>Massive Efficiency Gains</h4><p>Compared to standard token‑based models with the same vision backbone and training data:</p><ul><li>VL‑JEPA uses <strong>~50% fewer trainable parameters</strong></li><li>It supports <strong>selective decoding</strong>, reducing decoding operations by ~2.85×</li><li>Maintains comparable or better performance on vision‑language tasks <strong>without extra bells and whistles</strong></li></ul><p>And this isn’t academic: it translates to <strong>faster, cheaper, and more scalable AI</strong> in real applications.</p><h4>Multi‑Task Flexibility Without - Task‑Specific Tricks</h4><p>VL‑JEPA handles a variety of tasks <strong>without changing its core architecture</strong>:</p><ul><li>Open‑vocabulary classification</li><li>Text‑to‑video retrieval</li><li>Visual question answering (VQA)</li><li>Video classification</li></ul><p>Across <strong>16+ datasets</strong>, it beats models like CLIP, SigLIP2, and Perception Encoder on average and matches larger classical VLMs on benchmarks like InstructBLIP and QwenVL all while being leaner (~1.6B parameters).</p><h3>Why This Could Change the Future of AI</h3><p>VL‑JEPA signals a broader shift in how we think about multimodal AI:</p><h4>Meaning First, Words Later</h4><p>Instead of painstakingly generating each word, VL‑JEPA predicts the <em>intended meaning</em> behind the answer. This aligns better with real intelligence understanding before expression.</p><h4>Real‑Time Applications Become Easier</h4><p>Selective decoding + embedding prediction = <strong>lower latency</strong>. That’s a huge advantage for:</p><ul><li>live video analysis</li><li>AR/VR assistants</li><li>robotics and drones</li><li>edge AI devices with limited compute</li></ul><h3>Bottom Line</h3><p>VL‑JEPA isn’t just another vision‑language paper it’s a <strong>conceptual shift</strong>.</p><p>Instead of <strong><em>generating words first</em>, it <em>predicts meaning first</em>.</strong> That simple idea unlocks huge wins: faster inference, fewer parameters, and versatile multimodal skills all in a lean architecture.</p><p>Expect next‑generation AI systems especially those that operate in real time or on limited hardware to increasingly adopt this embedding‑forward philosophy.</p><h4><a href="https://arxiv.org/pdf/2512.10942"><strong>Research Paper</strong></a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3906bab6026a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Designing Idempotent Endpoints in Web APIs]]></title>
            <link>https://chinmayvivek.medium.com/designing-idempotent-endpoints-in-web-apis-5ac9f6d4b04a?source=rss-8ae071e9a1e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ac9f6d4b04a</guid>
            <category><![CDATA[api-development]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[idempotency]]></category>
            <category><![CDATA[rust]]></category>
            <dc:creator><![CDATA[Chinmay Vivek  ]]></dc:creator>
            <pubDate>Tue, 07 Oct 2025 11:25:24 GMT</pubDate>
            <atom:updated>2025-10-07T11:25:24.982Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>Why, When, and How (With Go &amp; Rust Code Examples)</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*6YujbH214V8Bp1SYip20cg.jpeg" /><figcaption>Designing Idempotent Endpoints in Web APIs</figcaption></figure><h3>Introduction</h3><p>Let’s start with a simple but important question:</p><p><strong>What happens if a user clicks the “Submit” or “Pay” button twice?</strong><br> What if the network drops during a request and the frontend <strong>retries automatically</strong>?</p><p>If your API isn’t built to handle this safely, you might:</p><ul><li><strong>Double-charge a customer</strong></li><li><strong>Create duplicate orders</strong></li><li><strong>Submit the same data multiple times</strong></li></ul><p>That’s why <strong>idempotency</strong> is crucial.</p><p>In this article, you’ll learn:</p><ul><li>What idempotency really means (in practical terms)</li><li>Why and when you should implement it</li><li>How to design <strong>idempotent POST endpoints</strong></li><li>How to implement it in <strong>Go (Gin)</strong> and <strong>Rust (Actix-Web)</strong> with code</li><li>Best practices and real-world tips</li></ul><h3>What Is Idempotency?</h3><p>In programming, <strong>idempotency</strong> refers to operations that can be applied multiple times <strong>without changing the result</strong> beyond the initial application.</p><blockquote>In API design, an endpoint is idempotent if <strong>calling it once or 100 times results in the same outcome</strong>.</blockquote><h3>Examples: Idempotent vs Non-Idempotent</h3><h4>GET /user/1</h4><ul><li><strong>Idempotent:</strong> Yes</li><li><strong>Why:</strong> Always returns the same user data without changing anything on the server.</li></ul><h4>DELETE /user/1</h4><ul><li><strong>Idempotent:</strong> Yes</li><li><strong>Why:</strong> Deleting a resource once or multiple times has the same result it’s gone.</li></ul><h4>PUT /profile</h4><ul><li><strong>Idempotent:</strong> Yes</li><li><strong>Why:</strong> Replacing or updating a user profile with the same data doesn’t change the outcome after the first time.</li></ul><h4>POST /orders</h4><ul><li><strong>Idempotent:</strong> No (by default)</li><li><strong>Why:</strong> Each request creates a <strong>new order</strong>, even if the data is the same unless you implement idempotency manually using something like an Idempotency-Key.</li></ul><h3>Why POST Is Dangerous Without Idempotency</h3><p>Imagine a POST /payments endpoint that processes a credit card payment.</p><p>If the client times out and retries the request…</p><blockquote>❌ You could <strong>charge the card twice</strong><br> ✅ But with idempotency, you’d only charge <strong>once</strong>, and return the <strong>same result</strong></blockquote><h3>Benefits of Idempotent APIs</h3><ul><li>Safe <strong>client retries</strong> (especially for mobile or flaky networks)</li><li>Prevent <strong>duplicate transactions or data</strong></li><li>Better <strong>user experience</strong> (no fear of clicking twice)</li><li>Easier to build <strong>robust distributed systems</strong></li></ul><h3>How to Make POST Idempotent?</h3><p>Use an <strong>Idempotency Key</strong>.</p><h3>What Is an Idempotency Key?</h3><p>A <strong>unique key</strong> sent by the client with the request (usually in a header like Idempotency-Key).<br> The server uses this key to:</p><ol><li><strong>Detect duplicates</strong></li><li><strong>Cache and return the original result</strong> if it’s seen again</li></ol><h3>Architecture Overview</h3><pre>Client<br>  |<br>  |-- POST /payments<br>  |   Header: Idempotency-Key: abc-123<br>  |<br>Backend<br>  |-- Check if key exists in cache/store<br>        |<br>        |-- YES → Return cached response<br>        |<br>        |-- NO → Process request, store result with key</pre><h3>Practical Implementation Go (Gin)</h3><pre>// main.go<br>package main<br><br>import (<br>	&quot;github.com/gin-gonic/gin&quot;<br>	&quot;net/http&quot;<br>	&quot;sync&quot;<br>)<br><br>type ResponseCache struct {<br> mu    sync.Mutex<br> store map[string]string<br>}<br><br>var cache = ResponseCache{store: make(map[string]string)}<br><br>func main() {<br><br> r := gin.Default()<br><br> r.POST(&quot;/payments&quot;, func(c *gin.Context) {<br>  key := c.GetHeader(&quot;Idempotency-Key&quot;)<br>  if key == &quot;&quot; {<br>   c.JSON(http.StatusBadRequest, gin.H{&quot;error&quot;: &quot;Missing Idempotency-Key header&quot;})<br>   return<br>  }<br><br>  cache.mu.Lock()<br>  defer cache.mu.Unlock()<br><br>  if resp, exists := cache.store[key]; exists {<br>   c.JSON(http.StatusOK, gin.H{&quot;status&quot;: &quot;cached&quot;, &quot;result&quot;: resp})<br>   return<br>  }<br><br>  // Simulate actual processing (e.g., charge card)<br>  result := &quot;Payment ID: 12345XYZ&quot;<br>  cache.store[key] = result<br><br>  c.JSON(http.StatusOK, gin.H{&quot;status&quot;: &quot;success&quot;, &quot;result&quot;: result})<br> <br>}<br>)<br> r.Run(&quot;:8080&quot;)<br>}</pre><h3>Try it with curl:</h3><pre>curl -X POST http://localhost:8080/payments \<br>  -H &quot;Idempotency-Key: abc-123&quot;</pre><p>Try it multiple times with the same key you’ll get the same result.</p><h3>Practical Implementation Rust (Actix-Web)</h3><pre>use actix_web::{post, web, App, HttpResponse, HttpServer, HttpRequest};<br>use std::collections::HashMap;<br>use std::sync::Mutex;<br><br>struct AppState {<br>    cache: Mutex&lt;HashMap&lt;String, String&gt;&gt;,<br>}<br><br>#[post(&quot;/payments&quot;)]<br>async fn create_payment(req: HttpRequest, data: web::Data&lt;AppState&gt;) -&gt; HttpResponse {<br>    let key = match req.headers().get(&quot;Idempotency-Key&quot;) {<br>        Some(k) =&gt; k.to_str().unwrap_or(&quot;&quot;),<br>        None =&gt; &quot;&quot;,<br>    };<br>    if key.is_empty() {<br>        return HttpResponse::BadRequest().json(<br>            serde_json::json!({&quot;error&quot;: &quot;Missing Idempotency-Key header&quot;})<br>        );<br>    }<br>    let mut cache = data.cache.lock().unwrap();<br>    if let Some(result) = cache.get(key) {<br>        return HttpResponse::Ok().json(<br>            serde_json::json!({&quot;status&quot;: &quot;cached&quot;, &quot;result&quot;: result})<br>        );<br>    }<br>    // Simulate processing<br>    let result = &quot;Payment ID: 12345XYZ&quot;.to_string();<br>    cache.insert(key.to_string(), result.clone());<br>    HttpResponse::Ok().json(<br>        serde_json::json!({&quot;status&quot;: &quot;success&quot;, &quot;result&quot;: result})<br>    )<br>}<br><br>#[actix_web::main]<br>async fn main() -&gt; std::io::Result&lt;()&gt; {<br>    let shared_state = web::Data::new(AppState {<br>        cache: Mutex::new(HashMap::new()),<br>    });<br>    HttpServer::new(move || {<br>        App::new()<br>            .app_data(shared_state.clone())<br>            .service(create_payment)<br>    })<br>    .bind(&quot;127.0.0.1:8080&quot;)?<br>    .run()<br>    .await<br>}<br></pre><h3>Tips for Designing Idempotent APIs in Production</h3><h4>Use UUID or Hash Keys</h4><ul><li>Let the client generate a <strong>UUID</strong> or a <strong>hash of the request body</strong>.</li><li>This ensures uniqueness for each action and simplifies tracking.</li></ul><h4>Store Responses in a Database or Redis</h4><ul><li>In production, store idempotency records in <strong>persistent storage</strong>.</li><li>Use <strong>Redis</strong> or a relational database with support for TTL (time-to-live).</li><li>Helps survive server restarts and ensures horizontal scaling.</li></ul><h4>Set Key Expiry</h4><ul><li>Expire idempotency keys after a defined time (e.g., 24-72 hours).</li><li>Prevents unbounded growth in storage and removes stale records.</li></ul><h4>Tie Keys to User or Account</h4><ul><li>Include <strong>user ID or account ID</strong> in the key or storage lookup.</li><li>Prevents accidental key collisions across different users.</li></ul><h4>Return the Same Status Code and Body</h4><ul><li><strong>When a repeated request is made with the same idempotency key:</strong></li><li><em>Return the </em><strong><em>same HTTP status code</em></strong></li><li><em>Return the </em><strong><em>exact same response body</em></strong></li><li><strong>This makes client-side retry logic consistent and predictable.</strong></li></ul><h3>Common Mistakes</h3><ol><li><strong>Storing only the status code</strong>, not full response</li><li><strong>Not checking key existence early enough</strong> in middleware</li><li><strong>No TTL on stored keys </strong>memory bloat</li><li><strong>Not handling failed attempts properly</strong> (shouldn’t cache error responses unless meaningful)</li></ol><h3>Testing Idempotency</h3><blockquote>✅ Retry the same request multiple times with the same key<br> ❌ Change the body, use same key should <strong>reject or warn</strong></blockquote><h3>Final Thoughts</h3><p>Idempotency is one of those things that’s <strong>invisible when it works</strong> but <strong>painful when it doesn’t</strong>.</p><p>It’s a must for:</p><ul><li><strong>Payment gateways</strong></li><li><strong>Order systems</strong></li><li><strong>Any action with irreversible side effects</strong></li></ul><p>Whether you use <strong>Go</strong>, <strong>Rust</strong>, or any language, the principles stay the same.</p><h3>Want the full project source?</h3><p>Let me know in the comments, and I’ll publish it on GitHub.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ac9f6d4b04a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why India Must Build Its Own Robust Operating System :A Call for Digital Sovereignty]]></title>
            <link>https://chinmayvivek.medium.com/why-india-must-build-its-own-robust-operating-system-a-call-for-digital-sovereignty-b1a6229ff165?source=rss-8ae071e9a1e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1a6229ff165</guid>
            <category><![CDATA[india]]></category>
            <category><![CDATA[operating-systems]]></category>
            <category><![CDATA[made-in-india]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Chinmay Vivek  ]]></dc:creator>
            <pubDate>Tue, 23 Sep 2025 10:03:40 GMT</pubDate>
            <atom:updated>2025-09-23T10:03:40.162Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why India Must Build Its Own Robust Operating System :A Call for Digital Sovereignty</h3><p><em>In the last decade, India has emerged as a global digital powerhouse. With over 800 million internet users, a thriving startup ecosystem, and world-class IT talent, India is undeniably a tech-first nation. But there’s a foundational layer we’ve long overlooked </em><strong><em>the Operating System (OS)</em></strong><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*f24edTZIh--pcOFrmAfWGw.jpeg" /><figcaption>Why India Must Build Its Own Robust Operating System :A Call for Digital Sovereignty</figcaption></figure><p>Today, virtually every phone, laptop, server, and government computer in India runs on an OS developed abroad be it Android, iOS, Windows, macOS, or various Linux distributions maintained outside the country.</p><p>This isn’t just a technical gap. It’s a <strong>strategic vulnerability</strong>.</p><h3>What’s at Stake?</h3><h4>1. Data Sovereignty</h4><p>When foreign operating systems power critical infrastructure, we risk losing control over how and where our data flows. A domestic OS can enforce localized data governance, giving India more control over its digital future.</p><h4>2. Cybersecurity</h4><p>Cyber threats are no longer just criminal they are geopolitical. Backdoors, surveillance risks, and dependencies in closed-source systems can be exploited. A homegrown OS gives India full-stack visibility, enabling better defense mechanisms.</p><h4>3. Technological Independence</h4><p>The world is seeing increasing digital protectionism. By relying solely on foreign platforms, we leave ourselves exposed to export controls, licensing bans, or ecosystem lockouts as seen in global tech conflicts. Building our own OS future-proofs us.</p><h4>4. Innovation and Job Creation</h4><p>Creating an indigenous OS ecosystem could spark massive innovation from secure OS kernels to developer tools, apps, services, and hardware optimization. This means <strong>skilled jobs</strong>, <strong>IP generation</strong>, and <strong>export potential</strong>.</p><h3>But Isn’t It Too Late?</h3><p>Not at all.</p><p>India doesn’t need to reinvent the wheel. We can build on open-source foundations, customize them for our needs, and invest in UI/UX, security, and optimization layers tailored for Indian users and environments.</p><p>China, Russia, and even smaller nations like South Korea are investing heavily in OS sovereignty. It’s time India does too not just as a matter of pride, but of policy.</p><h3>What Will It Take?</h3><ul><li><strong>Government support</strong>: Funding, policy incentives, and mandates for strategic sectors to adopt indigenous platforms.</li><li><strong>Public-private partnerships</strong>: Bringing startups, academia, and industry together.</li><li><strong>Mass adoption strategy</strong>: Education, localization, and ecosystem tools to support developers and users.</li><li><strong>Security-first mindset</strong>: Building trust into the OS at every layer.</li></ul><h3>The Time Is Now</h3><p>India has built Aadhar, UPI, ONDC, and Digital Public Goods the world now admires. Why stop at applications? Let’s build the <strong>platform</strong> that powers them all.</p><p>A robust Indian Operating System isn’t just a technical challenge. It’s a <strong>nation-building mission</strong>.</p><p>Let’s own the stack. Let’s own our future.</p><p><em>Join the conversation: What would you want to see in a made-in-India OS?</em></p><p>#IndiaTech #DigitalSovereignty #OperatingSystem #MadeInIndia #CyberSecurity #DigitalIndia #IndianStartups #TechPolicy #OpenSource #Innovation #StrategicTech</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1a6229ff165" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Building Cross-Platform Desktop Apps in Rust with Dioxus 0.6]]></title>
            <link>https://chinmayvivek.medium.com/building-cross-platform-desktop-apps-in-rust-with-dioxus-0-6-46b4259d219e?source=rss-8ae071e9a1e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/46b4259d219e</guid>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[desktop-app]]></category>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[rust-programming-language]]></category>
            <category><![CDATA[dioxus]]></category>
            <dc:creator><![CDATA[Chinmay Vivek  ]]></dc:creator>
            <pubDate>Sat, 23 Aug 2025 05:31:31 GMT</pubDate>
            <atom:updated>2025-08-23T05:31:31.347Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>TL;DR: Learn how to build fast, modern, and cross-platform desktop applications in Rust using </em><a href="https://dioxuslabs.com/"><em>Dioxus 0.6</em></a><em>. This article walks through installation, setup, project structure, component design, routing, styling with SCSS, and packaging.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cMVmAA33wSR7U9EdaRslWQ.png" /><figcaption>🦀 Building Cross-Platform Desktop Apps in Rust with Dioxus 0.6</figcaption></figure><h3>Why Rust for Desktop Apps?</h3><p>Rust’s unmatched memory safety, zero-cost abstractions, and performance make it a great systems language — but it’s also growing into a solid foundation for GUI development. Thanks to frameworks like <strong>Dioxus</strong>, you can now build beautiful, reactive desktop apps in Rust, leveraging a <strong>React-like component model</strong> with native performance.</p><h3>Step-by-Step Setup: Installing Dioxus &amp; Creating Your App</h3><p>Let’s get started with <strong>Dioxus Desktop</strong> using version <strong>0.6</strong>.</p><h4>1. Install Rust (if not already)</h4><p>If you haven’t already installed Rust:</p><pre>curl --proto &#39;=https&#39; --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre><p>Make sure Rust and Cargo are available:</p><pre>rustc --version<br>cargo --version</pre><p>Once installed, make sure you add the stable toolchain and the wasm32-unknown-unknown target for web development:</p><pre>rustup toolchain install stable<br>rustup target add wasm32-unknown-unknown</pre><h4>2. Install cargo-binstall</h4><p>Dioxus ships prebuilt binaries for its CLI using <a href="https://github.com/cargo-bins/cargo-binstall?tab=readme-ov-file#installation">cargo-binstall</a>. This means you can install dx without needing to compile from source.</p><p>You can install cargo-binstall with the following command:</p><pre>curl -L --proto &#39;=https&#39; --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash</pre><p>or alternatively:</p><pre># through brew<br>brew install cargo-binstall<br><br># or from source<br>cargo install cargo-binstall</pre><h4>3. Install the Dioxus CLI</h4><p>Dioxus is comprised of two parts:</p><ul><li>The dioxus crate: the core Dioxus framework</li><li>The dx tool: a CLI tool for building Dioxus apps</li></ul><p>If you want to build web or mobile apps with Dioxus, or benefit from features like hot-reloading and bundling, you’ll need to install the dx tool. You can download the prebuilt binary with the following command:</p><pre>cargo binstall dioxus-cli</pre><h4>4. Verify your setup</h4><p>Before proceeding, make sure you have the dioxus-cli installed and up-to-date.</p><p>Verify the returned version matches this guide (eg 0.6) by running:</p><pre>dx --version</pre><h4>All the Commands</h4><p>You can also run dx help which will give you a list of useful commands and some information on how to use dx.</p><pre>Build, Bundle &amp; Ship Dioxus Apps<br><br>Usage: dx [OPTIONS] &lt;COMMAND&gt;<br><br>Commands:<br>  build      Build the Dioxus project and all of its assets<br>  translate  Translate a source file into Dioxus code<br>  serve      Build, watch &amp; serve the Dioxus project and all of its assets<br>  new        Create a new project for Dioxus<br>  init       Init a new project for Dioxus in the current directory (by default). Will attempt to keep your project in a good state<br>  clean      Clean output artifacts<br>  bundle     Bundle the Dioxus app into a shippable object<br>  fmt        Automatically format RSX<br>  check      Check the project for any issues<br>  run        Run the project without any hotreloading<br>  config     Dioxus config file controls<br>  help       Print this message or the help of the given subcommand(s)<br><br>Options:<br>      --verbose      Use verbose output [default: false]<br>      --trace        Use trace output [default: false]<br>      --json-output  Output logs in JSON format<br>  -h, --help         Print help<br>  -V, --version      Print version</pre><p>If dx is installed properly, then you&#39;re ready to proceed!</p><h4>5. Create a New Dioxus Desktop Project</h4><pre>dx new telefy<br>✔ 🤷   Which sub-template should be expanded? · Bare-Bones<br>✔ 🤷   Do you want to use Dioxus Fullstack? · false<br>✔ 🤷   Do you want to use Dioxus Router? · false<br>✔ 🤷   Do you want to use Tailwind CSS? · false<br>✔ 🤷   Which platform do you want DX to serve by default? · Desktop<br><br>cd telefy</pre><p>This gives you a working Dioxus desktop app out of the box.</p><h4>6. Test the App</h4><pre>dx serve<br>or <br>dx serve --platform desktop</pre><p>This will start your app and open it in a window.</p><h4>Project Structure (After Customization)</h4><p>We’ll now expand and customize the basic scaffold to better organize views, domain logic, and assets:</p><pre>telefy/<br>├── assets/<br>│   ├── favicon.ico<br>│   ├── header.svg<br>│   ├── main.css<br>│   └── styles/<br>│       ├── contact.scss<br>│       ├── splash.scss<br>│       └── css/<br>│           ├── contact.min.css<br>│           ├── contact.min.css.map<br>│           ├── splash.min.css<br>│           └── splash.min.css.map<br>├── Cargo.toml<br>├── Dioxus.toml<br>├── clippy.toml<br>├── Desktop app Development.pdf<br>├── README.md<br>└── src/<br>    ├── config/<br>    │   ├── constants.rs<br>    │   ├── db.rs<br>    │   ├── dummy_records.rs<br>    │   ├── mod.rs<br>    │   └── schema.rs<br>    ├── domain/<br>    │   ├── contact.rs<br>    │   ├── mod.rs<br>    │   └── user.rs<br>    ├── repository/<br>    │   ├── contact.rs<br>    │   ├── mod.rs<br>    │   └── user.rs<br>    ├── view/<br>    │   ├── contact_screen.rs<br>    │   ├── splash_screen.rs<br>    │   ├── nav.rs<br>    │   ├── user.rs<br>    │   └── mod.rs<br>    ├── route.rs<br>    └── main.rs</pre><h4>Updating Dependencies in Cargo.toml</h4><p>To set up your project with all the necessary dependencies, you have two options:</p><h4>Option 1: Add Dependencies Using cargo add</h4><p>If you’re using <a href="https://github.com/killercup/cargo-edit">cargo-edit</a>, you can quickly add all required dependencies via:</p><pre>cargo add argon2 rusqlite dioxus-desktop dirs thiserror tokio svix-ksuid dioxus --features router</pre><blockquote><em>This automatically adds the correct versions to your </em><em>Cargo.toml, along with the </em><em>router feature for Dioxus.</em></blockquote><h4>Option 2: Manually Replace Cargo.toml Dependencies</h4><p>Alternatively, you can copy and paste the following into your Cargo.toml:</p><pre>[package]<br>name = &quot;telefy&quot;<br>version = &quot;0.1.0&quot;<br>edition = &quot;2021&quot;<br><br>[dependencies]<br>argon2 = &quot;0.5.3&quot;<br>dioxus = { version = &quot;0.6.0&quot;, features = [&quot;router&quot;] }<br>dioxus-desktop = &quot;0.6&quot;<br>rusqlite = &quot;0.37.0&quot;<br>dirs = &quot;6.0.0&quot;<br>thiserror = &quot;2.0.14&quot;<br>tokio = &quot;1.47.1&quot;<br>svix-ksuid = &quot;=0.8.0&quot;</pre><blockquote><em>These dependencies provide:</em></blockquote><ul><li>argon2: secure password hashing</li><li>rusqlite: embedded SQLite database access</li><li>dioxus &amp; dioxus-desktop: reactive UI framework for building desktop apps</li><li>dirs: cross-platform access to user directories</li><li>thiserror: ergonomic error handling</li><li>tokio: async runtime</li><li>svix-ksuid: unique ID generation</li></ul><h4>Creating UI Components</h4><p>Let’s start with a simple splash screen and a navigation bar.src/view/splash_screen.rs</p><pre>use crate::Route;<br><br>use crate::config::constants::*;<br>use crate::domain::user::LoginError;<br>use crate::repository::user::with_user_repo;<br><br>use dioxus::prelude::*;<br><br>/// Login screen UI with form and error handling<br>#[component]<br>pub fn SplashScreen() -&gt; Element {<br><br>    let mut username = use_signal(|| &quot;&quot;.to_string());<br>    let mut password = use_signal(|| &quot;&quot;.to_string());<br>    let nav = use_navigator();<br>    let error_msg = use_signal(|| None::&lt;String&gt;);<br>    let loading = use_signal(|| false);<br><br>    let on_submit = move |evt: FormEvent| {<br>        evt.prevent_default(); // Prevent page reload<br>        let nav = nav.clone();<br><br>        let username = username().clone();<br>        let password = password().clone();<br>        let mut error_msg = error_msg.clone();<br>        let mut loading = loading.clone();<br><br>        spawn(async move {<br>            loading.set(true);<br><br>            let result = verify_credentials(&amp;username, &amp;password).await;<br>            match result {<br>                Ok(true) =&gt; {<br>                    // Navigate to next screen or emit signal<br>                    println!(&quot;✅ Login successful&quot;);<br>                    nav.push(Route::ContactScreen {});<br>                }<br>                Ok(false) =&gt; {<br>                    error_msg.set(Some(&quot;Invalid username or password&quot;.to_string()));<br>                }<br>                Err(err) =&gt; {<br>                    error_msg.set(Some(format!(&quot;Login failed: {:?}&quot;, err)));<br>                }<br>            }<br><br>            loading.set(false);<br>        });<br>    };<br><br>    rsx! {<br>        link { rel: &quot;stylesheet&quot;, href: SPLASH_CSS }<br><br>        div {<br>            class: &quot;login-container&quot;,<br><br>            style: &quot;display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; font-family: sans-serif; background-color: #f0f0f0;&quot;,<br><br>            div {<br>                class: &quot;login-box&quot;,<br>                style: &quot;background: white; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); width: 320px;&quot;,<br><br>                h2 { &quot;🔐 Telefy Login&quot; }<br><br>                form { onsubmit: on_submit,<br><br>                    div { class: &quot;form-group&quot;, style: &quot;margin-bottom: 1rem;&quot;,<br>                        label { &quot;Username&quot; }<br>                        input {<br>                            r#type: &quot;text&quot;,<br>                            value: &quot;{username()}&quot;,<br>                            oninput: move |e| username.set(e.value().clone()),<br>                            class: &quot;input&quot;,<br>                            style: &quot;width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px;&quot;,<br>                        }<br>                    }<br><br>                    div { class: &quot;form-group&quot;, style: &quot;margin-bottom: 1rem;&quot;,<br>                        label { &quot;Password&quot; }<br>                        input {<br>                            r#type: &quot;password&quot;,<br>                            value: &quot;{password()}&quot;,<br>                            oninput: move |e| password.set(e.value().clone()),<br>                            class: &quot;input&quot;,<br>                            style: &quot;width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px;&quot;,<br>                        }<br>                    }<br><br>                    if let Some(err) = error_msg() {<br>                        p { style: &quot;color: red; margin-bottom: 1rem;&quot;, &quot;{err}&quot; }<br>                    }<br><br>                    button {<br>                        r#type: &quot;submit&quot;,<br>                        disabled: loading(),<br>                        style: &quot;width: 100%; background-color: #007bff; color: white; padding: 10px; border: none; border-radius: 4px; cursor: pointer;&quot;,<br>                        {if loading() { &quot;Logging in...&quot; } else { &quot;Login&quot; }}<br>                    }<br><br>                }<br>            }<br>        }<br>    }<br>}<br><br>pub async fn verify_credentials(username: &amp;str, password: &amp;str) -&gt; Result&lt;bool, LoginError&gt; {<br>    with_user_repo(|repo| repo.verify_password(username, password))<br>}</pre><p>src/view/nav.rs</p><pre>use dioxus::prelude::*;<br><br>struct MenuItem {<br>    label: &amp;&#39;static str,<br>    href: &amp;&#39;static str,<br>}<br><br>#[component]<br>pub fn NavView() -&gt; Element {<br>    let menu_items = vec![<br>        MenuItem {<br>            label: &quot;Contact&quot;,<br>            href: &quot;/contact_screen&quot;,<br>        },<br>        MenuItem {<br>            label: &quot;User&quot;,<br>            href: &quot;/user_screen&quot;,<br>        },<br>    ];<br><br>    let menu_links = menu_items.iter().map(|item| {<br>        rsx!(<br>            li {<br>                key: &quot;{item.label}&quot;,<br>                Link {to: &quot;{item.href}&quot;,<br>                    style: &quot;color: white; text-decoration: none;&quot;,<br>                    &quot;{item.label}&quot;<br>                }<br>            }<br><br>        )<br>        .unwrap()<br>    });<br><br>    rsx! {<br>        nav {<br>            class: &quot;navbar&quot;,<br>            style: &quot;<br>                display: flex;<br>                justify-content: space-between;<br>                align-items: center;<br>                padding: 0.5rem 1rem;<br>                background-color: #333;<br>                color: white;<br>            &quot;,<br>            div {<br>                class: &quot;logo&quot;,<br>                style: &quot;font-weight: bold; font-size: 1.2rem;&quot;,<br>                &quot;MyApp&quot;<br>            }<br>            ul {<br>                class: &quot;nav-links&quot;,<br>                style: &quot;<br>                    list-style: none;<br>                    display: flex;<br>                    gap: 1rem;<br>                    margin: 0;<br>                    padding: 0;<br>                &quot;,<br>                { menu_links }<br>            }<br>        }<br>    }<br>}</pre><h4>Routing with route.rs</h4><p>src/route.rs</p><pre>use dioxus::prelude::*;<br><br>use crate::view::{contact_screen::ContactScreen, splash_screen::SplashScreen, user::UserScreen};<br><br>#[derive(Clone, Debug, PartialEq, Routable)]<br>pub enum Route {<br>    #[route(&quot;/&quot;)]<br>    SplashScreen {},<br><br>    #[route(&quot;/contact_screen&quot;)]<br>    ContactScreen {},<br><br>    #[route(&quot;/user_screen&quot;)]<br>    UserScreen {},<br>}</pre><h4>Organizing Data &amp; Logic</h4><p>Domain: src/domain/contact.rs</p><pre>#[derive(Clone, PartialEq, Debug)]<br>pub struct Contact {<br>    pub id: String,<br>    pub full_name: String,<br>    pub email: Option&lt;String&gt;,<br>    pub phone_number: String,<br>    pub notes: Option&lt;String&gt;,<br>}</pre><p>Repository: src/repository/contact.rs</p><pre>use crate::config::db::*;<br>use crate::domain::{contact::Contact, user::LoginError};<br>use rusqlite::{params, Connection};<br>use svix_ksuid::*;<br>use thiserror::Error;<br><br>pub fn with_contact_repo&lt;F, T&gt;(f: F) -&gt; Result&lt;T, LoginError&gt;<br>where<br>    F: FnOnce(&amp;ContactRepository) -&gt; Result&lt;T, RepositoryError&gt;,<br>{<br>    let db = get_db()?;<br>    let conn_mutex = db.conn();<br>    let conn = conn_mutex<br>        .lock()<br>        .map_err(|_| LoginError::ConnectionLockFailed)?;<br>    let repo = ContactRepository::new(&amp;conn);<br><br>    f(&amp;repo).map_err(|e| LoginError::Internal(e.to_string()))<br>}<br><br>#[derive(Error, Debug)]<br>pub enum RepositoryError {<br>    #[error(&quot;Database error: {0}&quot;)]<br>    DatabaseError(#[from] rusqlite::Error),<br><br>    #[error(&quot;Validation error: {0}&quot;)]<br>    ValidationError(String),<br><br>    #[error(&quot;Contact not found&quot;)]<br>    NotFound,<br>}<br><br>pub struct ContactRepository&lt;&#39;a&gt; {<br>    conn: &amp;&#39;a Connection,<br>}<br><br>impl&lt;&#39;a&gt; ContactRepository&lt;&#39;a&gt; {<br>    pub fn new(conn: &amp;&#39;a Connection) -&gt; Self {<br>        Self { conn }<br>    }<br><br>    /// Create a contact with related phone numbers<br>    pub fn create_contact(&amp;self, contact: &amp;Contact) -&gt; Result&lt;(), RepositoryError&gt; {<br>        let contact_id = if contact.id.trim().is_empty() {<br>            KsuidMs::new(None, None).to_base62()<br>        } else {<br>            contact.id.clone()<br>        };<br>        self.conn.execute(<br>            &quot;INSERT INTO contacts (<br>                id, full_name, email, phone_number, notes<br>            ) VALUES (?1, ?2, ?3, ?4, ?5)&quot;,<br>            params![<br>                contact_id,<br>                contact.full_name,<br>                contact.email,<br>                contact.phone_number,<br>                contact.notes,<br>            ],<br>        )?;<br><br>        Ok(())<br>    }<br><br>    /// Delete contact by ID<br>    pub fn delete_contact(&amp;self, id: &amp;str) -&gt; Result&lt;(), RepositoryError&gt; {<br>        let deleted = self<br>            .conn<br>            .execute(&quot;DELETE FROM contacts WHERE id = ?1&quot;, params![id])?;<br><br>        if deleted == 0 {<br>            Err(RepositoryError::NotFound)<br>        } else {<br>            Ok(())<br>        }<br>    }<br><br>    pub fn search_contacts(&amp;self, value: &amp;str) -&gt; Result&lt;Vec&lt;Contact&gt;, RepositoryError&gt; {<br>        let trimmed_value = value.trim();<br><br>        // If empty, return all contacts ordered by full_name<br>        if trimmed_value.is_empty() {<br>            return self.get_all_contacts_ordered();<br>        }<br><br>        let query_value = format!(&quot;%{}%&quot;, trimmed_value);<br><br>        // Query contacts matching name, email, or phone number via JOIN<br>        let mut stmt = self.conn.prepare(<br>            r#&quot;<br>            SELECT id, full_name, email, phone_number, notes<br>            FROM contacts<br>            WHERE full_name LIKE ?1 OR c.email LIKE ?1 OR p.number LIKE ?1<br>            ORDER BY full_name COLLATE NOCASE ASC<br>            &quot;#,<br>        )?;<br><br>        let contacts_iter = stmt.query_map(params![query_value], |row| {<br>            Ok(Contact {<br>                id: row.get(0)?,<br>                full_name: row.get(1)?,<br>                email: row.get(2)?,<br>                phone_number: row.get(3)?,<br>                notes: row.get(4)?,<br>            })<br>        })?;<br><br>        let contacts: Vec&lt;Contact&gt; = contacts_iter.collect::&lt;Result&lt;_, _&gt;&gt;()?;<br><br>        if contacts.is_empty() {<br>            return Err(RepositoryError::NotFound);<br>        }<br><br>        Ok(contacts)<br>    }<br><br>    pub fn get_all_contacts_ordered(&amp;self) -&gt; Result&lt;Vec&lt;Contact&gt;, RepositoryError&gt; {<br>        let mut stmt = self.conn.prepare(<br>            r#&quot;<br>            SELECT id, full_name, email, phone_number, notes<br>            FROM contacts<br>            ORDER BY full_name COLLATE NOCASE ASC<br>            &quot;#,<br>        )?;<br><br>        let contacts_iter = stmt.query_map([], |row| {<br>            Ok(Contact {<br>                id: row.get(0)?,<br>                full_name: row.get(1)?,<br>                email: row.get(2)?,<br>                phone_number: row.get(3)?,<br>                notes: row.get(4)?,<br>            })<br>        })?;<br><br>        let contacts: Vec&lt;Contact&gt; = contacts_iter.collect::&lt;Result&lt;_, _&gt;&gt;()?;<br><br>        if contacts.is_empty() {<br>            return Err(RepositoryError::NotFound);<br>        }<br><br>        Ok(contacts)<br>    }<br>}</pre><p>This keeps your logic clean and reusable.</p><h4>Styling with SCSS</h4><p>SCSS files live in assets/styles/, compiled into assets/styles/css/.</p><p>Example Compile Command:</p><pre>sass assets/styles/splash.scss assets/styles/css/splash.min.css --style=compressed</pre><p>In your component:</p><pre>link { rel: &quot;stylesheet&quot;, href: &quot;styles/css/splash.min.css&quot; }</pre><h4>Running Your App</h4><p>Use the Dioxus CLI or Cargo:</p><pre>dx serve --platform desktop</pre><h4>Packaging for Release</h4><p>Build an optimized binary:</p><pre>cargo build --release</pre><p>You can also use tools like:</p><ul><li><a href="https://github.com/burtonageo/cargo-bundle">cargo-bundle</a></li><li><a href="https://tauri.app/">tauri</a> for hybrid capabilities</li></ul><h3>Final Thoughts</h3><p>Rust and Dioxus together offer an incredibly powerful combo for building desktop applications. With <strong>zero runtime exceptions</strong>, a <strong>React-style declarative UI</strong>, and <strong>blazing speed</strong>, this stack is perfect for developers who care about performance and maintainability.</p><h3>What You’ve Learned</h3><p>✔ Installing and setting up Dioxus<br> ✔ Creating a structured, scalable Rust desktop app<br> ✔ Writing reusable components and routing views<br> ✔ Styling with SCSS<br> ✔ Packaging for distribution</p><h3>Resources</h3><ul><li><a href="https://dioxuslabs.com/">Dioxus Official Docs</a></li><li><a href="https://github.com/awesome-rust-com/awesome-rust#gui">Awesome Rust GUI</a></li><li><a href="https://github.com/tauri-apps/tauri">Tauri + Dioxus Example</a></li></ul><p>Questions or want to collaborate? Feel free to reach out or drop a comment.<br>Want the <a href="https://github.com/chinmayvivek/telefy"><strong><em>full source code here</em></strong></a> .</p><p>Happy hacking with Rust &amp; Dioxus! 🦀💻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46b4259d219e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Rust Is Quietly Transforming Cybersecurity and Fintech]]></title>
            <link>https://chinmayvivek.medium.com/rust-is-quietly-transforming-cybersecurity-and-fintech-178f98a54223?source=rss-8ae071e9a1e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/178f98a54223</guid>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[rust-programming-language]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Chinmay Vivek  ]]></dc:creator>
            <pubDate>Thu, 21 Aug 2025 05:06:01 GMT</pubDate>
            <atom:updated>2025-08-21T05:06:01.436Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>TL;DR</em></strong><em>: Rust is not just another programming language. It’s a paradigm shift — and it’s rapidly changing the way we build secure, high-performance applications in Cybersecurity and Fintech.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*142ulugQqCLjZe0k5j2PPw.jpeg" /><figcaption>🦀 Rust Is Quietly Transforming Cybersecurity and Fintech</figcaption></figure><h3>The High-Stakes World of Cybersecurity and Fintech</h3><p>Cybersecurity and financial technology are two industries that operate under immense pressure:</p><ul><li>Billions of dollars move every day.</li><li>Breaches can ruin reputations in minutes.</li><li>Regulatory compliance is brutal.</li><li>Systems must be fast, concurrent, and safe — all at once.</li></ul><p>Historically, languages like <strong>C/C++</strong>, <strong>Java</strong>, and <strong>Python</strong> have dominated these sectors. But these come with trade-offs — memory safety bugs, garbage collection delays, or performance bottlenecks.</p><p><strong>Enter Rust.</strong></p><h3>Why Rust?</h3><p>Rust was designed from the ground up to solve exactly the kinds of problems that plague security-sensitive and performance-critical systems.</p><h4>Memory Safety Without Garbage Collection</h4><p>Rust prevents entire classes of vulnerabilities — like buffer overflows, null pointer dereferencing, and data races — at <strong>compile time</strong>.</p><blockquote><em>No runtime overhead. No surprise crashes in production.<br> Just safe, predictable execution.</em></blockquote><h4>Zero-Cost Abstractions</h4><p>In Fintech, performance is king. Microsecond latency matters. Rust’s zero-cost abstractions let you write expressive high-level code that compiles down to bare-metal speed.</p><h4>Concurrency Without Fear</h4><p>Rust’s ownership model guarantees thread safety — <strong>no more race conditions</strong>, no need for defensive coding. That’s a huge win for security teams dealing with parallel processing and financial systems running at scale.</p><h3>Rust in Cybersecurity: A Natural Fit</h3><p>Cybersecurity companies are increasingly rewriting their tools in Rust — and for good reason.</p><h3>Memory Safety: Built-In</h3><p>A large number of CVEs in security tools are caused by unsafe memory operations. Rust eliminates most of them by design.</p><blockquote><em>“Rust eliminates entire bug classes that C and C++ are infamous for.”<br> — </em><strong><em>Mozilla Security Team</em></strong></blockquote><h3>Trusted by Industry</h3><ul><li><strong>Microsoft</strong> is rewriting parts of Windows in Rust for safety.</li><li><strong>AWS</strong> uses Rust for secure components in Firecracker and Lambda.</li><li><strong>Cloudflare</strong> leverages Rust for zero-trust network solutions.</li><li><strong>Meta (Facebook)</strong> adopted Rust to harden security at scale.</li></ul><h4>Example: Static Analysis &amp; Scanning Tools</h4><p>Rust’s speed and safety make it ideal for building fast, reliable static analyzers, linters, and malware scanners — tools that must process untrusted input <strong>securely</strong> and <strong>at speed</strong>.</p><h4>Rust in Fintech: The Speed-Safety Trade-off Is Over</h4><p>Fintech demands:</p><ul><li>High-performance computations</li><li>Real-time analytics</li><li>Safe handling of sensitive data</li><li>Regulatory compliance with strict reliability requirements</li></ul><p>Rust delivers on all fronts.</p><h4>Security + Regulatory Confidence</h4><p>Using Rust helps teams meet <strong>compliance</strong> and <strong>auditability</strong> standards like PCI-DSS, SOC2, and ISO 27001 by reducing the attack surface and eliminating common bugs.</p><h4>High Performance for Low Latency Systems</h4><p>From <strong>trading platforms</strong> to <strong>crypto wallets</strong>, Rust is used in:</p><ul><li>Market data ingestion</li><li>High-frequency trading (HFT) engines</li><li>Real-time risk analysis</li><li>Blockchain node infrastructure</li></ul><p>Rust’s performance rivals C++, but with modern tooling and safety built in.</p><h3>Real-World Projects Using Rust</h3><h4>Cybersecurity</h4><ul><li><a href="https://github.com/firecracker-microvm/firecracker"><strong>Firecracker</strong></a> (AWS): Lightweight virtualization for serverless — written in Rust.</li><li><a href="https://github.com/GyulyVGC/sniffnet"><strong>Sniffnet</strong></a>: Cross-platform network monitoring tool.</li><li><a href="https://github.com/RustScan/RustScan"><strong>RustScan</strong></a>: Fast port scanner written entirely in Rust.</li></ul><h3>💰 Fintech &amp; Crypto</h3><ul><li><a href="https://github.com/ZcashFoundation/zebra"><strong>Zebra</strong></a>: Rust implementation of the Zcash protocol.</li><li><a href="https://github.com/solana-labs/solana"><strong>Solana</strong></a>: Parts of Solana’s core are written in Rust for performance.</li><li><a href="https://github.com/openethereum/openethereum"><strong>Parity Ethereum</strong></a>: Ethereum client in Rust.</li></ul><h3>Why Rust Works So Well for Both Worlds</h3><p>Cybersecurity and Fintech may seem different, but they share core requirements:</p><p>Feature Why It Matters <strong>Memory Safety</strong> Prevents zero-days and runtime bugs <strong>Performance</strong> Real-time systems demand sub-ms latency <strong>Concurrency</strong> Parallel workloads, multi-threaded servers <strong>Reliability</strong> Financial and security software must never fail silently <strong>Portability</strong> Rust compiles to WASM, native, embedded — you name it</p><p>Rust is the rare language that excels across <strong>all of these dimensions</strong>.</p><h3>Final Thoughts: A Future Written in Rust</h3><p>Rust is no longer “just for system programmers.” It’s being used for:</p><ul><li>Enterprise-grade backend services</li><li>Embedded security firmware</li><li>WebAssembly frontends</li><li>Financial modeling engines</li><li>Blockchain node software</li></ul><p>Whether you’re securing a network, building the next-gen wallet, or designing a real-time fraud detection system — Rust might just be your <strong>most strategic advantage</strong>.</p><blockquote><strong>Safe code is fast code. Secure code is reliable code. Rust is all three.</strong></blockquote><h3>Further Reading</h3><ul><li><a href="https://doc.rust-lang.org/book/">The Rust Programming Language (Book)</a></li><li><a href="https://foundation.rust-lang.org/">Rust Foundation</a></li></ul><p>Have thoughts or projects using Rust in Fintech or Security?<br> Drop a comment or connect — always happy to discuss!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=178f98a54223" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From new() to Builder Pattern: Rust Constructor Techniques Every Developer Should Know]]></title>
            <link>https://chinmayvivek.medium.com/from-new-to-builder-pattern-rust-constructor-techniques-every-developer-should-know-c48336c1c23a?source=rss-8ae071e9a1e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/c48336c1c23a</guid>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[rust-programming-language]]></category>
            <category><![CDATA[design-patterns]]></category>
            <dc:creator><![CDATA[Chinmay Vivek  ]]></dc:creator>
            <pubDate>Wed, 20 Aug 2025 05:01:58 GMT</pubDate>
            <atom:updated>2025-08-20T05:01:58.326Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>“In Rust, safety and clarity come first — even when creating your objects.”</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*E4oJfiZ17R6QBh_b2uU-mQ.jpeg" /><figcaption>Mastering Constructors in Rust: Best Practices &amp; Patterns</figcaption></figure><p>If you’re coming from languages like Java, Python, or C++, the idea of constructors is second nature. You know the drill — define a class, write a constructor to initialize its values, and off you go.</p><p>But in Rust, things are a little different. Rust doesn’t have constructors in the traditional sense. Instead, Rust gives you the tools to <em>build your own</em> in a way that’s explicit, idiomatic, and safe.</p><p>In this article, we’ll explore:</p><ul><li>Why Rust doesn’t have traditional constructors</li><li>How to define constructors the “Rusty” way</li><li>Best practices and idioms</li><li>Real-world examples you can copy-paste</li></ul><h3>Where Are My Constructors?</h3><p>In Rust, there’s no constructor keyword. Instead, we use <strong>associated functions</strong>, most commonly called new, to initialize our structs.</p><p>Let’s start with a basic example.</p><pre>struct User {<br>    username: String,<br>    age: u8,<br>}<br><br>impl User {<br>    pub fn new(username: String, age: u8) -&gt; Self {<br>        Self { username, age }<br>    }<br>}</pre><h3>Why this is idiomatic:</h3><ul><li>The new function is an <strong>associated function</strong>, not a method (no self param).</li><li>Self is a clean, future-proof alias for the struct’s name.</li><li>It keeps struct creation logic in one place.</li></ul><h3>Best Practices for Constructors</h3><p>Let’s go beyond the basics. Here are some practices seasoned Rustaceans follow:</p><h3>1. Use new() for simple constructors</h3><pre>impl User {<br>    pub fn new(username: String, age: u8) -&gt; Self {<br>        Self { username, age }<br>    }<br>}</pre><p>Use when:</p><ul><li>All fields are initialized directly from parameters.</li><li>No complex logic or validation is needed.</li></ul><h3>2. Use with_* pattern for custom variants</h3><p>Want to create variations of an object?</p><pre>impl User {<br>    pub fn with_default_age(username: String) -&gt; Self {<br>        Self {<br>            username,<br>            age: 18,<br>        }<br>    }<br>}</pre><p>This makes your code expressive:</p><pre>let user = User::with_default_age(&quot;Alice&quot;.to_string());</pre><h3>3. Add validation in constructors</h3><pre>impl User {<br>    pub fn new(username: String, age: u8) -&gt; Result&lt;Self, String&gt; {<br>        if username.is_empty() {<br>            return Err(&quot;Username cannot be empty&quot;.into());<br>        }<br>        if age &lt; 13 {<br>            return Err(&quot;User must be at least 13 years old&quot;.into());<br>        }<br>        Ok(Self { username, age })<br>    }<br>}</pre><p>Using Result allows us to enforce rules before creating an instance — an idiomatic and safe practice in Rust.</p><h3>4. Make new() private to force controlled construction</h3><p>If your struct needs to follow strict rules, make new() private and expose controlled builders.</p><pre>impl User {<br>    fn new(username: String, age: u8) -&gt; Self {<br>        Self { username, age }<br>    }<br><br>    pub fn create(username: String, age: u8) -&gt; Result&lt;Self, String&gt; {<br>        if username.len() &lt; 3 {<br>            return Err(&quot;Too short&quot;.into());<br>        }<br>        Ok(Self::new(username, age))<br>    }<br>}</pre><p>This pattern helps avoid misuse by restricting access.</p><h3>5. Use the Builder Pattern for complex structs</h3><p>If your struct has many fields, using a builder pattern is a lifesaver.</p><pre>struct Config {<br>    host: String,<br>    port: u16,<br>    use_ssl: bool,<br>}<br><br>struct ConfigBuilder {<br>    host: String,<br>    port: u16,<br>    use_ssl: bool,<br>}<br>impl ConfigBuilder {<br>    fn new() -&gt; Self {<br>        Self {<br>            host: &quot;localhost&quot;.to_string(),<br>            port: 8080,<br>            use_ssl: false,<br>        }<br>    }<br>    fn host(mut self, host: &amp;str) -&gt; Self {<br>        self.host = host.to_string();<br>        self<br>    }<br>    fn port(mut self, port: u16) -&gt; Self {<br>        self.port = port;<br>        self<br>    }<br>    fn ssl(mut self, ssl: bool) -&gt; Self {<br>        self.use_ssl = ssl;<br>        self<br>    }<br>    fn build(self) -&gt; Config {<br>        Config {<br>            host: self.host,<br>            port: self.port,<br>            use_ssl: self.use_ssl,<br>        }<br>    }<br>}</pre><p>Usage:</p><pre>let config = ConfigBuilder::new()<br>    .host(&quot;127.0.0.1&quot;)<br>    .port(3000)<br>    .ssl(true)<br>    .build();</pre><p>This pattern adds flexibility and readability — especially useful in configuration-heavy applications like CLI tools or servers.</p><h3>6. Don’t forget about Default</h3><p>If your struct has sensible defaults, implement the Default trait:</p><pre>#[derive(Default)]<br>struct Settings {<br>    dark_mode: bool,<br>    volume: u8,<br>}</pre><p>You can also manually implement it:</p><pre>impl Default for Settings {<br>    fn default() -&gt; Self {<br>        Self {<br>            dark_mode: true,<br>            volume: 50,<br>        }<br>    }<br>}</pre><p>Then use:</p><pre>let settings = Settings::default();</pre><p>Combine with builder pattern for powerful combos.</p><h3>Final Thoughts</h3><p>Rust doesn’t hold your hand with constructors — and that’s a <em>good thing</em>.</p><p>You’re encouraged to build exactly what you need: no more, no less. Whether you’re crafting simple new() functions, smart constructors with validation, or flexible builders for complex structs, the goal is always the same:</p><p><strong>Clarity, correctness, and control.</strong></p><blockquote><em>“In Rust, constructors aren’t magic. They’re just code — and that’s empowering.”</em></blockquote><h3>Bonus: Quick Checklist</h3><p><strong>Use Case:</strong> Basic struct creation<br> <strong>Pattern:</strong> new() function</p><p><strong>Use Case:</strong> Multiple variations<br> <strong>Pattern:</strong> with_* methods</p><p><strong>Use Case:</strong> Validation on construction<br> <strong>Pattern:</strong> Return Result&lt;Self, Err&gt;</p><p><strong>Use Case:</strong> Complex configuration<br> <strong>Pattern:</strong> Builder pattern</p><p><strong>Use Case:</strong> Defaults for everything<br> <strong>Pattern:</strong> Implement Default trait</p><p><strong>Use Case:</strong> Enforce controlled creation<br><strong>Pattern:</strong> Make new() private</p><p>Happy constructing, Rustaceans!<br> If you liked this guide, feel free to share it with your team and maybe refactor that dusty old new() method you&#39;ve been avoiding. 😉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c48336c1c23a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>