<?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 Raj Kanjariya on Medium]]></title>
        <description><![CDATA[Stories by Raj Kanjariya on Medium]]></description>
        <link>https://medium.com/@rajkanjariya2020?source=rss-82545eb3171f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-0qS-w7aUf-Ky6mg4MS4ag.png</url>
            <title>Stories by Raj Kanjariya on Medium</title>
            <link>https://medium.com/@rajkanjariya2020?source=rss-82545eb3171f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 15:34:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rajkanjariya2020/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[Everything Speaks to Everything Else: One Raindrop in GTA VI Touches Five Systems]]></title>
            <link>https://medium.com/@rajkanjariya2020/everything-speaks-to-everything-else-one-raindrop-in-gta-vi-touches-five-systems-bbf512bd8675?source=rss-82545eb3171f------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbf512bd8675</guid>
            <category><![CDATA[gta-6]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[gaming]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Raj Kanjariya]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 11:43:50 GMT</pubDate>
            <atom:updated>2026-11-24T11:43:50.432Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>GAME ENGINEERING · SYSTEMS DESIGN</strong></h4><h4><em>Rain alone changes hair, roads, light, visibility and sound. The engineering cost of coupled game systems, and one rule: count connections.</em></h4><figure><img alt="A cartoon raindrop wearing an engineer’s hard hat tangled in cables connecting five game systems: hair, wet roads, sound, lighting and pedestrians." src="https://cdn-images-1.medium.com/max/1024/1*njYWHMIncH14NAbntwjENQ.png" /></figure><p>Somewhere in a <a href="https://www.rockstargames.com/">Rockstar</a> tuning meeting, someone changes one number.</p><p>Rain now starts twenty seconds earlier.</p><p>That is the whole change. One number. And now the road has to look wet, the pedestrians’ hair has to hang heavy, the light has to darken, the visibility has to drop, and the sound of the street has to change with it.</p><p>Five systems. One number. Nobody gets to ship just one of them.</p><p><em>Hypothetical scene, written to illustrate the problem. The five effects are the ones 80 Level reported rain having in </em><a href="https://www.rockstargames.com/VI"><em>GTA VI</em></a><em>.</em></p><blockquote><strong><em>The 30-second version</em></strong></blockquote><ul><li>Rockstar’s VP of Design says changing one part of GTA VI’s world can ripple into others.</li><li>Reported effects of rain alone: hair, surface materials, visibility, audio and lighting all change.</li><li>My rule for developers: count connections, not features. Ten systems can mean up to 45 pairs that may interact. <em>(My arithmetic.)</em></li></ul><h3>1. The most expensive part of rain is everything it touches</h3><p>GTA VI launched on Nov 19, 2026. Since then, most of the talk has been about frame rates and ray tracing. I think the more interesting story is the one that does not fit in a screenshot.</p><p>According to 80 Level’s breakdown of Rockstar’s new tech, rain in <a href="https://www.rockstargames.com/VI">GTA VI</a> changes surface materials, reduces visibility, alters lighting, and visibly dampens strand-based hair. In the same piece, the author lists audio among the things rain changes.</p><p>Wind is just as busy. It moves clothing, hair, vegetation and atmospheric particles, and it also changes how far fragments of NPC conversation travel.</p><p>That is not a weather effect. It is a chain reaction with a weather forecast on top.</p><p><strong>A feature that touches five other features is not one feature. It is six.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bj-HdBqzRmApAQllJAdtjw.png" /></figure><h3>2. Ten systems do not mean ten problems. They mean up to 45.</h3><p>80 Level’s article walks through roughly ten systems: animation retargeting, NPC behaviour, sweat, cloth, audio, weather, police, relationships, props and hair, and ray-traced lighting. <em>(My count of its headings.)</em></p><p>Now do the arithmetic. With n systems, the number of possible pairs is <strong>n × (n − 1) ÷ 2.</strong></p><ul><li>5 systems: up to 10 pairs</li><li>10 systems: up to 45 pairs</li><li>20 systems: up to 190 pairs</li></ul><p><em>(My arithmetic. This is an upper bound. Real games do not connect everything to everything, and I do not know Rockstar’s actual architecture.)</em></p><p>But the shape of the curve is the point. Features grow in a line. Possible interactions grow like a bowl. Every system you add is another column in every other system’s test matrix.</p><p><strong>The hidden cost of a new feature is not its code. It is the connections it creates.</strong></p><h3>3. Coupling comes in four flavours, and only one shows up in a profiler</h3><p>Here is the framework I use to think about this. It is my own taxonomy, not Rockstar’s.</p><ol><li><strong>Shared state.</strong> One value read by many systems. Think of a “wetness” number that hair, roads and NPCs all read.</li><li><strong>Events.</strong> Something happens and many systems react. Rain starts. Gunshot. Door opens.</li><li><strong>Shared budget.</strong> Everything competes for the same milliseconds per frame. Digital Foundry described the 30 FPS target as a trade-off for simulation scale.</li><li><strong>Shared meaning.</strong> Content that references other content. A police description that mentions what you are wearing is a connection between the police system and the clothing system.</li></ol><p>Only the third one is visible in a profiler. The other three hide in design documents, scripts and tuning sheets. That is why they hurt later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*18IhDdwqhAI9SqrseS0V9w.png" /></figure><h3>4. Rockstar’s own words: tuning became collaboration</h3><p>According to Rockstar’s VP of Design, Stephen Donkin, the game works because “<strong><em>everything speaks to everything else.</em></strong>” In the design notes reported by GamesBeat, he describes how, once all the systems were in place, tuning and balancing the world began to feel more like collaborating with the game than building it.</p><p>Read that as an engineer and it is a confession. When systems are coupled enough, you stop controlling each one. You start steering the whole.</p><p>That is exciting. It is also expensive, because the person who changes the rain also has to understand the hair, the road, the crowd, the mix and the light.</p><h3>5. Three chain reactions you can verify yourself</h3><p>These come from 80 Level’s reporting. I picked ones where one system clearly changes another.</p><ul><li><strong>Body size → animation.</strong> Characters in GTA VI vary far more in height and build than in earlier Rockstar games. An interaction made for a 5′6″ character will not line up for a 6′2″ one, so the game retargets animations at runtime. Take-Two has a pending patent that appears closely aligned with this, but Rockstar has not confirmed it is the system used.</li><li><strong>Clothing → police.</strong> Police track what witnesses, victims and cameras could identify. Changing clothes, abandoning a recognised car or wearing a mask can change what they know.</li><li><strong>Wind → clouds, plants and voices.</strong> One atmospheric state feeds the sky, the vegetation, the clothing and the sound.</li></ul><p>The animation library behind this is reportedly over 600,000 animations, compared with roughly 55,000 for<a href="https://www.rockstargames.com/gta-v"> GTA V</a>. <em>(Reported figure. Treat as to verify.)</em></p><p><strong>None of these is hard alone. The hard part is that all of them are on at once.</strong></p><h3>6. What most people get wrong: coupling is not a feature, it is a risk</h3><p>The common reading of GTA VI is “more detail”. More sweat, more cloth, more weather.</p><p>But each detail is also a possible failure path. Coupled systems create emergent behaviour, and emergent behaviour includes emergent bugs. Within days of launch, early posts were already complaining about bugs, and a swimming glitch clip was circulating. <em>(From a secondary live blog, so treat as unconfirmed.)</em></p><p>I am not saying the game is broken. I am saying a world that can surprise you in good ways can surprise you in other ways too. That is the trade.</p><h3>7. The mistake we keep repeating: adding features like items on a list</h3><p><em>(This section is my opinion.)</em></p><p>If you have worked on software for a few years, this story is familiar. Teams split an app into services because each service is simple. Then they discover the network between the services is where the bugs live.</p><p>Games do the same thing with systems. We celebrate each system when it ships, and we forget to ask what it will talk to.</p><p>The lesson is the same in both worlds: <strong>simple parts do not make a simple whole.</strong> The whole has its own complexity, and it comes from the wires.</p><h3>8. Hype vs reality</h3><p><strong>What is genuinely strong</strong></p><ul><li>A world that reacts as a system, not as a set of scripts</li><li>Shared causes (weather, wind, clothing) that produce visible effects in many places</li></ul><p><strong>What deserves caution</strong></p><ul><li>Emergent bugs: more connections, more places for odd things to happen</li><li>Tuning cost: changing one thing means re-checking many things <em>(Rockstar’s own description)</em></li><li>Performance: shared budgets get tighter as systems multiply</li><li>Most details above come from developer interviews and press coverage, not from independent testing. Long-run behaviour is not known yet.</li></ul><h3>Try this in 2 minutes</h3><p>Open your browser console (F12) and paste this toy model. It is not Rockstar’s code. It only shows the idea.</p><pre>// 1) How many possible pairs can n systems have?<br>const pairs = n =&gt; n * (n - 1) / 2;<br>[5, 10, 20].forEach(n =&gt;<br>  console.log(n + &#39; systems -&gt; up to &#39; + pairs(n) + &#39; pairs&#39;)<br>);<br><br>// 2) One shared fact, many readers<br>const world = { wetness: 0 };<br>const readers = {<br>  hair:  w =&gt; w.wetness &gt; 0.5 ? &#39;hair hangs heavy&#39;       : &#39;hair normal&#39;,<br>  road:  w =&gt; w.wetness &gt; 0.5 ? &#39;road reflects the sky&#39;  : &#39;road looks matte&#39;,<br>  audio: w =&gt; w.wetness &gt; 0.5 ? &#39;rain hiss in the mix&#39;   : &#39;dry ambience&#39;,<br>  npc:   w =&gt; w.wetness &gt; 0.5 ? &#39;pedestrian seeks cover&#39; : &#39;pedestrian strolls&#39;,<br>};<br>world.wetness = 0.8;<br>for (const [name, read] of Object.entries(readers)) {<br>  console.log(name + &#39;: &#39; + read(world));<br>}</pre><p>You will see 10, 45 and 190 pairs, then four systems reacting to one number. Now add a fifth reader and notice how much you must re-check.</p><h3>What developers can take from this</h3><p><strong>Stop</strong></p><ol><li>Counting features as the measure of progress</li><li>Letting one system read another system’s private data</li><li>Tuning one system without checking its neighbours</li></ol><p><strong>Start</strong></p><ol><li>Drawing a connection map next to every feature list</li><li>Using one shared source of truth for shared facts (like “wetness”)</li><li>Writing down who reads each value before you add a new reader</li></ol><p><strong>Five skills worth learning</strong></p><ol><li>Systems thinking and dependency mapping</li><li>Event-driven design basics</li><li>Frame-time and budget profiling</li><li>Test design for combinations, not just single features</li><li>Reading postmortems with one question: what connected to what?</li></ol><h3>Where this goes next</h3><ul><li><strong>Confirmed:</strong> Rockstar publicly describes GTA VI as an interconnected simulation, and says tuning it felt like collaborating with the game.</li><li><strong>Likely</strong>: more open-world games will market their “systems” instead of their feature lists.<em> (My read.</em>)</li><li><strong>Speculation</strong>: AI-generated NPC behaviour will multiply connections faster than studios can test them. Nothing in my sources confirms this.</li></ul><h3>Key takeaways</h3><ul><li>Rain in GTA VI reportedly touches hair, materials, visibility, audio and light.</li><li>Ten systems can have up to 45 possible interactions. The curve grows faster than the feature list.</li><li>Coupling has four flavours: shared state, events, shared budget, shared meaning.</li><li>Coupled worlds feel alive and can also surprise you in bad ways.</li><li>Count connections, not features.</li></ul><blockquote><strong><em>Features add code. Connections add consequences.</em></strong></blockquote><h3>Final thought</h3><p>The rain is not the achievement. The achievement is that the road, the hair, the light, the crowd and the sound all agree that it is raining.</p><p>One agreement is easy. Hundreds of them, all at once, in a game that has to run at 30 frames a second, is the part I keep thinking about.</p><p><strong>Your turn:</strong> what is the strangest bug you have hit that came from two features that “had nothing to do with each other”? I would like to hear the story, and what finally revealed the hidden connection.</p><p><strong>Thanks for reading! 🙏</strong></p><p>Follow me on Medium: <a href="https://medium.com/@rajkanjariya2020">rajkanjariya</a></p><p>Portfolio: <a href="https://rajkanjariya.dev/">https://rajkanjariya.dev/</a></p><p>LinkedIn: <a href="http://linkedin.com/in/raj-kanjariya-webdeveloper">Raj Kanjariya</a></p><p>— Raj Kanjariya, Full-Stack Developer &amp; AI Researcher</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbf512bd8675" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How GTA VI Renders a Living City: The Technology Behind Real-Time Graphics]]></title>
            <link>https://medium.com/@rajkanjariya2020/how-gta-vi-renders-a-living-city-the-technology-behind-real-time-graphics-863c4ceb05d7?source=rss-82545eb3171f------2</link>
            <guid isPermaLink="false">https://medium.com/p/863c4ceb05d7</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[gta-6]]></category>
            <category><![CDATA[gaming]]></category>
            <category><![CDATA[computer-graphics]]></category>
            <dc:creator><![CDATA[Raj Kanjariya]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 04:37:10 GMT</pubDate>
            <atom:updated>2026-11-23T04:37:10.458Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>GAME ENGINEERING · REAL-TIME GRAPHICS</strong></h4><h4><em>Ray-traced light, strand hair and a rain cloud that lives on a single street. This is the engineering trade-off that makes Vice City feel alive.</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IoPaJ8UbNANxFHdNVlLfNg.png" /><figcaption>Rain falling on one city block while the rest of the skyline stays dry.</figcaption></figure><p><em>Composite scene, written for this article. Not a real player’s story.</em></p><p>It is dusk in <a href="https://www.rockstargames.com/games/vicecity">Vice City</a>. You are driving nowhere in particular.</p><p>Two blocks ahead, it is raining. Properly raining. Your block is dry, the sun is dying orange on your hood, and the wet road ahead throws that same sunset back at you like a mirror.</p><p>A pedestrian on the corner sees the cloud coming. She pulls her jacket over her head and sprints for a doorway. Her hair, strand by strand, is already getting heavy with water.</p><p>Nobody scripted this moment. That is what bothers engineers about it.</p><p>And it is running on a box under your TV.</p><blockquote><strong><em>The 30-second version</em></strong></blockquote><ul><li>On PS5 and PS5 Pro, Digital Foundry found GTA VI renders internally at about 1440p and targets 30 FPS. The Pro uses PSSR to reconstruct a near-4K image.</li><li>Ray-traced global illumination and ray-traced reflections run on every console version. The PS5 Pro adds ray-traced shadows.</li><li>30 FPS is not laziness. It is the price of a city simulation that is limited by the CPU, not the GPU.</li></ul><h3>1. The rain falls on one block, and that is the whole point</h3><p>GTA VI launched on Nov 19, 2026 for PS5 and Xbox Series X|S. Within days, Digital Foundry (DF) published its technical review, and the first thing worth stealing from it is not a resolution or a frame rate.</p><p>It is weather.</p><p>According to DF’s analysis, storms in GTA VI build up over individual districts. You can watch one gather, darken the street below it, and drop rain on specific city blocks while the rest of the map stays dry.</p><p>In many open-world games, weather behaves like a switch. It is raining everywhere or nowhere. Local weather is a different kind of problem, because the lighting, the reflections, the crowd behaviour and the audio all have to agree about which streets are wet.</p><p><strong>Weather in GTA VI is not a skybox effect. It is a place.</strong></p><p>DF also reports that level-of-detail transitions stay almost invisible even at long distance, and that moving traffic, crowds and working streetlights remain visible all the way to the horizon. That detail matters. It means the city does not switch off when you stop looking at it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sed36XqKUT5aMub2RjI5SQ.png" /><figcaption>Upscaling pipeline from 1440p to near-4K on PS5 Pro.</figcaption></figure><h3>2. The headline number is 1440p, and it is the least interesting one</h3><p>DF counted an internal resolution of 1440p on both PS5 and PS5 Pro. The Pro then uses PSSR, Sony’s AI upscaler, to reconstruct a near-4K picture. DF’s verdict is that the Pro is the best way to play by far.</p><p>Base-console resolution sounds like a downgrade until you do the arithmetic.</p><ul><li>2560 × 1440 = <strong>3,686,400</strong> pixels</li><li>3840 × 2160 = <strong>8,294,400</strong> pixels</li></ul><p><em>(My own calculation, not a sourced figure.)</em></p><p>Native 4K would ask the GPU to shade about 2.25 times as many pixels every single frame. That is GPU time that cannot be spent on ray-traced light, reflections or hair.</p><p>Resolution is not a quality score. It is a budget decision. Rockstar chose to spend fewer pixels and more of everything else.</p><h3>3. Light is the first thing the engine simulates</h3><p>Here is the part that surprised people. Ray tracing in GTA VI is not an optional mode or a Pro-only luxury. DF confirmed ray-traced global illumination (RTGI) and ray-traced reflections across the console lineup. The PS5 Pro adds ray-traced shadows on top.</p><p>Quick translation for non-graphics people:</p><ul><li><strong>Global illumination</strong> means light bounces. Sunlight hits a red wall and quietly tints the white pavement next to it. Old games faked this with baked lighting. Here it is calculated live.</li><li><strong>Ray-traced reflections</strong> mean a wet road reflects the actual street, not a blurry painted copy of it.</li><li><strong>Ray-traced shadows</strong> (Pro only) remove the chunky shadow artifacts DF saw on the base PS5.</li></ul><p>DF went as far as calling it arguably the best ray tracing implementation it has seen.</p><p>DF also measured HDR highlights above 1,500 nits, which is why that sunset on the hood in our opening scene can actually glow.</p><p><strong>Rain only looks believable when the road can reflect the sky above it.</strong> The weather system and the lighting system are one system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WZAuvFZLNsiVwOX1UmFKqg.png" /><figcaption>Frame budget diagram showing 33.3 milliseconds split across simulation and rendering.</figcaption></figure><h3>4. 30 FPS is a CPU story, not a GPU story</h3><p>This is the section I would screenshot.</p><p>At 30 FPS, the game has 33.3 milliseconds to finish a frame. At 60 FPS it has 16.7. <em>(My arithmetic: 1000 ÷ fps.)</em></p><p>Before the GPU can draw anything, the CPU has to finish thinking. Every pedestrian’s decision. Traffic. Physics. Police dispatch. Audio. Interiors. All of it, every frame.</p><p>Think of a restaurant kitchen. The GPU is the person plating the food. The CPU is the cook. Plating faster does not help if the food is not cooked yet.</p><p>This matches what was reported at launch. DF called the 30 FPS cap a deliberate trade-off that frees Rockstar to focus on simulation scale. Rockstar’s own position, as relayed by outlets, is that even the PS5 Pro’s CPU cannot run a simulation this dense at 60. And DF closed the door on a 40 FPS mode for the same CPU reason.</p><p><strong>Doubling the frame rate would not cost you shiny pixels. It would cost you people.</strong></p><h3>5. Hair is the tell</h3><p>If you want to know where a studio believes realism lives, look at what it spends GPU time on.</p><p>GTA VI uses physics-driven strand hair. Individual strands respond to movement, wind, and water. DF called it one of the biggest surprises of the review.</p><p>One honest flag: reports disagree on how far this goes. Some summaries say every character, including ordinary pedestrians, has strand hair. Another says only the two leads and a share of the crowd do. Treat the exact scope as <strong>to verify</strong>.</p><p>Either way, the message is clear. Rockstar did not only polish the hero characters. It spent expensive rendering budget on the background people, the ones you pass at a crosswalk.</p><h3>6. A city is a system, not a map</h3><p>The most interesting finding in DF’s review is not a graphics feature. It is behaviour.</p><ul><li>Pedestrians react to what is happening around them and seek shelter during shootouts.</li><li>Police are dispatched from actual stations in the world, instead of appearing with instant omniscience as in older games.</li><li>Vehicle physics were described as rivalling dedicated racing games, and DF places the driving feel between <a href="https://www.rockstargames.com/VI">GTA IV</a> and <a href="https://www.rockstargames.com/gta-v">GTA V.</a></li></ul><p>DF’s summary of the whole thing is that the achievement is density. Interiors, traffic, NPCs, weather, lighting, crime and audio all run together in one world that feels more like a place than a map.</p><p><strong>The graphics are what you notice. The simulation is why you believe it.</strong></p><h3>7. Two myths: “30 FPS means unoptimised” and “1440p means soft”</h3><p>Both are lazy readings of the same data.</p><p>Rockstar’s 30 FPS is a design choice, and DF found the PS5 Pro holds it almost perfectly, with brief dips to around 24 only in stress tests. A game that spends its frame budget on a living city is not “unoptimised”. It is optimised for a different goal.</p><p>And 1440p with PSSR is not the same as a soft 1440p. DF noted a substantial image quality difference on the Pro.</p><p>But here is the part hype articles skip. On the base PS5, DF saw dips into the mid-20s during long fights with lots of explosions, and the standard console is less stable in ordinary play such as driving through the city. DF’s own overall summary of console performance was “acceptable yet a little disappointing”.</p><p>Both things are true. The tech is remarkable, and it is not free.</p><h3>8. The mistake we keep repeating: judging worlds by spec sheets</h3><p><em>(This section is my opinion, not reported fact.)</em></p><p>Every console generation opens with the same argument about resolution and frame rate. Almost nobody remembers the argument two years later. Everybody remembers whether the world felt alive.</p><p>We keep scoring games like graphics cards and then wonder why we feel nothing. GTA VI is a useful counter-example, because its most important feature, a city that reacts, does not show up on a spec sheet at all.</p><h3>9. Hype vs reality</h3><p><strong>What is genuinely strong</strong></p><ul><li>Ray tracing on every console, not only the premium one</li><li>A simulation density that DF calls possibly the most detailed urban simulation it has experienced</li><li>Near-4K image quality on PS5 Pro through PSSR</li></ul><p><strong>What deserves caution</strong></p><ul><li>Base <a href="https://www.playstation.com/en-in/ps5/">PS5 </a>dips into the mid-20s in heavy moments</li><li><a href="https://www.xbox.com/">Xbox </a>Series S reportedly renders at about 720p internally, with frame rates in the 20s in busy scenes. This comes from a single secondary outlet, so it is <strong>to verify</strong>.</li><li>No 60 FPS mode at launch</li><li>Four days after launch, nobody has long-run data on how the open world behaves over dozens of hours.</li><li>Everything above is DF’s video analysis as relayed by outlets. I could not open the video itself.</li></ul><h3>Try this in 2 minutes</h3><p>Open your browser console (F12) and paste:</p><pre>// Frame budget: how many milliseconds does one frame get?<br>[30, 40, 60].forEach(fps =&gt;<br>  console.log(fps + &#39; FPS = &#39; + (1000 / fps).toFixed(1) + &#39; ms per frame&#39;)<br>);</pre><p>You will see 33.3 ms, 25.0 ms and 16.7 ms. Now imagine fitting every pedestrian’s decision, every car, and every police dispatch into the smallest one.</p><h3>What developers can take from this</h3><p><strong>Stop</strong></p><ol><li>Treating resolution as a quality metric</li><li>Profiling only the GPU</li><li>Adding features without someone owning the frame-time budget</li></ol><p><strong>Start</strong></p><ol><li>Writing a millisecond budget for every system, not only rendering</li><li>Tracking the worst-case frame time, not just the average</li><li>Designing level of detail for AI and physics, not only for meshes</li></ol><p><strong>Five skills worth learning</strong></p><ol><li>Frame-time profiling (CPU and GPU)</li><li>Data-oriented design basics</li><li>Upscaling and reconstruction concepts (PSSR, TAA, FSR)</li><li>Real-time global illumination fundamentals</li><li>Perceptual testing: does it feel alive, not only does it measure well</li></ol><h3>Where this goes next</h3><ul><li><strong>Confirmed:</strong> GTA VI targets 30 FPS on all current consoles at launch.</li><li><strong>Likely:</strong> big open-world games will be judged on ray tracing and simulation density, not resolution alone. <em>(My read.)</em></li><li><strong>Speculation:</strong> a 60 FPS patch. DF and others describe a CPU limit, so it would likely mean cutting the simulation.</li><li><strong>Speculation:</strong> a PC version in early 2027. One report cites industry sources, but nothing is officially confirmed.</li></ul><h3>Key takeaways</h3><ul><li>Resolution is a budget decision, not a quality score.</li><li>GTA VI’s ray tracing is on every console, and weather, light and reflections work as one system.</li><li>30 FPS here is a CPU-bound choice that protects the simulation.</li><li>Hair, local weather and police dispatch are all the same story: spend the frames on the world.</li><li>Base PS5 dips are real. Honest tech writing keeps both truths.</li></ul><blockquote><strong><em>Frames are a budget, and Rockstar spent them on the city, not on the screen.</em></strong></blockquote><h3>Final thought</h3><p>The rain on that one block was never a graphics effect. It was a message: the world does not need you to be watching for it to be real.</p><p>Whether Rockstar fully delivers that across 100 hours is something only players will tell us. But as an engineering bet, trading frames for a city that thinks is the most interesting one I have seen this generation.</p><p><strong>Your turn:</strong> if you could double the frame rate to 60 by halving crowd density and simplifying NPC behaviour, would you take the deal? I would not, but I would like to hear the strongest case for yes.</p><p><strong>Thanks for reading! 🙏</strong></p><p>Follow me on Medium: <a href="http://medium.com/@rajkanjariya2020">rajkanjariya</a></p><p>Portfolio: <a href="https://rajkanjariya.dev/">https://rajkanjariya.dev/</a></p><p>LinkedIn: <a href="http://linkedin.com/in/raj-kanjariya-webdeveloper">Raj Kanjariya</a></p><p>— Raj Kanjariya, Full-Stack Developer &amp; AI Researcher</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=863c4ceb05d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scientists Are Teaching Living Human Brain Cells to Play Video Games. What Happens Next?]]></title>
            <link>https://medium.com/@rajkanjariya2020/scientists-are-teaching-living-human-brain-cells-to-play-video-games-what-happens-next-3bf2ed3f6c2e?source=rss-82545eb3171f------2</link>
            <guid isPermaLink="false">https://medium.com/p/3bf2ed3f6c2e</guid>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[future]]></category>
            <category><![CDATA[science]]></category>
            <dc:creator><![CDATA[Raj Kanjariya]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 07:11:24 GMT</pubDate>
            <atom:updated>2026-11-18T07:11:24.852Z</atom:updated>
            <content:encoded><![CDATA[<h4>What if the future of computing isn’t silicon alone, but living human brain cells? Scientists are already connecting neurons to computers and exploring an entirely new form of biological computing. What happens when the line between biology and technology starts to disappear?</h4><h4><em>Researchers have connected living neurons to computers, taught them to respond to Pong, and are now building biological computing systems. The strange part isn’t that cells can play a game. It’s what this could mean for the future of computing.</em></h4><figure><img alt="Cultured neural cells inside a petri dish positioned on a microelectrode array in a neuroscience research laboratory." src="https://cdn-images-1.medium.com/max/1024/1*4CeDhHxZy7WDkhL5jKo6yg.png" /></figure><p>Imagine walking into a computer laboratory.</p><p>There are no rows of glowing gaming PCs. No graphics cards. No mechanical fans spinning inside desktop towers.</p><p>Instead, you see a small dish containing living cells.</p><p>Those cells are connected to a silicon chip. Electrodes send electrical signals into them. Other electrodes record the activity coming back.</p><p>A computer translates those signals into movement on a screen.</p><p>And somewhere in that experiment, a tiny network of living neurons is trying to keep a digital ball from passing its paddle.</p><p>This isn’t a scene from a science-fiction film.</p><p>In 2022, researchers published a study describing DishBrain, an experimental system that connected cultured neurons to a simulated version of Pong. The research included neurons derived from human stem cells as well as mouse cortical neurons.</p><p>The team reported changes in gameplay performance over time when the cells received feedback from the simulated environment.</p><p>Then the story became even stranger.</p><p>Companies began developing biological computers. Researchers demonstrated more complex experiments. In 2026, biological computing systems moved into dedicated research infrastructure.</p><p>We’re no longer talking only about using computers to simulate brains.</p><p>We’re beginning to connect living neural networks to computers and study what happens when biology and silicon work together.</p><p>And that raises a fascinating question:</p><p><strong>What happens when the next generation of computers doesn’t just imitate the brain, but uses living neurons as part of its hardware?</strong></p><h3>1. First, What Exactly Was Playing Pong?</h3><p>Let’s go back to 2022.</p><p>A research team developed a system called <strong>DishBrain</strong>, integrating living neurons with a computer-generated environment.</p><p>The experiment was described in a paper published in the journal <em>Neuron</em>:</p><p><a href="https://doi.org/10.1016/j.neuron.2022.09.001">In vitro neurons learn and exhibit sentience when embodied in a simulated game-world</a>.</p><p>The researchers grew neural cells on top of a high-density microelectrode array.</p><p>This is important because the cells weren’t simply placed near a computer and observed.</p><p>The electrode array could perform two jobs:</p><ul><li>Deliver electrical stimulation to the neural network.</li><li>Record electrical activity produced by the neurons.</li></ul><p>That created a communication channel between biological tissue and software.</p><p>The researchers connected this system to a simplified Pong environment.</p><p>Pong is a basic game. A ball moves across the screen, and a paddle must be positioned to intercept it.</p><p>The experimental setup translated information about the game into electrical stimulation. Neural activity was then interpreted by the software to influence the paddle.</p><p>In simple terms:</p><blockquote><strong>The computer sent information to the neurons. The neurons responded. The computer translated that response into an action.</strong></blockquote><p>This is called a closed-loop system.</p><p>And that detail matters more than the video game itself.</p><h3>2. The Interesting Part Wasn’t Pong. It Was Feedback.</h3><p>Why would researchers connect living neurons to a game in the first place?</p><p>Because they wanted to investigate how neural networks adapt when they interact with an environment.</p><p>The DishBrain experiment wasn’t about building a biological gaming console.</p><p>It was about studying learning-like behaviour in a controlled system.</p><p>The researchers observed that the neural cultures improved their performance during real-time gameplay. Their experiments also found that stimulation without meaningful feedback did not produce the same reported improvement.</p><p>This points toward an important principle:</p><blockquote><strong>A system that receives information about the consequences of its actions can behave differently from one that simply receives random input.</strong></blockquote><p>Think about how you learn to ride a bicycle.</p><p>You make a movement. You observe what happens. You adjust. You try again.</p><p>Your brain continuously processes information from the environment and changes its responses.</p><p>DishBrain explored a much simpler version of this idea using cultured neural networks.</p><p>But let’s be precise.</p><p>The experiment did not demonstrate that a miniature human brain had developed human-like intelligence, understood Pong or consciously wanted to win.</p><p>The cells were part of an engineered experimental system. Their electrical activity was coupled to a carefully designed feedback environment.</p><p>That distinction is essential.</p><p>The real scientific achievement was demonstrating a way to connect living neural networks to a digital environment and observe adaptive behaviour.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*McUz6C0FMYakXvUN76lPuA.png" /></figure><h3>3. How Do You Connect a Living Cell to a Computer?</h3><p>This is where the engineering becomes fascinating.</p><p>A conventional computer communicates using electrical signals moving through circuits.</p><p>Neurons also communicate through electrical activity, although their biology is considerably more complicated.</p><p>Neurons receive signals, integrate information and transmit electrical impulses through networks.</p><p>Researchers can take advantage of this electrical activity using a device called a <strong>microelectrode array</strong>, or MEA.</p><blockquote>&lt;figure&gt; &lt;img alt=””/&gt; &lt;/figure&gt;</blockquote><p>An MEA contains many tiny electrodes arranged across a surface.</p><p>When neurons grow on that surface, the electrodes can record electrical activity from the network and stimulate it.</p><p>The process can be understood in four stages:</p><p><strong>Stage 1 — Biological preparation</strong></p><p>Neural cells are grown under controlled laboratory conditions. Depending on the experiment, they may be derived from stem cells or obtained from other biological sources.</p><p><strong>Stage 2 — Electrical interface</strong></p><p>The cells are positioned on a microelectrode array. This allows researchers to communicate with the neural network through electrical stimulation and recording.</p><p><strong>Stage 3 — Software translation</strong></p><p>Software converts information from a digital environment into stimulation patterns. It also interprets the electrical responses coming from the cells.</p><p><strong>Stage 4 — Closed-loop interaction</strong></p><p>The computer uses those responses to update the environment. The next round of stimulation depends on what happened previously.</p><blockquote>&lt;figure&gt; &lt;img alt=””/&gt; &lt;/figure&gt;</blockquote><p>The result is a hybrid system.</p><p>The silicon hardware handles precise digital operations. The biological network contributes its own complex electrical dynamics.</p><p>Neither component works in isolation.</p><p>The software defines the environment. The electrodes provide the interface. The living neurons form the biological network.</p><p>This combination is what makes biocomputing interesting.</p><h3>4. From a Dish of Neurons to a Biological Computer</h3><p>DishBrain was an important research experiment, but the idea didn’t stop there.</p><p>One company pushing this direction is Melbourne-based <strong>Cortical Labs</strong>.</p><p>In 2025, the company introduced the CL1, describing it as a code-deployable biological computer.</p><p>The device combines living neurons with silicon-based electronics and a system designed to maintain the biological environment.</p><p>The company’s architecture includes:</p><ul><li>A silicon interface for electrical communication.</li><li>Cultured biological neurons.</li><li>A controlled environment to keep the cells alive.</li><li>Software for sending stimulation and recording responses.</li><li>Tools for connecting experiments to external applications.</li></ul><p>The company calls its software environment the Biological Intelligence Operating System, or biOS.</p><p>The interesting idea is that researchers and developers can interact with biological neural networks through a software interface.</p><p>Instead of treating the cells as something that can only be observed under a microscope, the system treats them as part of a programmable experimental platform.</p><p>But the word <em>programmable</em> needs context.</p><p>It doesn’t mean you can upload Python code directly into a neuron or instruct biological cells to execute conventional computer instructions.</p><p>It means software can configure the experiments, deliver electrical inputs, receive neural responses and study how the network behaves.</p><p>That is a very different kind of computing.</p><p>And it opens up a new set of engineering questions.</p><p>How do you keep the cells healthy? How do you measure performance? How do you reproduce results? How do you debug a system whose computational component is living tissue?</p><p>These are not ordinary hardware problems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jsiHH1eItMJcEOgLqtaCGg.png" /><figcaption>Biological computing is moving from laboratory experiments toward more integrated research systems.</figcaption></figure><h3>5. The Story Has Already Moved Beyond Pong</h3><p>Here’s where things become particularly interesting.</p><p>In 2026, Cortical Labs demonstrated a biological computing system playing a version of the classic game Doom.</p><p>The demonstration attracted attention because Doom is considerably more complicated than Pong.</p><p>But it is important to understand what this does and doesn’t prove.</p><p>It demonstrates a company-led experiment involving a biological neural network connected to a digital environment.</p><p>It does not establish that the cells understand the game, possess human-like reasoning or can independently play modern games like a human.</p><p>The achievement is better understood as another experiment in connecting biological computation with increasingly complex digital tasks.</p><p>And there is a bigger development happening alongside these demonstrations.</p><p>Biological computers are beginning to move from isolated laboratory experiments toward shared research infrastructure.</p><p>In March 2026, the National University of Singapore announced a collaboration involving NUS Medicine, DayOne and Cortical Labs to establish a Biological Data Centre prototype.</p><p>The announced deployment involved 20 CL1 biological computing units in a research environment.</p><p>This is an important transition.</p><p>Instead of one experimental device sitting in a laboratory, researchers are beginning to explore how biological computing systems could be deployed, accessed and studied as part of a larger infrastructure.</p><p>It is still early-stage research infrastructure, not a replacement for conventional hyperscale data centres.</p><p>But it suggests that biocomputing is becoming an engineering platform worth investigating.</p><h3>6. Why Would Anyone Want Living Neurons Inside a Computer?</h3><p>This is probably the most important question.</p><p>Modern computers are incredibly powerful.</p><p>GPUs can perform enormous numbers of mathematical operations. Specialized accelerators can process neural networks at impressive speeds.</p><p>So why introduce living cells into the equation?</p><p>Because biological neural networks have properties that are interesting to researchers.</p><h3>Biological adaptation</h3><p>Neural networks change their activity in response to stimulation and experience.</p><p>Researchers want to understand the mechanisms behind this adaptation and whether they can be useful in engineered systems.</p><h3>Energy efficiency as a research opportunity</h3><p>Biological brains perform complex information processing using relatively little energy compared with many conventional computing systems.</p><p>This makes biological computing an interesting research direction.</p><p>However, comparing a dish of neurons with a GPU is not straightforward.</p><p>A biological system needs life-support infrastructure, environmental control, monitoring and specialized equipment.</p><p>We cannot simply look at the energy consumed by the cells and conclude that a biological computer is more efficient than a digital one.</p><p>A fair comparison must include the complete system and the actual task being performed.</p><h3>A new way to study disease</h3><p>This may be one of the most promising applications.</p><p>Researchers could potentially use human-derived neural cells to investigate how neural networks respond to drugs, disease-related changes or different stimulation patterns.</p><p>Instead of studying only simulated neural behaviour, scientists can observe electrical activity in living human-derived neural cultures.</p><p>This could contribute to neuroscience and drug research.</p><p>It does not mean a dish of neurons can reproduce the complexity of an actual human brain. It provides a different experimental model.</p><h3>7. The Biggest Problem: A Living Computer Is Not a Normal Computer</h3><p>Imagine buying a processor.</p><p>You install it, connect the power supply and run your software.</p><p>Now imagine a processor that consists partly of living cells.</p><p>You cannot simply turn it off for a month and expect everything to work when you return.</p><p>Living neural cultures need carefully controlled conditions.</p><p>They require nutrients, suitable temperature, appropriate chemical conditions and monitoring.</p><p>Their behaviour can change over time.</p><p>Biological variability also makes reproducibility a serious engineering challenge.</p><p>Consider a few problems:</p><p><strong>Maintenance:</strong> The cells must remain viable. That requires infrastructure beyond ordinary electronic cooling.</p><p><strong>Consistency:</strong> Two biological cultures may not behave identically, even when researchers try to prepare them in similar ways.</p><p><strong>Measurement:</strong> Neural activity is complex. Interpreting it requires careful experimental design.</p><p><strong>Scaling:</strong> Increasing the number of biological units does not automatically create a faster or more capable computer.</p><p><strong>Reliability:</strong> Conventional digital hardware is designed for repeatable operations. Biological systems are inherently variable.</p><p>This is why biological computers should not be viewed as direct replacements for CPUs or GPUs.</p><p>Their value may emerge in specialized research and hybrid computing applications where biological adaptation is useful.</p><p>The future might not be silicon versus biology.</p><p>It might be silicon working with biology.</p><h3>8. The Question Nobody Should Ignore: What About Ethics?</h3><p>Once scientists begin working with living human neural tissue, the conversation changes.</p><p>The important question is not simply whether a biological computer can perform a task.</p><p>It is how researchers should treat the biological material involved.</p><p>There are several issues.</p><p><strong>Where do the cells come from?</strong></p><p>Some experiments use human induced pluripotent stem cells, which can be derived from donated cells and differentiated into neurons. Consent, donor privacy and the permitted uses of biological samples matter.</p><p><strong>Could increasingly complex neural cultures develop morally relevant experiences?</strong></p><p>This is a serious research and ethics question, but it should not be confused with a claim that today’s Pong-playing cultures are conscious.</p><p>There is currently no established evidence that the systems described in these demonstrations possess human-like awareness or subjective experience.</p><p><strong>Who is responsible for oversight?</strong></p><p>Researchers, institutions and regulators need frameworks that evolve alongside the technology.</p><p>A 2024 <em>Nature Reviews Bioengineering</em> perspective on human brain organoids discusses issues including informed consent, moral status, commercialization and responsible innovation.</p><p><a href="https://www.nature.com/articles/s44222-024-00211-3">The ethical landscape of human brain organoids and a mindful innovation framework</a>.</p><p>These questions deserve attention before the technology becomes more complex, not after.</p><h3>9. So, Are Biological Computers Going to Replace Silicon?</h3><p>Probably not in the way headlines suggest.</p><p>Your laptop will not suddenly contain a living human neural network. Your smartphone is not about to replace its processor with a biological chip.</p><p>Silicon has enormous advantages:</p><ul><li>Precise and repeatable operations.</li><li>Mature manufacturing.</li><li>High-speed digital communication.</li><li>Established software ecosystems.</li><li>Predictable storage and computation.</li></ul><p>Biological computing has a different set of possible strengths:</p><ul><li>Adaptive neural activity.</li><li>Human-derived experimental models.</li><li>New approaches to studying learning and memory.</li><li>Hybrid biological-digital computation.</li></ul><p>These technologies solve different problems.</p><p>The more realistic future is a combination of conventional computers, specialized AI accelerators and experimental biological systems.</p><p>Imagine a research platform where conventional hardware handles data processing and simulation, while biological neural networks are used to study adaptation or specific biological responses.</p><p>That is a more interesting possibility than imagining a biological replacement for every processor.</p><h3>10. The Future Might Not Be Artificial Intelligence Alone</h3><p>For years, we have tried to make computers behave more like human intelligence.</p><p>We build artificial neural networks. Train models on enormous datasets. Design specialized chips to accelerate machine learning.</p><p>But biological computing introduces a different approach.</p><p>Instead of reproducing every aspect of neural computation using conventional hardware, researchers can investigate how living neural networks behave when connected directly to digital systems.</p><p>That doesn’t mean biology will automatically outperform silicon.</p><p>It doesn’t mean a collection of neurons is a human mind.</p><p>And it certainly doesn’t mean we are close to creating conscious computers.</p><p>But it does challenge an assumption that has shaped computing for decades:</p><p>That useful computation must happen entirely inside conventional electronic hardware.</p><p>Maybe the future of computing will not be defined by one kind of processor.</p><p>Maybe it will be defined by systems that combine different forms of computation — digital, biological and eventually other approaches we haven’t fully understood yet.</p><p>The most fascinating part of this story isn’t that living neurons can play Pong.</p><p>It’s that we are learning how to build a communication bridge between two very different worlds.</p><p>And we are only beginning to discover what that bridge might make possible.</p><blockquote><em>If you could run one experiment using a biological computer, what would you ask it to do — learn a new task, help researchers understand a neurological disease, or solve a problem that conventional computers struggle with?</em></blockquote><h3>Connect With Me 🙏</h3><p>Thanks for reading!</p><p><strong>👉 Follow on Medium:</strong><br><a href="https://medium.com/@rajkanjariya2020">medium.com/@rajkanjariya2020</a></p><p><strong>Portfolio:</strong><br><a href="https://rajkanjariya.dev/">rajkanjariya.dev</a></p><p><strong>LinkedIn:</strong><br><a href="https://www.linkedin.com/in/raj-kanjariya-webdeveloper">Raj Kanjariya</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3bf2ed3f6c2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Searching for UI Components. Build a Design Intelligence System Instead.]]></title>
            <link>https://medium.com/@rajkanjariya2020/stop-searching-for-ui-components-build-a-design-intelligence-system-instead-77d19c2be4fd?source=rss-82545eb3171f------2</link>
            <guid isPermaLink="false">https://medium.com/p/77d19c2be4fd</guid>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[ui-ux-design]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Raj Kanjariya]]></dc:creator>
            <pubDate>Tue, 10 Nov 2026 02:11:01 GMT</pubDate>
            <atom:updated>2026-11-10T02:11:01.680Z</atom:updated>
            <content:encoded><![CDATA[<h4>Thousands of UI libraries exist. Countless animation tools, icon collections and design resources are only a search away. But finding the right combination is still a frustrating part of frontend development. I wanted to explore a better approach: a design intelligence system that helps developers make more informed decisions before they start building.</h4><h4><em>Developers have thousands of UI libraries, component collections and animation tools at their fingertips. The hard part isn’t finding them — it’s knowing which ones actually belong in your project.</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*acZqrwm2YNk6YbEP6DMIPw.png" /></figure><p>You need a button for your new application.</p><p>Simple enough.</p><p>You search for React button components.</p><p>Then you find a component library.</p><p>But it doesn’t quite match your design.</p><p>So you look for another one.</p><p>That leads you to an animation library. Then an icon collection. Then a typography resource. Then a website showcasing beautiful dashboard designs.</p><p>A few minutes later, you have 15 browser tabs open.</p><p>And you still haven’t decided how your interface should look.</p><p>This is a familiar experience for <strong><em>frontend developers.</em></strong></p><p>We have more design resources than ever before. Thousands of component libraries, animation systems, icon collections, typography tools and inspiration websites are available online.</p><p>Yet discovering the right combination remains surprisingly difficult.</p><p><strong>The problem isn’t a lack of UI resources. It’s the lack of intelligence connecting them.</strong></p><p>That’s the problem I wanted to explore with UI Architect AI.</p><p>GitHub: <a href="https://github.com/kanjariyaraj/ui-architect-ai">UI Architect AI</a></p><h3>1. The Hidden Cost of Searching for Design Resources</h3><p>Frontend development involves more decisions than choosing a framework and writing components.</p><p>Before building an interface, you might need to decide:</p><ul><li>Which component library fits your framework?</li><li>Should you use a prebuilt design system or individual components?</li><li>Which animation library fits the interactions?</li><li>What typography works with your product?</li><li>Which icon library matches the visual language?</li><li>Which color palette provides sufficient contrast?</li><li>What mobile patterns should the interface follow?</li><li>Which existing designs can inspire the layout?</li></ul><p>Each decision can send you to a different website.</p><p>You might discover a beautiful component on one platform, an animation on another and a useful design reference somewhere else.</p><p>But finding these resources doesn’t automatically mean they work together.</p><p>A component library might be technically excellent but visually inconsistent with your product.</p><p>A popular animation library might be unnecessary for a simple interface.</p><p>A beautiful typography combination might not be suitable for your application’s readability requirements.</p><p>The developer still has to connect all these decisions.</p><p>And that’s where time disappears.</p><h3>2. Discovery Is Not the Same as Recommendation</h3><p>Let’s say you’re building a SaaS dashboard using Next.js and Tailwind CSS.</p><p>You search for:</p><p><strong>“Best UI components for a modern SaaS dashboard.”</strong></p><p>You receive a list of popular libraries.</p><p>But popularity doesn’t answer the important questions.</p><p>Does the library fit your framework?</p><p>Does it support your required components?</p><p>Is its visual style appropriate?</p><p>Does it offer accessible interaction patterns?</p><p>Does it introduce unnecessary dependencies?</p><p>Can it work with the rest of your design system?</p><p>A search engine finds matching pages.</p><p>A useful recommendation system should help evaluate relevance.</p><p>That’s an important distinction.</p><p>Imagine two component libraries:</p><p><strong>Library A</strong></p><ul><li>Excellent visual match.</li><li>Supports your framework.</li><li>Has the components you need.</li><li>Provides responsive patterns.</li></ul><p><strong>Library B</strong></p><ul><li>More popular.</li><li>Has a larger collection.</li><li>Doesn’t fit your visual direction as closely.</li></ul><p>Which one should you choose?</p><p>There isn’t always one universally correct answer.</p><p>But the system should be able to explain why one resource is a better match for your particular project.</p><p>That is what I mean by design intelligence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9kuWJhusgGY-3kD88uE2ew.png" /></figure><h3>3. What Is a Design Intelligence System?</h3><p>A design intelligence system helps developers move from an unstructured design requirement to a more organized set of design resources and recommendations.</p><p>It can bring together information about:</p><ul><li>UI components.</li><li>Design systems.</li><li>Animation libraries.</li><li>Typography.</li><li>Color palettes.</li><li>Icons.</li><li>Mobile UI patterns.</li><li>Design inspiration.</li><li>Emerging design trends.</li></ul><p>Instead of searching through every category independently, developers can describe their project and receive recommendations organized around the design problem.</p><p>For example:</p><p><strong>“Create a clean analytics dashboard for a SaaS product. Use Next.js, Tailwind CSS, accessible components and subtle motion.”</strong></p><p>A design intelligence system could break that request into smaller requirements.</p><p><strong>Components:</strong> Find dashboard components and suitable UI libraries.</p><p><strong>Typography:</strong> Recommend fonts appropriate for data-heavy interfaces.</p><p><strong>Colors:</strong> Suggest palettes with readable contrast.</p><p><strong>Animation:</strong> Identify suitable motion libraries and interaction patterns.</p><p><strong>Icons:</strong> Find consistent icon collections.</p><p><strong>Inspiration:</strong> Surface relevant dashboard references.</p><p>The result isn’t a finished interface.</p><p>It’s a more useful starting point for building one.</p><h3>4. Why I Built UI Architect AI</h3><p>I wanted to explore this idea through an actual developer tool.</p><p>That’s how UI Architect AI started.</p><p>Rather than building another chatbot that returns random UI links, I designed an ecosystem around design-resource discovery, specialist agents and structured recommendations.</p><p>The project currently documents:</p><ul><li>Nine specialist agents.</li><li>More than 2,200 curated design resources.</li><li>A shared recommendation engine.</li><li>A web dashboard.</li><li>A command-line interface.</li><li>An MCP server.</li><li>A VS Code extension.</li><li>Design-review functionality.</li><li>Resource discovery and maintenance components.</li></ul><p>The important idea is that these aren’t intended to be completely separate products.</p><p>They are different ways to access the same design intelligence layer.</p><h3>5. Nine Specialist Agents Instead of One Giant Search</h3><p>Design is not one category.</p><p>Typography, animations, components and color systems have different requirements.</p><p>So UI Architect AI organizes its documented capabilities around nine specialist agents:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gw6KkGgThfZkbucWv8e6jw.png" /></figure><p>An orchestrator coordinates the specialists and combines their results.</p><p>Consider a request for a mobile banking dashboard.</p><p>The system can treat the problem as several connected design decisions rather than one broad search.</p><p>The Component Agent looks for suitable interface resources.</p><p>The Typography Agent considers readable type systems.</p><p>The Color Agent considers palette options.</p><p>The Mobile UI Agent focuses on mobile interaction patterns.</p><p>The Animation Agent can identify appropriate motion resources.</p><p>The idea is to make recommendations more relevant to the actual project.</p><p>It’s a structured approach to a problem that developers often solve manually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wXsunMWDYlYUQ2oLW7x-pg.png" /></figure><h3>6. How Does the Recommendation Engine Rank Resources?</h3><p>A recommendation system is only useful when it can distinguish between a relevant resource and a merely popular one.</p><p>UI Architect AI documents a weighted scoring model:</p><pre>totalScore =<br>  0.5 * matchScore +<br>  0.3 * qualityScore +<br>  0.2 * popularityScore;</pre><p>The three inputs represent different signals.</p><p><strong>Match score — 50%</strong></p><p>How closely does the resource match the developer’s requirements?</p><p>This can include framework, category, visual style and use case.</p><p><strong>Quality score — 30%</strong></p><p>What quality-related signals are available?</p><p>These may include accessibility, performance and responsiveness information.</p><p><strong>Popularity score — 20%</strong></p><p>What popularity-related signals are present in the resource data?</p><p>Why give matching more weight than popularity?</p><p>Because the most popular library isn’t necessarily the best library for a particular project.</p><p>A smaller, more focused component collection might be a better choice than a massive library that doesn’t match the requested design.</p><p>This is a deterministic heuristic ranking model.</p><p>It doesn’t prove that a design is beautiful or that a recommendation will always be correct.</p><p>The quality of the result depends on the underlying resource information and scoring rules.</p><p>But it provides a structured foundation for comparing options.</p><h3>7. A Design Intelligence System Needs More Than Search Results</h3><p>One of the most important architectural decisions was to create a centralized resource knowledge base.</p><p>The repository documents more than 2,200 curated resources across different design categories.</p><p>These resources are represented using structured data rather than being treated as identical URLs.</p><p>That matters because different resource types need different metadata.</p><p>For example:</p><p>An animation resource may need information about its animation engine, triggers and supported framework.</p><p>A typography resource may need its font category, designer and licensing information.</p><p>A component library may need framework compatibility, available components and styling details.</p><p>The project uses JSON-based resource data, with an optional PostgreSQL and Prisma database architecture.</p><p>It also separates shared resource types from category-specific information.</p><p>This gives the recommendation engine more useful information to work with.</p><p>A list of 2,200 links is not automatically intelligent.</p><p>The structure, quality and relevance of those resources matter much more.</p><h3>8. Bring Design Intelligence Into the Tools Developers Already Use</h3><p>A design intelligence system shouldn’t require developers to constantly switch between applications.</p><p>That’s why UI Architect AI is organized around multiple developer interfaces.</p><h3>Web Dashboard</h3><p>The dashboard provides a visual way to explore resources and design recommendations.</p><p>It is useful when developers want to browse and inspect options.</p><h3>Command-Line Interface</h3><p>Some developers prefer the terminal.</p><p>UI Architect AI documents a CLI called uia.</p><p>For example:</p><pre>uia recommend &quot;Modern SaaS Dashboard&quot;</pre><p>Or search for a particular resource:</p><pre>uia search &quot;glassmorphism UI kit&quot;</pre><p>The idea is to make design discovery available without requiring a separate browser workflow.</p><h3>VS Code Extension</h3><p>Developers spend a large part of their day inside their editor.</p><p>The VS Code extension brings the project’s design-resource workflow closer to that environment.</p><h3>MCP Integration</h3><p>This is particularly interesting for AI-assisted development.</p><p>The Model Context Protocol allows compatible AI clients to connect to external tools.</p><p>UI Architect AI documents four MCP tools:</p><ul><li>recommend_design</li><li>analyze_design</li><li>find_components</li><li>get_latest_audit</li></ul><p>For example, a compatible AI coding assistant could request design recommendations through the MCP server rather than relying entirely on its own generated suggestions.</p><p>The broader idea is simple:</p><p><strong>The AI coding assistant writes code. The design intelligence system provides structured design context.</strong></p><p>These roles can complement each other.</p><h3>9. What About Design Quality?</h3><p>Finding components is only one part of the problem.</p><p>Developers also need to evaluate the interfaces they create.</p><p>UI Architect AI includes a Design Review AI module designed to inspect a URL or screenshot and return heuristic feedback.</p><p>Its documented analysis includes:</p><ul><li>Design-related scoring.</li><li>Accessibility-related indicators.</li><li>Visual-quality indicators.</li><li>Potential issues.</li><li>Improvement suggestions.</li><li>Component recommendations.</li></ul><p>This is useful as an additional review layer.</p><p>But it is important to understand its limitations.</p><p>A heuristic accessibility score isn’t a formal WCAG certification.</p><p>A visual-quality score doesn’t replace user testing.</p><p>A screenshot cannot reveal every interaction, responsive behavior or accessibility issue.</p><p>Good design requires human judgment and testing with real users.</p><p>I see design review as a way to identify potential problems, not as a final authority.</p><h3>10. Keeping Design Resources Useful Over Time</h3><p>A design-resource knowledge base can become outdated.</p><p>Libraries change.</p><p>Documentation moves.</p><p>Projects become inactive.</p><p>New tools appear.</p><p>A resource that was useful a year ago might no longer be maintained.</p><p>That’s why the project also includes research and maintenance components.</p><p>The documented workflows cover resource deduplication, category coverage, reporting, scheduled scans, link validation and score refreshes.</p><p>The README currently describes the external research functionality as simulated research, so it should not be mistaken for a fully operational autonomous web crawler.</p><p>This distinction matters.</p><p>A design intelligence system is only as useful as the information it can reliably provide.</p><p>Maintaining the resource collection is therefore an important part of the engineering problem.</p><h3>11. The Bigger Idea: From Resource Discovery to Design Context</h3><p>Let’s return to the original problem.</p><p>A developer wants to build an application.</p><p>They search for components.</p><p>Then they search for fonts.</p><p>Then animations.</p><p>Then icons.</p><p>Then inspiration.</p><p>They manually combine everything.</p><p>But what if those decisions could be organized into one coherent workflow?</p><p>A design intelligence system could help answer:</p><ul><li>What resources fit this project?</li><li>Why are they relevant?</li><li>Which options work well together?</li><li>What should be considered before implementation?</li><li>What potential design issues should be reviewed?</li></ul><p>That’s the direction I wanted to explore with UI Architect AI.</p><p>It doesn’t replace the developer.</p><p>It doesn’t replace a professional designer.</p><p>It doesn’t automatically guarantee a beautiful interface.</p><p>It aims to reduce fragmented discovery and make design decisions more structured.</p><h3>12. Explore UI Architect AI</h3><p>UI Architect AI is an open-source project built around this idea.</p><p>The repository includes its documented architecture, shared packages, applications, recommendation engine and developer integrations.</p><p>You can explore it here:</p><p><strong>GitHub Repository:</strong></p><p><a href="https://github.com/kanjariyaraj/ui-architect-ai"><strong>https://github.com/kanjariyaraj/ui-architect-ai</strong></a></p><p>Start with the README to understand the architecture and setup instructions.</p><p>If you’re interested in frontend development, AI agents, MCP, design systems or open-source developer tooling, I’d love to hear your feedback.</p><p>You can inspect the implementation, report issues, suggest new resource categories or contribute improvements.</p><p>And I have one question for developers:</p><p>What if your next AI coding assistant didn’t just ask what code to write, but also understood which design resources and decisions should guide that code?</p><p>That’s the problem I want UI Architect AI to keep exploring.</p><h3>Stop Searching. Start Making Better Design Decisions.</h3><p>The internet already has thousands of UI components.</p><p>We don’t necessarily need another directory containing thousands more links.</p><p>We need better ways to discover, compare, understand and use the resources that already exist.</p><p>That’s the difference between collecting resources and building design intelligence.</p><p><strong>The next improvement in frontend development might not come from generating code faster. It might come from making better decisions before writing it.</strong></p><h3>Connect With Me</h3><p>Thanks for reading! 🙏</p><p>I write about AI, security, privacy and developer tools.</p><p>Portfolio: <a href="https://rajkanjariya.dev/">rajkanjariya.dev</a><br>LinkedIn: <a href="https://linkedin.com/in/raj-kanjariya-webdeveloper">linkedin.com/in/raj-kanjariya-webdeveloper</a><br>Medium: <a href="https://medium.com/@rajkanjariya2020">medium.com/@rajkanjariya2020</a></p><p><em>Building, researching, and exploring the engineering behind AI and modern software.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77d19c2be4fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Didn’t Build Another AI Code Generator. I Built Something Developers Use Before Writing Code.]]></title>
            <link>https://uxplanet.org/i-didnt-build-another-ai-code-generator-i-built-something-developers-use-before-writing-code-13361fd72e52?source=rss-82545eb3171f------2</link>
            <guid isPermaLink="false">https://medium.com/p/13361fd72e52</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ui-ux-design]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Raj Kanjariya]]></dc:creator>
            <pubDate>Mon, 09 Nov 2026 02:36:01 GMT</pubDate>
            <atom:updated>2026-11-09T02:36:01.784Z</atom:updated>
            <content:encoded><![CDATA[<h4>CODE IS EASY. DESIGN DECISIONS AREN’T.</h4><h4>AI can generate your React components. But choosing the right design system, components, animations and visual direction is a different challenge. Here’s how I built UI Architect AI to bring design intelligence into the developer workflow.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rq_W1XsLOpFL_Q3yoYJnEA.png" /><figcaption>Good interfaces begin with decisions, not just code.</figcaption></figure><p>Imagine asking an AI coding assistant to build a modern SaaS dashboard.</p><p>It generates the React components.</p><p>It writes the Tailwind classes.</p><p>It creates a sidebar, cards, buttons and a navigation bar.</p><p>The code runs. The page loads. Technically, you have an interface.</p><p>But something feels wrong.</p><p>The typography doesn’t quite fit. The components look generic. The spacing feels inconsistent. The animations don’t match the product. The color palette looks like something you’ve seen in a hundred other dashboards.</p><p>So you start searching.</p><p>You open component libraries. Then animation libraries. Then design inspiration websites. Then typography resources. Then color tools.</p><p>Twenty browser tabs later, you’re still deciding which direction to take.</p><p>And that’s when I started thinking about a different problem.</p><p><strong>What if developers had an AI system that helped them make design decisions before they started generating code?</strong></p><p>Not another tool that writes JSX.</p><p>Something that understands the design problem, discovers relevant resources, recommends a coherent UI direction and connects that intelligence to the tools developers already use.</p><p>That’s the idea behind <strong>UI Architect AI</strong>.</p><p>GitHub: <a href="https://github.com/kanjariyaraj/ui-architect-ai">ui-architect-ai</a></p><h3>1. The Problem Wasn’t Writing More Code</h3><p>AI has made generating frontend code much easier.</p><p>But generating a component and designing a good interface are not the same thing.</p><p>Consider what happens when you start a new project.</p><p>You need to decide:</p><ul><li>Which component library fits your framework?</li><li>Should the interface use a minimal, editorial, glassmorphism or dashboard-inspired visual style?</li><li>Which typography works with that direction?</li><li>What color system provides sufficient contrast?</li><li>Which animation library fits the interaction?</li><li>Are the components responsive and accessible?</li><li>Does the design feel consistent across the entire application?</li></ul><p>These decisions influence the final product.</p><p>Yet developers often make them through scattered searches, bookmarks, documentation and trial and error.</p><p>One website for components. Another for animations. Another for icons. Another for fonts. A separate collection of inspiration websites.</p><p>The problem isn’t that these resources don’t exist.</p><p><strong>The problem is that discovering the right combination takes time.</strong></p><p>And even after finding the resources, developers still have to decide how they fit together.</p><p>I wanted to explore whether an intelligent system could make that process more organized.</p><h3>2. The Idea: A Design Intelligence Layer</h3><p>I didn’t want to build another AI chatbot that responds with a list of UI libraries.</p><p>I wanted something more structured.</p><p>Imagine giving a system this prompt:</p><p>“Build a modern SaaS analytics dashboard using Next.js, Tailwind CSS, a clean visual hierarchy and subtle animations.”</p><p>Instead of returning one generic answer, the system should be able to identify different parts of the design problem.</p><p>It should consider:</p><ul><li>Components and UI libraries.</li><li>Animation and motion systems.</li><li>Typography.</li><li>Color palettes.</li><li>Icons.</li><li>Mobile UI patterns.</li><li>Design inspiration.</li><li>Current design trends.</li></ul><p>Then it should bring the recommendations together into a useful design stack.</p><p>That became the central idea of UI Architect AI:</p><p><strong>Move from a vague design idea to a structured collection of relevant design resources and recommendations.</strong></p><p>The goal isn’t to make every interface look the same.</p><p>It’s to help developers discover a better starting point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ak0smzIiukqEPgkHC1k2VQ.png" /><figcaption>Different design decisions need different kinds of intelligence.</figcaption></figure><h3>3. Why I Chose a Multi-Agent Architecture</h3><p>A design recommendation isn’t one simple decision.</p><p>Finding a suitable component library requires different considerations from choosing typography or evaluating an animation library.</p><p>So I structured the recommendation system around specialist agents.</p><p>UI Architect AI currently documents nine specialist agents:</p><ol><li><strong>Component Agent</strong> — UI components, libraries and interface kits.</li><li><strong>Animation Agent</strong> — Motion libraries and animation resources.</li><li><strong>Typography Agent</strong> — Fonts and typography systems.</li><li><strong>Color Agent</strong> — Color palettes and visual combinations.</li><li><strong>Icon Agent</strong> — Icon libraries and formats.</li><li><strong>Mobile UI Agent</strong> — iOS, Android and cross-platform patterns.</li><li><strong>Inspiration Agent</strong> — Design galleries and visual references.</li><li><strong>Trend Agent</strong> — Trend-related resource signals.</li><li><strong>Resource Research Agent</strong> — Broader resource discovery and matching.</li></ol><p>An orchestrator coordinates these specialists and combines their recommendations.</p><p>Instead of treating design as one giant search query, the system separates the problem into smaller domains.</p><p>That makes the architecture easier to extend.</p><p>For example, a developer building a mobile application should receive relevant mobile UI resources rather than a collection dominated by desktop dashboard components.</p><p>The same idea applies to typography, animation and other design categories.</p><p>The interesting part isn’t simply having nine agents.</p><p>It’s giving each agent a clear responsibility and combining their results into one useful recommendation.</p><h3>4. How the Recommendation Engine Decides What Matters</h3><p>This is one of the most important parts of the project.</p><p>A recommendation system shouldn’t return resources just because they contain similar keywords.</p><p>A component might match the prompt but be unsuitable for the developer’s framework.</p><p>Another resource might be popular but have poor accessibility characteristics.</p><p>UI Architect AI uses a weighted scoring model:</p><p><strong>Total Score = 50% Match + 30% Quality + 20% Popularity</strong></p><p>The documented scoring formula is:</p><pre>totalScore =<br>  0.5 * matchScore +<br>  0.3 * qualityScore +<br>  0.2 * popularityScore;</pre><p>Each score represents a different consideration.</p><p><strong>Match score</strong></p><p>Does the resource fit the requested framework, visual style and use case?</p><p><strong>Quality score</strong></p><p>Does it have useful quality signals such as accessibility, performance and responsive support?</p><p><strong>Popularity score</strong></p><p>Does the resource have popularity-related signals in the knowledge base?</p><p>For example, imagine two component libraries.</p><p>Library A matches the requested framework and visual style very closely.</p><p>Library B is more popular but has a weaker match.</p><p>The scoring system gives match quality more weight than popularity.</p><p>This is intentional.</p><p>The most popular component isn’t necessarily the right component for your project.</p><p>The recommendation engine also supports developer-level personalization, allowing recommendations to account for beginner, intermediate and advanced requirements.</p><p>The important distinction: this is a deterministic heuristic ranking system, not an AI model that magically understands visual quality. Its recommendations depend on the resource data and scoring rules.</p><h3>5. The Knowledge Base: The Foundation Behind the Intelligence</h3><p>An intelligent recommendation engine needs something meaningful to recommend.</p><p>That’s why I built a centralized design-resource knowledge base.</p><p>The repository currently documents more than 2,200 curated resources.</p><p>These cover categories such as:</p><ul><li>UI components and libraries.</li><li>Animations.</li><li>Typography.</li><li>Colors.</li><li>Icons.</li><li>Mobile UI.</li><li>Design inspiration.</li></ul><p>The knowledge base is stored in JSON, with an optional PostgreSQL and Prisma database architecture.</p><p>I also wanted the data model to be structured instead of treating every resource as an identical record.</p><p>For example, an animation resource needs different information from a typography resource.</p><p>An animation might have an engine, duration and trigger type.</p><p>A font resource might have a font type, designer, licensing information and variable-font support.</p><p>The database architecture uses a core resource model with category-specific extension tables.</p><p>This gives the system a more organized way to represent different kinds of design resources.</p><p>And it creates room to expand the knowledge base without turning it into one enormous collection of unrelated fields.</p><h3>6. I Didn’t Want the Intelligence Trapped Inside a Dashboard</h3><p>A web dashboard is useful.</p><p>But developers don’t always want to leave their editor just to search for a component or design recommendation.</p><p>I wanted UI Architect AI to be accessible through different developer workflows.</p><p>That’s why the repository is organized as a multi-application ecosystem.</p><p><strong>The Web Dashboard</strong></p><p>A Next.js interface for exploring design recommendations and resources visually.</p><p><strong>The CLI</strong></p><p>A terminal interface called uia for developers who prefer working from the command line.</p><p>Example:</p><pre>uia recommend &quot;Modern SaaS Dashboard&quot;</pre><p>You can also search for resources:</p><pre>uia search &quot;glassmorphism UI kit&quot;</pre><p><strong>The VS Code Extension</strong></p><p>A way to access UI Architect recommendations from inside the editor through its sidebar and command palette.</p><p><strong>The MCP Server</strong></p><p>This is the integration I find particularly interesting.</p><p>The Model Context Protocol allows compatible AI clients to connect to external tools and context providers.</p><p>UI Architect AI exposes four documented MCP tools:</p><ul><li>recommend_design</li><li>analyze_design</li><li>find_components</li><li>get_latest_audit</li></ul><p>The idea is straightforward.</p><p>Instead of copying design recommendations manually into an AI coding assistant, the assistant can query the design intelligence system through its MCP connection.</p><p>For example, a developer using a compatible AI client could request a design recommendation for a project and receive a structured response containing relevant components, animations, icons, typography, colors, mobile UI patterns and inspiration.</p><p>This is the direction I wanted to explore:</p><p><strong>Design intelligence should be available wherever developers work, not locked inside another dashboard.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5NHU1RbaSTj78-K8vU0ppw.png" /><figcaption>One design intelligence system, accessible across different developer workflows.</figcaption></figure><h3>7. Design Review: Generating an Interface Is Only Half the Problem</h3><p>There’s another question worth asking.</p><p>What happens after an interface has been created?</p><p>Can we inspect it for potential design problems?</p><p>UI Architect AI includes a Design Review AI module designed to analyze a URL or screenshot using heuristic checks.</p><p>It can provide:</p><ul><li>Overall design assessment.</li><li>Accessibility-related scoring.</li><li>Visual-quality scoring.</li><li>Issues and improvement suggestions.</li><li>Component recommendations.</li></ul><p>I think this is an important part of the idea.</p><p>A system that only recommends components helps developers get started.</p><p>A system that also helps review an interface can support a broader workflow.</p><p>However, these scores are heuristic indicators. They are not a formal WCAG certification, a complete usability study or a replacement for testing with real users.</p><p>Good design requires more than a numerical score.</p><h3>8. Keeping the System Maintainable</h3><p>Design resources change.</p><p>Libraries release updates. Websites disappear. New tools become popular. Old resources become outdated.</p><p>A static collection can gradually lose its usefulness.</p><p>That’s why the project also includes research and maintenance components.</p><p>The documented research workflow handles resource deduplication, category coverage and report generation.</p><p>The auto-discovery scheduler is designed for periodic research scans, link validation and score refreshes.</p><p>One important implementation detail: the current README describes the research agent’s external discovery as simulated research. It should not be confused with a fully operational live web-crawling or autonomous verification service.</p><p>I prefer making that distinction clear.</p><p>A useful engineering project should communicate what works, what is heuristic, and what still needs improvement.</p><h3>9. The Technology Behind UI Architect AI</h3><p>The repository is organized as a TypeScript monorepo using npm workspaces.</p><p>The main technologies include:</p><ul><li>TypeScript and Node.js.</li><li>Next.js and React.</li><li>Tailwind CSS.</li><li>PostgreSQL and Prisma.</li><li>Model Context Protocol SDK.</li><li>VS Code Extension API.</li><li>Node-based scheduling and tooling.</li></ul><p>The repository separates applications from shared packages.</p><p>The applications include the dashboard, CLI, MCP server, VS Code extension, research agent, auto-discovery scheduler and design-review module.</p><p>Shared packages provide core types, database functionality and the recommendation engine.</p><p>This architecture makes it easier to share the same underlying intelligence across different interfaces.</p><p>The dashboard, terminal and MCP server don’t need separate recommendation logic.</p><p>They can use the same underlying system.</p><p>That is one of the architectural decisions I wanted to get right.</p><h3>10. What I Actually Wanted to Solve</h3><p>Looking back, UI Architect AI started with a simple observation:</p><p>Developers have many tools for writing code.</p><p>But the decisions that shape a good interface often happen before the first component is written.</p><p>Finding the right visual direction, selecting components, choosing typography, evaluating animations and maintaining consistency are all part of frontend engineering.</p><p>I wanted to bring those decisions into one structured workflow.</p><p>Not to replace designers.</p><p>Not to claim that an algorithm can understand every aspect of visual communication.</p><p>And definitely not to create another generic AI wrapper.</p><p>I wanted to build a developer tool that makes design-resource discovery more organized, accessible and connected to the tools developers already use.</p><p>There is still plenty of room to improve it.</p><p>Resource quality needs continuous attention. Recommendations need real-world evaluation. Design analysis needs stronger validation. Integrations need to be tested across different workflows.</p><p>Those are engineering challenges, not reasons to pretend the project is finished forever.</p><h3>11. Try It, Explore It, Build With It</h3><p>UI Architect AI is open source under the MIT license.</p><p>You can explore the repository, inspect the architecture, run the applications and experiment with the recommendation system.</p><p><strong>GitHub Repository:</strong></p><p><a href="https://github.com/kanjariyaraj/ui-architect-ai"><strong>https://github.com/kanjariyaraj/ui-architect-ai</strong></a></p><p>Start with the README for architecture, setup instructions, CLI examples, MCP configuration and development commands.</p><p>If you’re interested in AI agents, frontend engineering, design systems, MCP or developer tooling, I’d genuinely like to hear what you think.</p><p>You can explore the code, open an issue, suggest improvements or contribute to the project.</p><p>I’m particularly interested in feedback on three questions:</p><ul><li>How should an AI system evaluate whether a design recommendation is actually useful?</li><li>What design context should coding agents receive before generating an interface?</li><li>What would make this kind of tool genuinely useful in your everyday development workflow?</li></ul><h3>The Future of AI Development Isn’t Only About Writing Code</h3><p>We spend a lot of time discussing how AI can generate more code, faster.</p><p>But software development involves more than generating code.</p><p>It involves deciding what to build, choosing the right tools, understanding users, making design decisions and evaluating the result.</p><p>Code generation is one part of that process.</p><p>Design intelligence is another.</p><p>That’s what I wanted to explore with UI Architect AI.</p><p>I didn’t set out to build another AI code generator.</p><p><strong>I wanted to build something that helps developers think about the interface before they start writing it.</strong></p><p>And this is only the beginning.</p><h3>Connect With Me</h3><p>Thanks for reading! 🙏</p><p>I write about AI, security, privacy and developer tools.</p><p>Portfolio: <a href="https://rajkanjariya.dev/">rajkanjariya.dev</a><br>LinkedIn: <a href="https://linkedin.com/in/raj-kanjariya-webdeveloper">linkedin.com/in/raj-kanjariya-webdeveloper</a><br>Medium: <a href="https://medium.com/@rajkanjariya2020">medium.com/@rajkanjariya2020</a></p><p><em>Building, researching, and exploring the engineering behind AI and modern software.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13361fd72e52" width="1" height="1" alt=""><hr><p><a href="https://uxplanet.org/i-didnt-build-another-ai-code-generator-i-built-something-developers-use-before-writing-code-13361fd72e52">I Didn’t Build Another AI Code Generator. I Built Something Developers Use Before Writing Code.</a> was originally published in <a href="https://uxplanet.org/">UX Planet</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Platform Exposed 3.2M Env Vars. Its Own Admin Keys Sat in Plaintext.]]></title>
            <link>https://medium.com/@rajkanjariya2020/a-platform-exposed-3-2m-env-vars-its-own-admin-keys-sat-in-plaintext-0fedc3a3400c?source=rss-82545eb3171f------2</link>
            <guid isPermaLink="false">https://medium.com/p/0fedc3a3400c</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Raj Kanjariya]]></dc:creator>
            <pubDate>Sun, 08 Nov 2026 05:24:25 GMT</pubDate>
            <atom:updated>2026-11-08T05:24:25.920Z</atom:updated>
            <content:encoded><![CDATA[<h4>THE KEY IN THE DRAWER</h4><h4>Zeabur’s second breach read 3,218,965 environment-variable records after plaintext admin credentials survived the first incident. Here’s what failed, what to rotate today, and a 10-minute audit.</h4><p><strong>3,218,965.</strong> That is how many environment-variable records an attacker read from Zeabur on October 14–15, 2026, names and values. The attacker used leaked internal credentials that were stored in plaintext.</p><p>It wasn’t a zero-day. The plaintext credentials were not rotated even after an earlier breach in August.</p><p>By the end you’ll know what failed, what to rotate today, and a 10-minute audit that would have shrunk the damage.</p><blockquote><strong><em>The 30-second version</em></strong></blockquote><ul><li><strong>The answer:</strong> if you stored secrets on any hosting platform, assume that platform’s database could leak them. Rotate, scope and separate them.</li><li><strong>The proof:</strong> the October breach affected 321,810 accounts and more than 3.2 million environment-variable records. Services start shutting down on December 1, 2026, and all end by December 31.</li><li><strong>Do now:</strong> rotate every credential you ever stored there, and run the audit below.</li><li><strong>Below:</strong> how a first breach became a second one, and why the “lock” and the “key” sat in the same place.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vYwJCD1wpW5fmGFeOthFPA.png" /></figure><h3>The attacker didn’t need an exploit. The keys were lying around.</h3><p>In the October attack, the attacker used stolen administrator credentials and cloud access keys to reach Zeabur’s shared hosting infrastructure and dedicated servers, and eventually read the production database.</p><p>Zeabur confirmed root sign-ins on 101 GCP servers by 92 users, SSH keys added to 50 servers, and 16 customer disk copies attached to the attacker’s own virtual machines. The data included 3,218,965 environment-variable records with both names and values, plus 566 plaintext zSend API keys that Zeabur revoked.</p><p>Zeabur’s own account is preliminary. The October report was written by Zeabur itself.</p><p><strong>The most expensive part of this attack was credentials nobody had rotated.</strong></p><h3>The first breach should have ended this. It didn’t.</h3><p>In late August 2026, hackers exploited a flaw in a customer’s NextChat application and moved through poorly isolated internal systems. Zeabur says the credentials used in October likely came from that August breach. It hasn’t confirmed this.</p><p>One security expert said certain administrator credentials remained active after the company’s initial incident response in August. A secondary write-up adds that plaintext credentials had been in the configuration repository since January 20, 2026, and only the GitHub App private key was replaced on August 31.</p><p>That’s the pattern in a lot of repeat breaches: the first response closes the door that was used, while the other keys keep working.</p><p><strong>A breach response is only complete when every key the attacker could have seen is dead.</strong></p><h3>Environment variables aren’t a vault, even when a platform manages them</h3><p>Developers put secrets in environment variables because it’s the standard advice. The flaw is that a platform that stores them can lose them. One secondary write-up reports that of 607 instances checked, 602 kept the encryption key in an environment variable, which means the lock and the key sat in the same drawer. Treat that as a lead, not a verified number.</p><p>There was a bright spot. Variables that had been migrated exclusively to customers’ own servers as part of the August response escaped this database exposure, although compromised hosts could still reveal them.</p><p>My connection to my own earlier article: a .env file leaks through git, Docker and logs, and now through the platform that hosts it. <em>(Related: </em><strong><em>“Your .env File Is Not a Secret…”</em></strong><em> [</em><a href="https://medium.com/@rajkanjariya2020/your-env-file-is-not-a-secret-youve-been-leaking-it-for-years-d6b7222ff979?sharedUserId=rajkanjariya2020">https://medium.com/@rajkanjariya2020/your-env-file-is-not-a-secret-youve-been-leaking-it-for-years-d6b7222ff979?sharedUserId=rajkanjariya2020</a><em>])</em></p><p><strong>The question isn’t where you keep the secret. It’s who else can read it there.</strong></p><h3>It may not be one company</h3><p>Single secondary source, verify before publishing: one guide says Railway reported its own breach of customer environment variables on October 21, the day after the Zeabur exit guide went up. If that holds up, the lesson shifts from “avoid one provider” to “any provider that stores your secrets is a target.”</p><p><strong>Platforms that hold many customers’ secrets are the prize.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gaBSxlWY3QTX01CG9xpljQ.png" /></figure><p>The fix isn’t a better platform. It’s a smaller blast radius.</p><p>My recommendations, built on the incident guidance in the sources:</p><ol><li><strong>Rotate everything,</strong> even keys not listed in notifications. The advice reported is to rotate every credential in your environment variables: API keys, cloud keys, database passwords, signing and encryption keys.</li><li><strong>Give each key the least access it needs,</strong> so one leaked key can’t open everything.</li><li><strong>Prefer short-lived credentials</strong> over keys that live for years.</li><li><strong>Keep your most sensitive secrets out of the platform’s dashboard,</strong> in a secrets manager you control.</li><li><strong>Watch your cloud afterwards.</strong> A security brief suggests checking for sign-ins from unexpected IPs, regions or odd hours, new IAM users, roles, SSH keys or access keys created after October 14, SSH authorized_keys files, and keeping heightened monitoring of billing, egress and IAM activity for at least 30 days after rotating.</li><li><strong>Scan CI/CD for plaintext credentials</strong> before they reach deployment.</li></ol><p><strong>Make each secret worth less to steal.</strong></p><h3>Try this in 2 minutes</h3><p>bash</p><pre># 1. Which variables in this shell look like secrets? (names only, values are never printed)<br>printenv | cut -d= -f1 | grep -iE &#39;key|secret|token|password|credential&#39; | sort</pre><pre># 2. Any secrets in this repo&#39;s history? (needs gitleaks installed)<br>gitleaks detect --source . --no-banner</pre><p>Then open your cloud console (IAM) and delete any long-lived access key you don’t use.</p><p>For each name from step 1, write down: where was it created, what can it access, and when did you last rotate it? If you can’t answer in 30 seconds, rotate it.</p><p><em>Editor’s note (delete after testing): I haven’t run these. Test on a throwaway shell and confirm gitleaks reports as expected.</em></p><p><em>Verified in early November 2026. Facts are as reported by the linked sources.</em></p><h3>The one-sentence insight</h3><p><em>If your platform can show you your secret, a breach of that platform can show it to an attacker.</em></p><h3>Back to 3,218,965</h3><p>The number is large, but the story is small: a key in the wrong place, and a first incident that didn’t kill every key.</p><p>Zeabur is closing. Your secrets don’t have to close with it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0fedc3a3400c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Compiler Is Smarter Than You Think. It May Be Removing Your Code.]]></title>
            <link>https://medium.com/@rajkanjariya2020/your-compiler-is-smarter-than-you-think-it-may-be-removing-your-code-12eb5a50e218?source=rss-82545eb3171f------2</link>
            <guid isPermaLink="false">https://medium.com/p/12eb5a50e218</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[compilers]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Raj Kanjariya]]></dc:creator>
            <pubDate>Sat, 07 Nov 2026 04:09:03 GMT</pubDate>
            <atom:updated>2026-11-07T04:09:03.208Z</atom:updated>
            <content:encoded><![CDATA[<h4>You wrote the code. You compiled it. But when you inspect what actually runs, some of your instructions have disappeared. Your compiler isn’t broken. It’s doing something much smarter — and understanding it can change the way you write and benchmark software.</h4><h4><em>You wrote the instructions. Your compiler decided some of them weren’t necessary. Here’s how dead-code elimination, constant folding and compiler optimization change what actually runs.</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c6gzlWvNlUZmyL7-KySSdg.png" /><figcaption>The program you write isn’t always the program your processor executes.</figcaption></figure><p>Imagine writing a program with 100 lines of code.</p><p>You compile it.</p><p>Then you inspect the generated machine code.</p><p>Something strange happens.</p><p>Some of the instructions you wrote are nowhere to be found.</p><p>Not renamed.</p><p>Not moved somewhere obvious.</p><p>Gone.</p><p>Your compiler removed them.</p><p>And the most interesting part?</p><p>Your program still works exactly as expected.</p><p>This isn’t a bug. It isn’t your compiler being careless. It’s one of the reasons modern programming languages can produce surprisingly efficient executables.</p><p><strong>Your compiler isn’t simply translating your code. It’s analyzing what your code actually needs to do.</strong></p><p>And sometimes, the best instruction is the one that never gets executed.</p><h3>Your Source Code Is Not Your Executable</h3><p>Most developers write code, run a compiler and expect the compiler to translate their instructions into something a processor understands.</p><p>That’s a reasonable mental model.</p><p>But it’s incomplete.</p><p>A modern optimizing compiler usually performs several stages of analysis and transformation before producing machine code.</p><p>Depending on the language and compiler, these can include:</p><ul><li>Parsing and semantic analysis.</li><li>Intermediate representation generation.</li><li>Constant propagation.</li><li>Dead-code elimination.</li><li>Common subexpression elimination.</li><li>Loop optimizations.</li><li>Register allocation.</li><li>Instruction selection.</li></ul><p>The compiler isn’t necessarily preserving the structure of your original program.</p><p>It’s trying to preserve the program’s required behavior while potentially changing how that behavior is implemented.</p><p>That’s a much more interesting job than translation.</p><h3>1. Dead-Code Elimination: Removing Work That Doesn’t Matter</h3><p>Let’s start with something simple.</p><p>Consider this C program:</p><pre>#include &lt;stdio.h&gt;<br>int main(void)<br> {<br>    int a = 10;<br>    int b = 20;<br>    int result = a + b;<br>    printf(&quot;Hello, world!\n&quot;);<br>    return 0;<br>}</pre><p>Look carefully.</p><p>We calculate result, but never use it.</p><p>The calculation doesn’t affect the program’s observable behavior.</p><p>An optimizing compiler can therefore remove the unused calculation.</p><p>It doesn’t need to calculate 10 + 20 just to throw the result away.</p><p>The compiler can produce machine code that simply prints the message and exits.</p><p>This is called <strong>dead-code elimination</strong>.</p><p>The important distinction is that a compiler doesn’t remove code merely because a human thinks it looks unnecessary.</p><p>It must establish that removing the code preserves the behavior required by the language.</p><p>That distinction matters.</p><p>For example, consider:</p><pre>int value = calculate_something();</pre><p>If calculate_something() performs an observable operation, such as writing to a file or printing output, removing the call could change the program&#39;s behavior.</p><p>Even if you never use the returned value, the function call itself may still matter.</p><p>A compiler must account for those effects.</p><h3>2. Constant Folding: Your Compiler Can Do the Mathematics First</h3><p>Now consider this:</p><pre>int main(void) {<br>    int result = 100 * 20 + 50;<br>return result;<br>}</pre><p>The result is always 2050.</p><p>There is no reason to perform multiplication and addition every time this program runs.</p><p>The compiler can calculate the expression during compilation.</p><p>Instead of generating instructions that multiply 100 by 20 and add 50, it can use the already calculated value.</p><p>This technique is called <strong>constant folding</strong>.</p><p>It becomes particularly useful when expressions contain values that the compiler can determine before execution.</p><p>For example:</p><pre>int width = 100;<br>int height = 50;</pre><pre>int area = width * height;</pre><p>Depending on the optimization level and surrounding program, the compiler may determine that the result is constant.</p><p>It can then replace the calculation with the resulting value.</p><p>The CPU doesn’t need to repeat work that could already be completed during compilation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4VVpxxaIrlc-Cv-mVtkrsQ.png" /><figcaption>Constant propagation can turn multiple calculations into a known value.</figcaption></figure><h3>3. The Compiler Can Calculate Something Before You Even Run It</h3><p>There’s another interesting optimization called constant propagation.</p><p>Look at this:</p><pre>int main(void) {<br>    int x = 10;<br>    int y = x + 5;<br>    int z = y * 2;</pre><pre>    return z;<br>}</pre><p>A compiler can track the values:</p><ul><li>x is 10.</li><li>y is 15.</li><li>z is 30.</li></ul><p>If the compiler can prove those values remain constant, it can simplify the entire calculation.</p><p>The final program might not need to perform any of those arithmetic operations at runtime.</p><p>This is a simple example of how a compiler reasons about values across multiple instructions.</p><p>And it leads to a surprising possibility:</p><p>A program containing several lines of source code can become a much smaller sequence of machine instructions.</p><h3>4. Let’s Actually Watch the Compiler Do It</h3><p>Theory is interesting.</p><p>But let’s inspect what happens in a real compiler.</p><p>We’ll use GCC and a simple C program.</p><p>Create a file:</p><pre>#include &lt;stdio.h&gt;</pre><pre>int main(void) {<br>    int unused = 100 * 200;</pre><pre>    int result = 10 * 20 + 30;</pre><pre>    printf(&quot;%d\n&quot;, result);</pre><pre>    return 0;<br>}</pre><p>First, compile without optimization:</p><pre>gcc -O0 example.c -o example_O0</pre><p>Then compile with optimization:</p><pre>gcc -O2 example.c -o example_O2</pre><p>Now inspect the generated assembly:</p><pre>gcc -O0 -S example.c -o example_O0.s</pre><pre>gcc -O2 -S example.c -o example_O2.s</pre><p>Open both assembly files.</p><p>You may notice that the optimized version contains fewer instructions and may not contain the unused calculation at all.</p><p>The compiler may also replace the expression 10 * 20 + 30 with the constant 230.</p><p>The exact assembly depends on the compiler version, target architecture, optimization settings and surrounding code.</p><p>You can inspect executable symbols and disassembly with:</p><pre>objdump -d example_O2</pre><p>Or compare executable sizes:</p><pre>ls -lh example_O0 example_O2</pre><p>One warning: executable size is not a reliable measurement of optimization quality by itself. Debug information, linking, startup code and other factors can affect it.</p><p>But the assembly comparison gives you a much better understanding of what the compiler actually generated.</p><p><strong>Try this experiment yourself. The difference is easier to understand when you see the instructions disappear.</strong></p><h3>5. Why Your Compiler Sometimes Refuses to Optimize</h3><p>Here’s where things get more interesting.</p><p>You might assume that the compiler should always remove anything that doesn’t contribute to the final result.</p><p>But programming languages have rules about observable behavior.</p><p>Consider:</p><pre>#include &lt;stdio.h&gt;</pre><pre>int main(void) {<br>    printf(&quot;First message\n&quot;);</pre><pre>    printf(&quot;Second message\n&quot;);</pre><pre>    return 0;<br>}</pre><p>Both print operations are observable.</p><p>Removing either one would change the program’s output.</p><p>Therefore, an optimizer generally cannot simply delete them.</p><p>The same principle applies to many other operations:</p><ul><li>File writes.</li><li>Network communication.</li><li>Volatile memory accesses.</li><li>Certain synchronization operations.</li><li>Operations with observable side effects.</li></ul><p>The compiler must preserve the behavior required by the language and its execution model.</p><p>This is closely related to the <strong>as-if rule</strong> in C and C++.</p><p>In simple terms, the implementation may transform the program however it wants, provided the observable behavior remains consistent with the language’s requirements.</p><p>That’s an incredibly powerful idea.</p><p>The compiler doesn’t have to preserve your original instructions.</p><p>It has to preserve the required behavior.</p><h3>6. The Most Interesting Part: Sometimes the Compiler Knows More Than You Do</h3><p>Let’s take this one step further.</p><p>Modern compilers don’t just look at individual lines.</p><p>They analyze relationships between instructions.</p><p>For example, common subexpression elimination can avoid repeating a calculation when the compiler can establish that the expression’s inputs haven’t changed.</p><p>Consider:</p><pre>int calculate(int a, int b) {<br>    int first = a * b;<br>    int second = a * b;</pre><pre>    return first + second;<br>}</pre><p>The expression a * b appears twice.</p><p>A compiler may calculate it once and reuse the result.</p><p>But this depends on the surrounding code and whether the compiler can prove that doing so preserves behavior.</p><p>Compilers also perform loop transformations, register allocation and other optimizations that can make generated machine code look very different from the original source.</p><p>This is why reading source code alone doesn’t always tell you how efficiently a program will execute.</p><p>And it explains why two pieces of code that look different can sometimes produce almost identical machine code.</p><h3>7. This Is Why Microbenchmarks Can Lie to You</h3><p>Now we reach something every performance-focused developer should understand.</p><p>Imagine benchmarking this:</p><pre>int main(void) {<br>    int result = 100 * 200;</pre><pre>    return 0;<br>}</pre><p>You might try to measure how long the multiplication takes.</p><p>But the compiler can determine the result during compilation.</p><p>There may be no multiplication instruction left to measure.</p><p>You think you’re benchmarking arithmetic.</p><p>In reality, you’re benchmarking a program that might not perform the arithmetic at all.</p><p>This is one reason badly designed microbenchmarks produce misleading results.</p><p>When measuring performance, you need to make sure the work you’re trying to measure actually happens.</p><p>Depending on the experiment, you might use:</p><ul><li>Runtime-generated inputs.</li><li>Properly consumed results.</li><li>Carefully designed benchmark frameworks.</li><li>Compiler barriers where appropriate.</li><li>Assembly inspection.</li><li>Repeated measurements.</li></ul><p>C and C++ also provide volatile, but it is not a universal solution for benchmarking. It changes optimization behavior and has specific language semantics. It does not automatically make a benchmark correct.</p><p>The goal is not to disable every optimization.</p><p>The goal is to measure the operation you actually intended to measure.</p><h3>8. What Developers Should Take Away</h3><p>Understanding compiler optimization changes how you think about performance.</p><p>Here are five practical lessons.</p><p><strong>1. Source-code length doesn’t determine execution speed.</strong></p><p>A short expression can produce expensive machine instructions, while a longer expression may be simplified completely.</p><p><strong>2. Never assume a calculation survives compilation.</strong></p><p>Inspect the generated assembly when the exact instructions matter.</p><p><strong>3. Benchmark real work.</strong></p><p>Make sure the compiler cannot eliminate the operation you’re trying to measure.</p><p><strong>4. Understand observable behavior.</strong></p><p>Side effects, memory access and synchronization can limit which transformations are legal.</p><p><strong>5. Learn your compiler’s optimization tools.</strong></p><p>For C and C++, start with GCC or Clang optimization flags and assembly output. For Rust, explore optimized builds and LLVM-generated assembly.</p><p>You don’t need to become a compiler engineer to benefit from understanding these concepts.</p><p>But knowing what happens between source code and machine instructions can make you a much better performance engineer.</p><h3>Your Compiler Isn’t Deleting Your Intent. It’s Removing Unnecessary Work.</h3><p>Think about what happened.</p><p>You wrote a program.</p><p>The compiler analyzed it, calculated some values early, removed unused operations and potentially rearranged other instructions.</p><p>The executable still does what the program is required to do.</p><p>But it may look nothing like the source code you originally wrote.</p><p>That’s the beauty of compiler optimization.</p><p>We often focus on writing better code.</p><p>But there’s another important skill: understanding what the compiler does with the code after we’re finished writing it.</p><p>Because sometimes, the fastest instruction is the one your compiler decided you never needed.</p><p><strong>Your source code tells the compiler what you want. The generated machine code reveals how it decided to achieve it.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12eb5a50e218" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What If Computers Worked More Like Human Brains?]]></title>
            <link>https://medium.com/@rajkanjariya2020/what-if-computers-worked-more-like-human-brains-b2200c3ac4bb?source=rss-82545eb3171f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2200c3ac4bb</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[future-of-technology]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Raj Kanjariya]]></dc:creator>
            <pubDate>Fri, 06 Nov 2026 03:26:24 GMT</pubDate>
            <atom:updated>2026-11-06T03:26:24.221Z</atom:updated>
            <content:encoded><![CDATA[<h4>What if computers didn’t need to process everything all the time? Scientists are building brain-inspired chips that could change how machines process information. Here’s how neuromorphic computing works — and why it matters.</h4><h4><em>Traditional computers process information very differently from biological brains. A new approach called neuromorphic computing is trying to change that — and it could reshape how machines handle AI, sensors and real-world decisions.</em></h4><p>A computer that stays quiet when nothing important is happening, reacts when something changes, and processes information through networks inspired by the way neurons communicate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s1szKWj3At9cJxU08XH2QQ.png" /><figcaption>Nature’s neural architecture is inspiring a different way to build computers.</figcaption></figure><p>Imagine a computer that doesn’t need to constantly process everything.</p><p>Now imagine that computer inside a tiny robot, a wearable device, or a sensor that needs to make decisions without constantly sending data to the cloud.</p><p>It sounds like science fiction.</p><p>But researchers are already building hardware around this idea.</p><p>It’s called <strong>neuromorphic computing</strong>.</p><p>And the interesting part isn’t that scientists are trying to put a human brain inside a computer.</p><p>It’s that they’re questioning something we’ve accepted for decades:</p><p><strong>What if computers don’t need to work the way traditional computers do?</strong></p><h3>The Computer Architecture We’ve Been Using for Decades</h3><p>Most computers we use today follow an architecture broadly based on the von Neumann model.</p><p>It separates processing and memory.</p><p>Think about your laptop.</p><p>Your CPU performs calculations. Your RAM holds information that the CPU needs. Data moves between these components as programs execute.</p><p>This architecture has powered personal computers, servers, smartphones and much of the digital world.</p><p>It works incredibly well.</p><p>But there’s a problem.</p><p>Moving data between memory and processing units takes time and consumes energy. As applications become more demanding, moving enormous amounts of data can become a significant bottleneck.</p><p>This is particularly important for artificial intelligence.</p><p>An AI model may perform billions of operations, but those operations also involve moving model parameters, activations and intermediate results through a hardware system.</p><p>The computer isn’t just calculating.</p><p>It’s constantly moving information around.</p><p>And that raises an interesting question:</p><p><strong>What if memory and computation didn’t need to be separated in the same way?</strong></p><p>The human brain offers one possible source of inspiration.</p><h3>Your Brain Doesn’t Work Like a CPU</h3><p>Your brain contains billions of neurons connected through an enormous network of synapses.</p><p>Neurons communicate using electrical and chemical signals.</p><p>They don’t operate like individual CPU cores executing instructions from a program counter.</p><p>Instead, biological neural networks process information through distributed activity, timing, connections and patterns of signals.</p><p>One particularly interesting feature is that neurons communicate using electrical impulses called <em>action potentials</em>, commonly described as spikes.</p><p>A neuron can receive signals from other neurons, integrate those inputs and generate a spike when its internal state reaches a threshold.</p><p>This is not exactly how an artificial neuron in a typical neural network works.</p><p>And that difference matters.</p><p>Traditional artificial neural networks often process numerical values through layers of mathematical operations. Neuromorphic systems can instead use models where information is represented through the timing and occurrence of discrete events.</p><p>The goal isn’t to reproduce every biological detail.</p><p>It’s to borrow useful principles from the brain’s architecture.</p><p>IBM describes neuromorphic computing as an approach that draws inspiration from neural and synaptic structures to design computing hardware and software.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fi7tGmPq3umcp3LT3VaF6A.png" /><figcaption>Biological neurons and spiking neural networks both communicate through discrete signals, but they are not identical.</figcaption></figure><h3>Meet Neuromorphic Computing</h3><p>Neuromorphic computing is a computing paradigm inspired by the structure and behavior of biological nervous systems.</p><p>It combines ideas from neuroscience, computer architecture, electronics and artificial intelligence.</p><p>Instead of simply making conventional processors faster, researchers are experimenting with different ways of representing and processing information.</p><p>Three ideas are especially important.</p><h3>1. Spiking Neural Networks</h3><p>A traditional artificial neural network usually passes numerical activations between layers.</p><p>A spiking neural network, or SNN, represents information using discrete events called spikes.</p><p>Imagine a sensor monitoring a room.</p><p>In a conventional approach, the system might repeatedly process measurements, even when the environment barely changes.</p><p>An event-driven system can focus its computation on meaningful changes.</p><p>For example:</p><ul><li>A movement sensor detects a change.</li><li>The sensor generates an event.</li><li>A connected neural unit receives the event.</li><li>Its internal state changes.</li><li>If a threshold is reached, it generates another spike.</li><li>Other units process that event.</li></ul><p>The important difference is that information is communicated through events and their timing, not simply through a continuous stream of ordinary numerical activations.</p><h3>2. Event-Driven Processing</h3><p>Traditional computing systems often operate around clock-driven execution.</p><p>Neuromorphic systems can use asynchronous, event-driven computation.</p><p>Think about a motion-activated light.</p><p>You don’t need it to perform a full decision-making process every millisecond when the room is empty.</p><p>It only needs to respond when relevant activity occurs.</p><p>Neuromorphic architectures aim to make this kind of selective processing more natural.</p><p>When little is happening, less of the system may need to be active.</p><p>This can be useful for applications where data is sparse or events are infrequent.</p><h3>3. Memory and Computation Closer Together</h3><p>In conventional systems, moving data between memory and processors can consume substantial time and energy.</p><p>Neuromorphic architectures often explore distributing memory and computation across the network, closer to where information is processed.</p><p>Biological synapses store connection strengths while also participating in signal transmission.</p><p>Hardware designers take inspiration from this relationship.</p><p>Some approaches use specialized circuits or emerging memory technologies to bring storage and computation closer together.</p><p>The result is not a biological brain in silicon.</p><p>It’s a different engineering approach to a familiar problem: how to process information efficiently.</p><h3>The Interesting Part: Computers That React to Events</h3><p>Let’s make this practical.</p><p>Imagine a small autonomous robot moving through a warehouse.</p><p>It has cameras, sensors and a limited battery.</p><p>A conventional vision pipeline might repeatedly process camera frames to understand the environment.</p><p>But many real-world situations contain a lot of redundant information.</p><p>A wall doesn’t suddenly change every millisecond.</p><p>A moving object, however, may create a meaningful change.</p><p>Event-based vision sensors take advantage of this.</p><p>Rather than transmitting complete image frames at a fixed rate, they can report changes in pixel brightness as events.</p><p>The system receives information about what changed and when.</p><p>Combine this with neuromorphic processing, and you get an interesting architecture for low-latency, event-driven perception.</p><p>Potential applications include:</p><ul><li>Robotics.</li><li>Motion detection.</li><li>Autonomous sensing.</li><li>Industrial monitoring.</li><li>Wearable devices.</li><li>Low-power edge AI.</li></ul><p>This doesn’t mean neuromorphic computing automatically makes every robot faster or more intelligent.</p><p>It means certain workloads may benefit from processing information in a way that better matches the structure of the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*15DosOUJSSmh2udNHVRa3w.png" /><figcaption>Brain-inspired computing is moving from theoretical models into specialized hardware research.</figcaption></figure><h3>Scientists Are Already Building Brain-Inspired Chips</h3><p>This isn’t just a theoretical idea.</p><p>Several research platforms have demonstrated different approaches to neuromorphic hardware.</p><h3>Intel Loihi 2</h3><p>Intel developed Loihi 2 as a second-generation neuromorphic research processor.</p><p>It supports spiking neural networks and asynchronous, event-based computation.</p><p>Intel also provides Lava, an open-source software framework designed to help researchers and developers work with neuromorphic systems.</p><p>Intel’s Hala Point research system combines Loihi 2 processors at a much larger scale.</p><p>Intel describes Hala Point as a system containing up to 1.15 billion artificial neurons. This is a hardware-scale figure, not a claim that it reproduces a human brain. <a href="https://www.intel.com/content/www/us/en/research/neuromorphic-computing.html">https://www.intel.com/content/www/us/en/research/neuromorphic-computing.html</a></p><h3>IBM TrueNorth</h3><p>IBM’s TrueNorth was another important neuromorphic research platform.</p><p>It demonstrated how large networks of digital spiking neurons and synapses could be integrated into specialized hardware.</p><p>The broader lesson was that processors do not always need to follow conventional CPU or GPU architectures to perform useful neural computations.</p><p>IBM’s research into brain-inspired computing also explores how hardware architecture can reduce unnecessary data movement and support energy-efficient AI workloads. <a href="https://research.ibm.com/blog/what-is-neuromorphic-or-brain-inspired-computing">https://research.ibm.com/blog/what-is-neuromorphic-or-brain-inspired-computing</a></p><h3>SpiNNaker</h3><p>SpiNNaker, developed through research at the University of Manchester, takes another approach.</p><p>It uses many processor cores to support large-scale simulations of spiking neural networks.</p><p>It is particularly relevant to neuroscience research and the study of distributed neural computation.</p><p>These projects demonstrate that neuromorphic computing isn’t one single chip design.</p><p>It’s a collection of hardware and software approaches inspired by biological computation.</p><h3>Why Does This Matter for AI?</h3><p>Modern AI systems are impressive.</p><p>They can generate text, recognize images, write code and analyze complex information.</p><p>But running large AI workloads can require substantial computing resources.</p><p>Not every AI application needs a giant cloud-based model.</p><p>Consider a wearable device that monitors movement.</p><p>Or an industrial sensor that detects unusual vibrations.</p><p>Or a small robot that needs to react to its environment.</p><p>Sending every measurement to a remote server may introduce latency, network dependence and additional energy costs.</p><p>A specialized neuromorphic system could potentially process certain patterns locally, using event-driven computation.</p><p>This creates three interesting possibilities.</p><p><strong>Lower-power intelligence:</strong> Some sparse, event-driven workloads may require less energy than conventional approaches.</p><p><strong>Faster reactions:</strong> Local event processing can reduce the need to transmit every observation elsewhere.</p><p><strong>Always-on sensing:</strong> Devices could monitor their environments while avoiding unnecessary computation when nothing relevant changes.</p><p>These are potential advantages, not universal guarantees.</p><p>A neuromorphic chip is not automatically more efficient than a GPU. The result depends on the workload, model, hardware, software and measurement method.</p><h3>But There Is a Problem: Building the Chip Is Only Half the Battle</h3><p>Here’s where the story becomes even more interesting.</p><p>We already know how to build software for CPUs and GPUs.</p><p>We have mature programming languages, compilers, libraries, development tools, debugging systems and performance benchmarks.</p><p>Neuromorphic computing doesn’t yet have an equally mature and universal software ecosystem.</p><p>Developers must understand different neuron models, spike-based representations, hardware constraints and specialized programming frameworks.</p><p>Training spiking neural networks can also be challenging.</p><p>Many existing AI tools were designed around conventional artificial neural networks, not event-driven systems.</p><p>And there is another problem.</p><p>How do we fairly compare two very different computing architectures?</p><p>A chip might contain millions of neurons, but that number alone doesn’t tell us how accurately, quickly or efficiently it solves a real task.</p><p>Researchers need to measure things such as:</p><ul><li>Energy consumption for a specific workload.</li><li>Accuracy.</li><li>Processing latency.</li><li>Memory requirements.</li><li>Scalability.</li><li>Training complexity.</li><li>Software portability.</li></ul><p>A 2025 review in <em>Nature</em> discusses the challenges of scaling neuromorphic systems, including architecture, applications and the software ecosystem.</p><p>The field needs more than impressive hardware demonstrations.</p><p>It needs practical applications that outperform suitable conventional alternatives under fair conditions.</p><h3>Will Neuromorphic Computers Replace CPUs and GPUs?</h3><p>Probably not in the way people imagine.</p><p>CPUs are excellent at general-purpose computation.</p><p>GPUs are excellent at massively parallel workloads, including many forms of AI.</p><p>Neuromorphic systems are designed around different computational principles.</p><p>Their strengths may emerge in particular workloads, especially those involving sparse events, temporal patterns, sensor processing and low-power intelligence.</p><p>Think of it this way:</p><p>A GPU is not a replacement for every CPU.</p><p>Likewise, a neuromorphic processor does not need to replace every GPU to become useful.</p><p>The future could involve multiple computing architectures working together.</p><p>A conventional CPU could manage an operating system and general-purpose tasks.</p><p>A GPU could handle large matrix operations.</p><p>A neuromorphic processor could handle specific event-driven sensing or inference workloads.</p><p>The best architecture will depend on the problem being solved.</p><h3>What Developers Should Watch Next</h3><p>Neuromorphic computing is still an evolving research and engineering field.</p><p>But developers can begin exploring it today.</p><p>A useful starting point is to understand spiking neural networks and event-based data.</p><p>You can explore:</p><ul><li><strong>Intel Lava:</strong> An open-source framework for developing neuro-inspired applications.</li><li><strong>Nengo:</strong> A platform for building and simulating neural systems.</li><li><strong>Brian2:</strong> A simulator for spiking neural networks.</li><li><strong>SpiNNaker:</strong> A research platform for large-scale spiking neural network simulation.</li></ul><p>Start with a simple experiment.</p><p>Build a basic spiking neuron model.</p><p>Feed it a sequence of input signals.</p><p>Observe how its internal state changes and when it produces a spike.</p><p>Then compare that behavior with a conventional artificial neuron.</p><p>You will begin to understand why neuromorphic computing requires a different way of thinking about computation.</p><h3>The Real Future Might Be Hybrid</h3><p>The biggest mistake would be to assume that the future of computing has to choose between the human brain and the traditional computer.</p><p>We may need both.</p><p>Traditional processors have decades of engineering maturity behind them.</p><p>Neuromorphic systems offer alternative approaches to processing information, especially when timing, sparsity and energy constraints matter.</p><p>The most useful future systems may combine conventional processors, specialized AI accelerators, event-based sensors and neuromorphic hardware.</p><p>And perhaps that’s the most interesting lesson.</p><p>For decades, we improved computers by making familiar architectures faster and more powerful.</p><p>Now researchers are exploring a different question:</p><p>What if the next major improvement doesn’t come from making the same computer faster?</p><p>What if it comes from changing how the computer thinks about computation?</p><p><strong>The future of computing may not look more like today’s computers. It may look a little more like the biological systems that inspired the idea in the first place.</strong></p><p><em>The goal isn’t to build a machine that becomes human. It’s to discover whether nature has already solved some computing problems in ways that engineers can learn from.</em></p><h3>Connect With Me</h3><p>Thanks for reading! 🙏</p><p>Portfolio: <a href="https://rajkanjariya.dev/">rajkanjariya.dev</a><br>LinkedIn: <a href="https://linkedin.com/in/raj-kanjariya-webdeveloper">linkedin.com/in/raj-kanjariya-webdeveloper</a><br>Medium: <a href="https://medium.com/@rajkanjariya2020">medium.com/@rajkanjariya2020</a></p><p><em>Building, researching, and exploring the engineering behind AI and modern software.</em></p><h3>Research references</h3><p>For further reading and fact-checking:</p><ol><li><a href="https://www.nature.com/articles/s41586-024-08253-8?utm_source=chatgpt.com">Nature — Neuromorphic Computing at Scale</a></li><li><a href="https://www.ibm.com/think/topics/neuromorphic-computing?utm_source=chatgpt.com">IBM — What Is Neuromorphic Computing?</a></li><li><a href="https://www.intel.com/content/www/us/en/research/neuromorphic-computing.html?utm_source=chatgpt.com">Intel Labs — Neuromorphic Computing and Hala Point</a></li><li><a href="https://research.ibm.com/blog/what-is-neuromorphic-or-brain-inspired-computing?utm_source=chatgpt.com">IBM Research — How Neuromorphic Computing Takes Inspiration From Our Brains</a></li><li><a href="https://doi.org/10.1038/s41467-025-57352-1?utm_source=chatgpt.com">Nature Communications — The Road to Commercial Success for Neuromorphic Technologies</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2200c3ac4bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One Missing File Can Break an Entire Software Company]]></title>
            <link>https://alt.ctrlmag.com/one-missing-file-can-break-an-entire-software-company-f9c9ba31078f?source=rss-82545eb3171f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9c9ba31078f</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Raj Kanjariya]]></dc:creator>
            <pubDate>Thu, 05 Nov 2026 15:39:04 GMT</pubDate>
            <atom:updated>2026-11-05T15:39:04.549Z</atom:updated>
            <content:encoded><![CDATA[<h4>Your code didn’t change. Your server is running. Everything looks normal. So why did your entire build suddenly fail? The answer might be hiding inside a dependency you never knew your application needed.</h4><h4><em>Your application may contain millions of lines of code. But sometimes, everything depends on a file you didn’t even know existed.</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nfK5C_oN2cP77s2S6HBEPg.png" /><figcaption>Sometimes the smallest dependency creates the biggest failure.</figcaption></figure><p>Imagine opening your laptop on a Monday morning.</p><p>You run your application.</p><p>It worked perfectly on Friday.</p><p>But today?</p><p>The build fails.</p><p>You try again.</p><p>Same error.</p><p>You check your code. Nothing changed. Your team hasn’t pushed anything. Your database is running. Your server is healthy.</p><p>So what broke?</p><p>A dependency your application relies on is no longer available.</p><p>And suddenly, your entire development pipeline is stuck.</p><blockquote>Here’s the uncomfortable truth: <strong>Your software can break even when nobody changes your code.</strong></blockquote><p>That’s because modern applications are built on top of things developers don’t always control.</p><p>And sometimes, one missing file is enough to expose that entire dependency chain.</p><h3>Your Code Is Only a Small Part of Your Application</h3><p>When developers think about software, they usually think about the code they write.</p><p>A React component.</p><p>A Python API.</p><p>A database query.</p><p>A configuration file.</p><p>But modern software is more complicated.</p><p>Consider a simple web application:</p><ul><li>React handles the interface.</li><li>Next.js manages application rendering.</li><li>Node.js runs the JavaScript environment.</li><li>npm installs external packages.</li><li>A database stores information.</li><li>Docker packages the application.</li><li>CI/CD builds and deploys everything.</li><li>Cloud infrastructure keeps it running.</li></ul><p>Now imagine that one dependency disappears.</p><p>Your application might still be running on an existing server.</p><p>But your team may no longer be able to install dependencies, reproduce the build, deploy a new version or recover the system from scratch.</p><p>That’s the difference between software that works today and software that can reliably work tomorrow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OvBd_7VzN1zCXBZjXn5f3w.png" /><figcaption>Dependencies create chains of relationships that developers must manage.</figcaption></figure><h3>The Hidden Dependency Problem</h3><p>Let’s say you’re building a Node.js application.</p><p>You install a package:</p><pre>npm install express</pre><p>It looks simple.</p><p>But Express itself depends on other packages.</p><p>Those packages may depend on additional packages.</p><p>And those packages may depend on even more packages.</p><p>This creates a dependency tree.</p><p>Your application might directly depend on 20 packages while indirectly relying on hundreds of others.</p><p>You didn’t manually write all of them.</p><p>You might not even know their names.</p><p>But your application still needs them.</p><p>This is called a <strong>transitive dependency</strong>.</p><p>And it creates an interesting problem.</p><p>You may carefully review every package you install, but what about the dependencies hiding underneath those packages?</p><p>What happens if one of them disappears?</p><p>Or becomes unavailable?</p><p>Or gets compromised?</p><p>Your application doesn’t necessarily know the difference between a dependency you deliberately selected and one introduced several layers below it.</p><p>It simply expects the required components to exist.</p><h3>One Real Incident Shows How Fragile Dependencies Can Be</h3><p>In March 2016, a JavaScript package called left-pad was unpublished from npm following a dispute involving its maintainer.</p><p>The package was remarkably small. Its job was to add characters to the beginning of a string.</p><p>Yet its removal caused widespread problems across the JavaScript ecosystem because other packages depended on it.</p><p>Developers suddenly encountered installation failures.</p><p>Some builds stopped working.</p><p>Projects that had nothing to do with the original dispute were affected.</p><p>Think about that for a moment.</p><p>A tiny utility package, with functionality that could be implemented in a few lines, disrupted a huge number of downstream projects.</p><p>The incident became one of the best-known examples of how interconnected software dependencies can create unexpected failures.</p><p>The lesson wasn’t that small packages are dangerous.</p><p>It was that <strong>a dependency can become critical even when its functionality looks insignificant.</strong></p><p>And that is a much bigger engineering problem.</p><h3>The Missing File Doesn’t Have to Be a Package</h3><p>When people hear about software failures, they often imagine a broken application or a server outage.</p><p>But the missing component could be something much less obvious.</p><h3>1. A Configuration File</h3><p>Imagine your application depends on an environment configuration file.</p><pre>DATABASE_URL=...<br>API_SECRET=...<br>PORT=3000</pre><p>Someone accidentally removes the configuration from the deployment environment.</p><p>The application may start, but database connections fail.</p><p>Authentication may stop working.</p><p>Background jobs might crash.</p><p>A small configuration mistake can create a much bigger operational incident.</p><h3>2. A Package Lockfile</h3><p>Files such as package-lock.json, pnpm-lock.yaml and yarn.lock help preserve dependency versions.</p><p>Without a committed lockfile, two developers installing the same project at different times might receive different dependency versions.</p><p>For example:</p><pre>npm install</pre><p>Today, the installation might resolve one version of a dependency.</p><p>Several weeks later, it might resolve a newer compatible version.</p><p>That newer version could introduce unexpected behavior.</p><p>A lockfile doesn’t guarantee that every installation will succeed forever, but it makes dependency resolution more predictable and reproducible.</p><h3>3. A Build Script</h3><p>Your application might work perfectly when started manually.</p><p>But your CI/CD pipeline depends on a script:</p><pre>{<br>  &quot;scripts&quot;: {<br>    &quot;build&quot;: &quot;next build&quot;,<br>    &quot;start&quot;: &quot;next start&quot;<br>  }<br>}</pre><p>Remove or accidentally rename the build command, and your deployment pipeline can fail.</p><p>The application code might be completely fine.</p><p>The process required to turn that code into a deployable application is what broke.</p><h3>4. A Certificate or Signing Key</h3><p>Some files are much more sensitive than ordinary project files.</p><p>Certificates and signing keys can be required for secure communication, application signing and deployment.</p><p>If a required certificate expires or a signing key becomes unavailable, software distribution or secure connections can fail.</p><p>This isn’t simply a missing-file problem anymore.</p><p>It’s an infrastructure and operational security problem.</p><h3>Why Companies Often Discover These Problems Too Late</h3><p>Here’s something interesting.</p><p>Many teams test whether their application works.</p><p>Far fewer regularly test whether they can rebuild the entire application from a clean environment.</p><p>Those are two different things.</p><p>Imagine this situation:</p><p>Your production application has been running for six months.</p><p>Everything looks healthy.</p><p>But the original build environment has changed. A dependency has disappeared, a private package registry is unavailable, or an old configuration is no longer documented.</p><p>Now your company needs to deploy an emergency fix.</p><p>And suddenly, nobody can reproduce the original build.</p><p>The existing application is still running, but the ability to maintain it has become unreliable.</p><p>This is why software reliability isn’t only about uptime.</p><p>It’s also about reproducibility, recoverability and control over dependencies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I7uNue4OdMf-cASUu6-vBQ.png" /><figcaption>Reliable software starts with builds that can be reproduced.</figcaption></figure><h3>How Developers Can Protect Their Applications</h3><p>You don’t need a complicated enterprise security system to start reducing these risks.</p><p>A few engineering practices make a significant difference.</p><h3>1. Commit Your Lockfiles</h3><p>For Node.js projects:</p><pre>git add package-lock.json<br>git commit -m &quot;chore: commit dependency lockfile&quot;</pre><p>Use the appropriate lockfile for your package manager.</p><p>This helps teams install consistent dependency versions.</p><h3>2. Use Reproducible Installation Commands</h3><p>For npm projects, prefer:</p><pre>npm ci</pre><p>This installs dependencies based on the committed lockfile and is particularly useful in CI environments.</p><p>It also fails if the lockfile and package.json are out of sync.</p><h3>3. Use Dependency Scanning</h3><p>Tools such as Dependabot and npm audit can help identify known vulnerabilities in dependencies.</p><p>For example:</p><pre>npm audit</pre><p>Remember: dependency scanning is not a complete security guarantee. It doesn’t prove that a package is trustworthy or that a dependency will remain available.</p><h3>4. Keep Critical Dependencies Under Control</h3><p>Don’t install packages simply because they save a few lines of code.</p><p>Ask yourself:</p><ul><li>Is this dependency actively maintained?</li><li>Does it have a reasonable security history?</li><li>Does the project actually need it?</li><li>Does it introduce many additional dependencies?</li><li>Can the functionality be implemented safely without it?</li></ul><p>Every dependency introduces another relationship your software must manage.</p><h3>5. Test Clean Builds</h3><p>Try rebuilding your project in a fresh environment.</p><p>For example:</p><pre>git clone &lt;repository&gt;<br>cd &lt;project&gt;<br>npm ci<br>npm run build</pre><p>If the project cannot build from a clean checkout, you have discovered a reproducibility problem.</p><p>Fixing it now is much better than discovering it during an emergency deployment.</p><h3>6. Maintain Backups and Recovery Plans</h3><p>Keep critical configuration, deployment instructions and infrastructure definitions under controlled version management.</p><p>Protect secrets separately.</p><p>Maintain backups and periodically test whether they can actually be restored.</p><p>A backup that has never been tested is only an assumption.</p><h3>The Bigger Problem Is Not the Missing File</h3><p>Let’s go back to the original question.</p><p>Can one missing file break an entire software company?</p><p>It can certainly trigger a serious incident.</p><p>But the deeper problem isn’t the file itself.</p><p>It’s the dependency chain surrounding it.</p><p>Modern software is built through layers of interconnected systems:</p><p>Your application depends on packages.</p><p>Packages depend on maintainers and registries.</p><p>Build pipelines depend on scripts and configuration.</p><p>Infrastructure depends on credentials, certificates and external services.</p><p>And all of these relationships can become failure points.</p><p>We have become very good at writing software that works.</p><p>Now we need to become equally good at building software that can survive unexpected changes.</p><p>Because the next production failure might not come from a complicated algorithm, a massive database outage or a sophisticated cyberattack.</p><p>It might come from a tiny component nobody remembered was important.</p><p><strong>The most dangerous dependency in your application may be the one you don’t know you have.</strong></p><p>And that’s worth checking before your next deployment.</p><p><strong><em>Software reliability isn’t just about what you build. It’s also about everything your software quietly depends on.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9c9ba31078f" width="1" height="1" alt=""><hr><p><a href="https://alt.ctrlmag.com/one-missing-file-can-break-an-entire-software-company-f9c9ba31078f">One Missing File Can Break an Entire Software Company</a> was originally published in <a href="https://alt.ctrlmag.com/">Alt.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bun vs Node vs Deno: The Benchmarks Are Lying to You. Here’s How to Run One That Doesn’t.]]></title>
            <link>https://javascript.plainenglish.io/bun-vs-node-vs-deno-the-benchmarks-are-lying-to-you-heres-how-to-run-one-that-doesn-t-d049efc9de69?source=rss-82545eb3171f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d049efc9de69</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Raj Kanjariya]]></dc:creator>
            <pubDate>Thu, 05 Nov 2026 12:34:48 GMT</pubDate>
            <atom:updated>2026-11-05T12:34:48.088Z</atom:updated>
            <content:encoded><![CDATA[<h4>THE NUMBER ON THE CHART</h4><h4>The same three runtimes produced three different “real-world” results: a 3% gap, a 3% gap, and a 2.7x gap. The numbers aren’t fake. They answer different questions. Here’s what changed between them, where Bun’s lead is real, and a benchmark card to run your own in an afternoon.</h4><h3>Three “real-world” benchmarks, three different answers</h3><p>A team lead is deciding whether to move an API from Node to Bun. She searches, finds three benchmarks that each claim to test a realistic workload, and gets three answers.</p><p>The first simulates a production workload with routing, validation and an ORM database read, and finds Node at about 12K requests per second and Deno and Bun at about 12.4K, a marginal difference. The second reports that Bun’s 6x throughput lead on Hello World shrank to about 3% once JWT validation, a database query and Redis were added. The third lists a <strong>“real-world app with DB and middleware”</strong> at 14,320 requests per second for Bun against 5,240 for Node 20 and 6,180 for Deno.</p><p>That scene is illustrative, but the three results are published. My arithmetic: roughly 3%, roughly 3%, and about 2.7x. Same runtimes, three verdicts.</p><blockquote><strong><em>The 30-second version</em></strong></blockquote><ul><li>Hello World benchmarks measure the server, not your app. Most of Bun’s wins are on tight HTTP routes, and the gap shrinks sharply once a database and validation are involved.</li><li>The “real-world” numbers disagree because frameworks, versions, databases and hardware differ between tests.</li><li>Bun’s clearest lead is startup time, which matters for CLIs and serverless.</li><li>Disclosure: Bun was acquired by Anthropic in late 2025.</li><li>Below: what to check in any benchmark, and a card to run your own.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9RhwkpOYvB7oH4tiS2xM1Q.png" /></figure><h3>Hello World measures the server, not your app</h3><p>One guide explains why: JavaScriptCore is faster on tight loops than V8, and Bun’s native HTTP server skips the JavaScript layer that Node forces you through. Those advantages show up most on a route that does nothing.</p><p>Your server isn’t returning Hello. It’s parsing headers, validating tokens, hitting a database and building JSON. In one test with real PostgreSQL and Redis, Bun’s 6x Hello World advantage became 3%. That is one blog’s result, but it matches the other guide’s warning that a 60k vs 25k requests-per-second gap can collapse to roughly equal numbers once a database connection and validation are included.</p><p>The mechanism is simple: when the database is the slow part, a faster HTTP layer saves you a small slice of the total time.</p><p><strong>A faster server only matters if the server is the slow part.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W_97NT8fW_18cr9imRfSfQ.png" /></figure><h3>Frameworks and versions are hiding inside the chart</h3><p>Look closely at the 2.7x result. It compares Bun with Hono, Deno’s native server and Node with Express. That is partly a framework comparison, not only a runtime comparison.</p><p>Versions drift too. One widely shared set of numbers uses Node 22, Deno 2.0 and Bun 1.1, while another benchmarks Node 20. And the targets move: Bun v1.4.0 was released in August 2026 as the first build rewritten from Zig to Rust, with benchmarks reported as neutral to faster after the rewrite. Any chart from before that release describes a different build.</p><p>One more catch: Bun.serve() is faster than Node’s HTTP module, but it is Bun-specific, so porting back to Node means a rewrite.</p><p><strong>Before you trust a chart, check three things: which framework, which versions, which database.</strong></p><h3>Where Bun’s lead is real: starting up</h3><p>Not every claim is hype. One comparison lists hello-world startup at 8–15 ms for Bun, 40–60 ms for Deno and 60–120 ms for Node. Another, on older versions, shows 8 ms, 28 ms and 35 ms. Both rank them the same way.</p><p>That matters for CLIs, serverless functions and dev loops, where startup is the whole bill. The same guide cites Trigger.dev switching from Node to Bun and reporting 5x throughput on the same hardware. That is a vendor-reported claim from a secondary source, so verify it before quoting.</p><p><strong>If your code runs for 10 ms, startup is the benchmark. If it runs for hours, it isn’t.</strong></p><h3>The tail matters more than the average</h3><p>Requests per second is the easiest number to chart and the least useful to operate on. The advice from one guide: use the same request mix and the same database, and compare p50, p99 and p99.9 latency plus peak memory, since tail latency is where engines often diverge.</p><p>The HackerNoon test recorded exactly that kind of detail across a million requests per runtime: total time, requests per second, latency percentiles, CPU and memory. You can’t see that on a bar chart that shows one number.</p><p><strong>Throughput gets the headline. Tail latency gets the pager call.</strong></p><h3>A 10% rule for deciding</h3><p>One guide’s rule of thumb: if Bun is within 10% of Node on your actual workload, the migration isn’t worth the operational complexity, because the gain has to justify the ecosystem risk. That is one author’s opinion, but it’s a useful starting threshold.</p><p>My version, as a decision list:</p><ul><li>Under 10% faster on your workload: stay, unless you want Bun’s bundled tooling.</li><li>10–30%: worth a pilot, on a service you can roll back.</li><li>Above that, check whether the gain comes from something you could get in Node (caching, fewer middleware layers) first.</li></ul><h3>Try this in 2 minutes: a benchmark card</h3><p>Run the same app and the same request mix on each runtime, using your real database. Then record this:</p><p>bash</p><pre># Same app, same machine, same endpoint. Warm up once, then measure 3 runs.<br>npx autocannon -c 100 -d 30 http://127.0.0.1:3000/api/things</pre><pre># Peak memory (Linux):<br>/usr/bin/time -v node dist/index.js<br>/usr/bin/time -v bun run index.ts</pre><p>And fill in the card:</p><p>text</p><pre>Runtime + version:        ___ (node/bun/deno)<br>Framework + version:      ___<br>Database (real, not mock): ___<br>Payload size:             ___<br>Connections / duration:   100 / 30 s<br>Runs (median of):         3<br>Requests/sec:             ___<br>Latency p50 / p99 / p99.9: ___ / ___ / ___<br>Peak memory (RSS):        ___</pre><p>One of the guides above ran 100 connections for 30 seconds, three rounds, with real PostgreSQL and Redis. Use that as the model.</p><p><em>Editor’s note (delete after testing): I haven’t run these. Use your own numbers in the article if you can, and say which versions you tested.</em></p><p><em>Verified on October 28, 2026. Facts are as reported by the linked sources on that date.</em></p><h3>The one-sentence insight</h3><p><em>A benchmark answers one question precisely: how fast is this program on this machine. It says nothing about whether your program looks like that one.</em></p><h3>Back to the three charts</h3><p>The team lead doesn’t pick a winner from the charts. She picks her slowest endpoint, runs the card on both runtimes, and decides from her own numbers.</p><p>Boring, but it’s the only benchmark that was ever going to be about her app.</p><h3>Connect With Me</h3><p>Thanks for reading! 🙏</p><p>I write weekly about AI, security, privacy and developer tools.</p><h3>Sources</h3><ul><li>HackerNoon, Myth vs Reality: real-world Node, Deno and Bun performance: <a href="https://hackernoon.com/myth-vs-reality-real-world-runtime-performance-of-nodejs-deno-and-bun">https://hackernoon.com/myth-vs-reality-real-world-runtime-performance-of-nodejs-deno-and-bun</a></li><li>Dev Genius, Node vs Bun vs Deno in 2026: <a href="https://blog.devgenius.io/node-vs-bun-vs-deno-in-2026-the-brutally-honest-benchmarks-no-one-talks-about-aa5b74d83bbe">https://blog.devgenius.io/node-vs-bun-vs-deno-in-2026-the-brutally-honest-benchmarks-no-one-talks-about-aa5b74d83bbe</a></li><li>DevToolLab, JavaScript runtime comparison (June 2026): <a href="https://devtoollab.com/blog/javascript-runtime-comparison">https://devtoollab.com/blog/javascript-runtime-comparison</a></li><li>StackHarbor, Bun vs Node for production: <a href="https://stackharbor.com/en/knowledge-base/bun-runtime-vs-node-comparison/">https://stackharbor.com/en/knowledge-base/bun-runtime-vs-node-comparison/</a></li><li>Pockit, Deno vs Node vs Bun: <a href="https://scour.ing/@abnv/p/https://pockit.tools/blog/deno-vs-nodejs-vs-bun-2026">https://scour.ing/@abnv/p/https://pockit.tools/blog/deno-vs-nodejs-vs-bun-2026</a></li><li>InfoQ, Bun rewrite in four months: <a href="https://www.infoq.com/news/2026/09/bun-ai-rewrite-zig-rust-4-months/">https://www.infoq.com/news/2026/09/bun-ai-rewrite-zig-rust-4-months/</a></li><li>Lilting, Bun PR #30412: <a href="https://lilting.ch/en/articles/bun-zig-rust-ai-port">https://lilting.ch/en/articles/bun-zig-rust-ai-port</a></li><li>Techzine, Bun switches to Rust: <a href="https://www.techzine.eu/news/devops/142873/bun-switches-from-zig-to-rust-with-claudes-help/">https://www.techzine.eu/news/devops/142873/bun-switches-from-zig-to-rust-with-claudes-help/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d049efc9de69" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/bun-vs-node-vs-deno-the-benchmarks-are-lying-to-you-heres-how-to-run-one-that-doesn-t-d049efc9de69">Bun vs Node vs Deno: The Benchmarks Are Lying to You. Here’s How to Run One That Doesn’t.</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>