<?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 Pieter Geelen on Medium]]></title>
        <description><![CDATA[Stories by Pieter Geelen on Medium]]></description>
        <link>https://medium.com/@pietergeelen?source=rss-e13bf5091e08------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*iD6qq558KmOIrCZa8VGz4A.jpeg</url>
            <title>Stories by Pieter Geelen on Medium</title>
            <link>https://medium.com/@pietergeelen?source=rss-e13bf5091e08------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 19:23:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pietergeelen/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[The Art of Upcycling Electronics: Turning a Google Nest Mini into a Hi‑Fi Smart Speaker]]></title>
            <link>https://medium.com/engineering-iot/the-art-of-upcycling-electronics-turning-a-google-nest-mini-into-a-hi-fi-smart-speaker-5c054c48c3b8?source=rss-e13bf5091e08------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c054c48c3b8</guid>
            <category><![CDATA[smart-home]]></category>
            <category><![CDATA[upcycling]]></category>
            <category><![CDATA[audio-engineering]]></category>
            <category><![CDATA[google-home]]></category>
            <dc:creator><![CDATA[Pieter Geelen]]></dc:creator>
            <pubDate>Sat, 07 Mar 2026 21:38:53 GMT</pubDate>
            <atom:updated>2026-03-07T21:38:53.571Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve ever used a Google Nest Mini as a music speaker, you know the feeling: the Assistant understands you beautifully, but the sound? Not so much. Bass is thin, highs get muddy, and after a few songs you start wishing <em>something</em> was better. That’s why I took apart an old Nest Mini and rebuilt it — not just aesthetically, but <strong>functionally</strong> — with a custom 3D‑printed enclosure and better hardware. The result? A complete, smart, Hi‑Fi speaker that keeps all of the Nest Mini’s smart features and vastly improves the experience. (<a href="https://www.instructables.com/Ultimate-Google-Nest-Mini-Audio-Mod-Custom-Hi-Fi-E/">Instructables</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/0*4CeUel09SuZsEKrk" /></figure><p>This isn’t just another “mod” — it’s a <em>mindset shift</em> toward upcycling consumer electronics with engineering rigor and design intent.</p><h3>Why Upcycle a Nest Mini?</h3><p>Most smart speakers are designed to be <em>good enough.</em> They look nice, fit into rooms, get you 90 % of what you want — but never thrill. They are limited by:</p><ul><li><strong>Cheap drivers</strong> that lack depth.</li><li><strong>Fabric or mesh covers</strong> that muffle sound and touch input.</li><li><strong>Enclosures</strong> that aren’t acoustic‑optimized.</li><li><strong>Capacitive buttons</strong> that flirt with unreliability. (<a href="https://www.instructables.com/Ultimate-Google-Nest-Mini-Audio-Mod-Custom-Hi-Fi-E/">Instructables</a>)</li></ul><p>In other words, products designed with <em>cost first</em> rather than <em>experience first</em>. This project asks a different question:</p><blockquote><em>What happens if we keep the brains and networking of the Nest Mini, but rebuild everything else properly?</em></blockquote><h3>What You’ll Need</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*z7Vw0nMqJ9_TPZ9V.png" /></figure><p>Here’s the shortlist — all sourced to keep budget low and quality high:</p><ul><li><strong>Google Nest Mini</strong> (can be second‑hand for ≈€10).</li><li><strong>Better speaker driver</strong>: Dayton Audio DMA45‑8 1½″ aluminum full‑range.</li><li><strong>Passive radiators</strong> ×2 (same series).</li><li><strong>3D printing filament</strong> (~0.5 kg PETG preferred).</li><li><strong>Threaded inserts + M2/M3 hardware</strong> for assembly.</li><li><strong>Flexible flat cable</strong> to reconnect PCBs.</li><li><strong>Some basic workshop tools</strong>: Torx bits, soldering iron, pliers, vice.</li><li><strong>Optional materials</strong>: cork feet, quality speaker wire.</li></ul><p>The bulk of the audio upgrade is the enclosure + driver combination — the rest is about retaining Nest Mini functionality while making the experience robust and delightful. (<a href="https://www.instructables.com/Ultimate-Google-Nest-Mini-Audio-Mod-Custom-Hi-Fi-E/">Instructables</a>)</p><h3>Step 1 — Print the Enclosure</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*IQYkdPKWo8rurN0t.jpg" /></figure><p>The enclosure is more than looks; it’s acoustic strategy.</p><p>I used a 4‑wall thickness, 55 % cubic infill, and print orientation that minimized visible supports.<br>Critical pieces include:</p><ul><li><strong>The main enclosure body</strong>, designed to house the speakers and radiators.</li><li><strong>The upper lid</strong>, to mount electronics and capacitive connectors.</li><li><strong>Conductive connector rings</strong>, which transfer touch signals cleanly through the 3D printed shell.</li></ul><blockquote><strong><em>Tip:</em></strong><em> Those tiny conductive rings </em>must<em> be precise. If they warp, buttons won’t respond. Print them alone to boost quality.</em></blockquote><p>This is rapid prototyping in action: iterate in minutes, test, iterate again.</p><h3>Step 2 — Disassemble the Nest Mini</h3><p>Before cutting and modding anything, <em>validate that the Nest Mini works.</em> Boot it up. Try all the buttons. Make sure audio plays. This will save countless debugging headaches later.</p><p>Disassembly isn’t terribly hard but requires care:</p><ul><li>Remove bottom screws and pry gently.</li><li>Carefully free the <strong>main PCB</strong>, <strong>power PCB</strong>, and <strong>heat sink</strong>.</li><li>Harvest the <strong>capacitive contact pads</strong> — those little foil pieces are crucial later.</li></ul><p>The pads that register touch originally communicate through fabric and gentle contact. In our design we need them <strong>solidly connected to conductive rings</strong>, so you can reorient and mount them in the new enclosure. (<a href="https://www.instructables.com/Ultimate-Google-Nest-Mini-Audio-Mod-Custom-Hi-Fi-E/">Instructables</a>)</p><h3>Step 3 — Integrate the Electronics</h3><p>This is where patience pays off. You will:</p><ul><li>Modify and fit the capacitive pads into the printed conductive rings.</li><li>Mount the main PCB and ensure flat cable connections are secure.</li><li>Test the Nest Mini electronics outside the enclosure before final installation.</li></ul><p>The trick here is not force — it’s <em>precision.</em> Too much pressure and the fragile 3D printed structures break. Too little pressure and the capacitive buttons won’t register. Test as you go.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*n6_44yaRYQy43_qN.jpg" /></figure><p>When assembled properly, the system should boot up, make sound, and respond to touch consistently.</p><h3>Step 4 — Install the Speaker and Radiators</h3><p>This is where the audio magic happens:</p><ul><li>Solder or crimp quality speaker wires.</li><li>Mount the <strong>Dayton drivers</strong> and <strong>passive radiators</strong> in the custom holes.</li><li>Add ~3–4 g of damping fibers inside the enclosure.</li></ul><p>The passive radiators add bottom end without adding a separate sub or amplifier.</p><p>This setup costs ~€50 in parts at retail — and probably <strong>&lt;€10 in bulk</strong> — but outperforms stock Mini drivers substantially. (<a href="https://www.instructables.com/Ultimate-Google-Nest-Mini-Audio-Mod-Custom-Hi-Fi-E/">Instructables</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*B6U0gsu5QSs7hEqc.jpg" /></figure><h3>Step 5 — Final Testing and Assembly</h3><p>Put it all together:</p><ul><li>Connect the flat cable between power and main PCB.</li><li>Make sure wires are not pinched or strained.</li><li>Slide the printed upper lid into place.</li><li>Fasten everything gently.</li></ul><p>Test all functions again: voice command, music playback, touch volume control. If things aren’t working, check:</p><ul><li>Flat cable routing.</li><li>Contact pad orientation.</li><li>Button ring placement.</li></ul><h3>What Changed, and Why It Matters</h3><p>When engineers, makers, and designers collaborate — instead of shipping a “good enough” product — <em>the experience improves dramatically.</em></p><p>Here’s what the mod achieves:</p><ul><li><strong>Sound quality leaps forward</strong> — deeper bass and clearer mids from inexpensive upgrades.</li><li><strong>Buttons now work reliably</strong>, thanks to direct conductive paths instead of cloth.</li><li><strong>Mic performance feels more consistent</strong>, because the enclosure isn’t muffling or misplacing sound paths.</li><li><strong>The device becomes an object you enjoy using</strong>, not just tolerating.</li></ul><p>This is what happens when you <em>solve real problems, not cosmetic ones.</em></p><h3>Final Thoughts</h3><p>Upcycling isn’t just recycling with glue and hot air — it’s <strong>engineering with intent</strong>. We took a device that smartly integrates into modern homes, but whose audio experience leaves something wanting, and transformed it into something that <em>feels like an upgrade.</em></p><p>From software engineer to maker to statistician, I’ve always believed that <em>quality is a measurable, improvable thing.</em> If someone cares enough to prototype seriously, they can move off “good enough” into <strong>good and engineering‑driven design</strong>.</p><p>Happy building — and happy listening.</p><h3>Sources:</h3><ul><li><a href="https://www.instructables.com/Ultimate-Google-Nest-Mini-Audio-Mod-Custom-Hi-Fi-E/">Instructables</a></li><li><a href="https://www.printables.com/model/1587329-google-nest-mini-audio-mod">3D Print Files</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c054c48c3b8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/engineering-iot/the-art-of-upcycling-electronics-turning-a-google-nest-mini-into-a-hi-fi-smart-speaker-5c054c48c3b8">The Art of Upcycling Electronics: Turning a Google Nest Mini into a Hi‑Fi Smart Speaker</a> was originally published in <a href="https://medium.com/engineering-iot">Engineering IoT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Expertise Gets Lost in Big Companies (And How to Fight It)]]></title>
            <link>https://medium.com/engineering-iot/why-expertise-gets-lost-in-big-companies-and-how-to-fight-it-fcd8ac05c289?source=rss-e13bf5091e08------2</link>
            <guid isPermaLink="false">https://medium.com/p/fcd8ac05c289</guid>
            <category><![CDATA[smart-home]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[product-development]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[google-home]]></category>
            <dc:creator><![CDATA[Pieter Geelen]]></dc:creator>
            <pubDate>Sat, 07 Mar 2026 21:38:07 GMT</pubDate>
            <atom:updated>2026-03-07T21:38:07.926Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently took apart a Google Nest Mini to improve its audio and touch performance. On paper, the device works fine: it plays music, answers commands, and integrates with your smart home. But experience tells another story: the sound is thin, the microphone misses commands, and the capacitive buttons often fail.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uIHRhvcWV-xLVbtL.jpg" /></figure><p>A perfectly polished product — but frustrating, forgettable, and uninspiring.</p><p>This project revealed a common corporate reality: <strong>management, design, and engineering often operate at cross purposes, leaving expertise on the sidelines.</strong></p><h3>The Invisible Conflict</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*JGYnGskpUqWyS92f.png" /></figure><p>In large companies, expertise clashes with organizational incentives:</p><ul><li><strong>Management</strong> wants to leverage existing resources and reduce cost, shipping “good enough” products quickly.</li><li><strong>Design</strong> wants the product to look sleek and feel ergonomic, sometimes at the expense of function.</li><li><strong>Engineering</strong> wants systems to work reliably — but often can’t prioritize quality over bureaucracy.</li></ul><p>The Nest Mini embodies this tension. It is cheap to produce, looks nice, and technically functions — but nobody fought for sound fidelity, microphone precision, or touch responsiveness. Expertise was constrained by process, cost, and aesthetics.</p><h3>How Small Expertise Makes a Massive Difference</h3><p>Contrast this with my DIY Nest Mini mod:</p><ul><li><strong>Enclosure &amp; acoustics:</strong> A 3D‑printed, acoustically optimized body replaced the stock shell. The microphone now picks up sound consistently, and capacitive buttons respond reliably.</li><li><strong>Better speakers &amp; passive radiators:</strong> Dayton Audio DMA45‑8 drivers and two passive radiators turn a forgettable speaker into something you <em>want</em> to listen to.</li><li><strong>Smart integration preserved:</strong> All Nest Mini features remain fully functional — no compromise on connectivity or smart features.</li></ul><p>All of this cost less than €50 in parts. The difference between “good enough” and truly functional isn’t about money — it’s about <strong>intentionally applying expertise</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*V0MgcSQqzWkSCx_L.jpg" /><figcaption>Only with the right tools and expertise, you can make things work!</figcaption></figure><h3>Lessons from Hands-On Expertise</h3><ol><li><strong>Measure what matters, not what’s convenient. </strong>Corporate KPIs reward outputs like cost reduction or deadlines — not product quality. Testing sound and button responsiveness reveals what actually matters.</li><li><strong>Prototype to prove a point. </strong>The Nest Mini mod demonstrates that inexpensive components, applied thoughtfully, can vastly outperform stock solutions. Proof beats theory.</li><li><strong>Small interventions scale impact. </strong>Changing the enclosure, upgrading cheap speakers, and properly connecting buttons may seem minor — but they transform the product experience completely.</li><li><strong>Show, don’t tell. </strong>Evidence of improvement speaks louder than abstract arguments about “design principles” or “efficiency.”</li></ol><h3>Why Companies Lose Out</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F8608676&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fexcluded-gif-8608676&amp;image=https%3A%2F%2Fmedia.tenor.com%2FYrtA8A5oLrwAAAAN%2Fexcluded.png&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/78d220aab0246977b4169a1f6058ffcd/href">https://medium.com/media/78d220aab0246977b4169a1f6058ffcd/href</a></iframe><p>The Nest Mini isn’t unique. Across industries, products are released “good enough” because:</p><ul><li>Management focuses on leveraging resources.</li><li>Design focuses on appearance.</li><li>Engineering is boxed in by processes.</li></ul><p>Note how no one is responsible for creating a <strong>great, special or even remarkable product. </strong>Real expertise — iterative problem solving, testing, and attention to detail — gets undervalued. The Nest Mini mod shows both the limitations imposed by corporate priorities and the potential unlocked when skill is applied intentionally.</p><blockquote><em>Expertise is fragile but provable.</em></blockquote><blockquote><em>In the wrong culture, it goes unused.</em></blockquote><blockquote><em>But even small pockets of applied skill — like a modded speaker — can demonstrate what’s possible when engineering is allowed to thrive.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*SskFi6Ko0pjuBqGtAaLyhg.gif" /><figcaption>And here is a GIF showing showcasing the product!</figcaption></figure><h3>Sources:</h3><ul><li><a href="https://www.instructables.com/Ultimate-Google-Nest-Mini-Audio-Mod-Custom-Hi-Fi-E/">Instructables</a></li><li><a href="https://www.printables.com/model/1587329-google-nest-mini-audio-mod">3D Print Files</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcd8ac05c289" width="1" height="1" alt=""><hr><p><a href="https://medium.com/engineering-iot/why-expertise-gets-lost-in-big-companies-and-how-to-fight-it-fcd8ac05c289">Why Expertise Gets Lost in Big Companies (And How to Fight It)</a> was originally published in <a href="https://medium.com/engineering-iot">Engineering IoT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Makers Can Teach Companies About Real Innovation]]></title>
            <link>https://medium.com/engineering-iot/what-makers-can-teach-companies-about-real-innovation-cf5cedce589c?source=rss-e13bf5091e08------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf5cedce589c</guid>
            <category><![CDATA[corporate-culture]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[product-management]]></category>
            <dc:creator><![CDATA[Pieter Geelen]]></dc:creator>
            <pubDate>Wed, 11 Feb 2026 00:24:08 GMT</pubDate>
            <atom:updated>2026-02-15T20:33:17.661Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rA6Y7HhWKxyxFO4JCNHRzg.jpeg" /></figure><p>When I decided to improve the Google Nest Mini’s sound and touch interface, I wasn’t following a roadmap, a stakeholder hierarchy, or a budget spreadsheet. I had <strong>complete control over design, workflow, and decisions</strong>. I could iterate, fail, scrap, and rebuild at will.</p><p>In the maker world, expertise is fully leveraged. In corporate environments, it rarely is — and the consequences are visible in every “good enough” product on the shelf.</p><h3>Makers Have Freedom. Companies Don’t</h3><p>In my Nest Mini mod, I could:</p><ul><li>Swap speakers mid-project without asking for approval.</li><li>Print multiple enclosure prototypes in hours, not weeks.</li><li>Reposition capacitive buttons, add passive radiators, and optimize microphone channels instantly.</li><li>Measure performance in real-time and pivot based on results.</li></ul><p>All of these changes were <strong>guided by expertise</strong>, not constrained by stakeholders, budget lines, or internal politics.</p><p>Contrast this with a typical corporate environment:</p><ul><li><strong>Decision-makers are often inward-looking.</strong> They focus on budgets, resource allocation, and reporting metrics, rather than the actual functionality or user experience.</li><li><strong>Stakeholders are numerous and misaligned.</strong> Engineering wants reliability, design wants polish, marketing wants marketable features. The final decisions rarely reflect functional excellence — they reflect compromise.</li><li><strong>Budgets shape innovation more than curiosity.</strong> Rather than letting engineers experiment, resources are allocated to maximize internal efficiency or risk mitigation, not product quality.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F24510969&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fcry-sad-gif-24510969&amp;image=https%3A%2F%2Fmedia.tenor.com%2FTyzZqaPdpi4AAAAN%2Fcry-sad.png&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c0829b9c60f66965ab861aaaa9ff0b9/href">https://medium.com/media/5c0829b9c60f66965ab861aaaa9ff0b9/href</a></iframe><p>The result? Products that technically function but fail to delight — thin sound, unresponsive microphones, and vague buttons on devices like the Nest Mini.</p><h3>How Rapid Iteration Beats Bureaucracy</h3><p>Here’s how iteration worked in the Nest Mini mod:</p><ol><li><strong>Enclosure Testing</strong> — Printed three variants in one day, adjusting spacing for speakers and passive radiators.</li><li><strong>Button Alignment</strong> — Reoriented capacitive pads multiple times to ensure reliable touch.</li><li><strong>Acoustic Tuning</strong> — Added fibers, tested sound quality, and adjusted internal geometry for optimal audio.</li></ol><p>Each step generated <strong>immediate feedback</strong>. No meetings, no approvals, no stakeholder compromises — just expertise applied to the actual problem.</p><blockquote><em>Makers don’t wait for permission. They learn by doing, which accelerates innovation exponentially.</em></blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F4531935&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fjust-do-it-shia-la-beouf-do-it-gif-4531935&amp;image=https%3A%2F%2Fmedia.tenor.com%2FLUOHdYdROZQAAAAN%2Fjust-do-it-shia-la-beouf.png&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/bb7023cb71617041502de8496a90fcfa/href">https://medium.com/media/bb7023cb71617041502de8496a90fcfa/href</a></iframe><h3>Function Over Internal Optics</h3><p>In companies, design and management often prioritize appearances, reports, or internal KPIs:</p><ul><li>Budget compliance is measured, but sound quality is not.</li><li>Button feel and microphone responsiveness are invisible in spreadsheets.</li><li>Stakeholders reward products that “look good” internally, not products that perform beautifully in the user’s living room.</li></ul><p>As a maker, I could flip those priorities:</p><ul><li>Print a custom enclosure for acoustics and microphone placement.</li><li>Upgrade to Dayton Audio DMA45‑8 drivers with passive radiators.</li><li>Rewire capacitive buttons for reliable tactile response.</li></ul><p>Cost: €50-€80. Result: a speaker you <em>want</em> to use and interact with — functionality first, optics second.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F13083860&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Famericas-got-talent-agt-happy-smile-excited-gif-13083860&amp;image=https%3A%2F%2Fmedia.tenor.com%2FVooRATZG7cAAAAAN%2Famericas-got-talent-agt.png&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/a754f0f247ce7a1af9520ca4d4655b66/href">https://medium.com/media/a754f0f247ce7a1af9520ca4d4655b66/href</a></iframe><h3>Lessons for Companies</h3><p><strong>Empower experts where it matters. </strong>Real innovation happens when people with domain knowledge control the decisions that affect function, not just budgets or timelines.</p><p><strong>Focus outward, not inward. </strong>Products should be judged by user experience, not internal compliance or efficiency metrics.</p><p><strong>Iterate quickly and cheaply. </strong>Makers succeed because small experiments provide immediate feedback. Corporations can mimic this mindset even within constraints.</p><p><strong>Stakeholder alignment must include function. </strong>Everyone involved should prioritize functional performance alongside design and marketing, rather than internal optics alone.</p><p><strong>Failure is data, not a liability. </strong>Makers see misprints, misalignments, and sound tests as information. Corporate risk aversion slows learning and stifles expertise.</p><h3>Why This Matters</h3><p>The Nest Mini mod demonstrates a simple truth: <strong>freedom plus expertise equals innovation.</strong></p><ul><li>Makers can pivot, iterate, and experiment without permission.</li><li>Corporate decision-makers often focus inward on budgets, reporting, and optics.</li><li>The difference manifests in products: one is delightful, the other “good enough.”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*SskFi6Ko0pjuBqGtAaLyhg.gif" /><figcaption>And here is a GIF showing showcasing the product!</figcaption></figure><h3>Sources:</h3><ul><li><a href="https://www.instructables.com/Ultimate-Google-Nest-Mini-Audio-Mod-Custom-Hi-Fi-E/">Instructables</a></li><li><a href="https://www.printables.com/model/1587329-google-nest-mini-audio-mod">3D Print Files</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf5cedce589c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/engineering-iot/what-makers-can-teach-companies-about-real-innovation-cf5cedce589c">What Makers Can Teach Companies About Real Innovation</a> was originally published in <a href="https://medium.com/engineering-iot">Engineering IoT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why “Good Enough” Products Fail — And How Engineers Can Fix Them]]></title>
            <link>https://medium.com/engineering-iot/why-good-enough-products-fail-and-how-engineers-can-fix-them-792616a2265f?source=rss-e13bf5091e08------2</link>
            <guid isPermaLink="false">https://medium.com/p/792616a2265f</guid>
            <category><![CDATA[product-design]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[corporate-culture]]></category>
            <dc:creator><![CDATA[Pieter Geelen]]></dc:creator>
            <pubDate>Mon, 09 Feb 2026 19:49:51 GMT</pubDate>
            <atom:updated>2026-02-15T20:34:15.129Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why “Good Enough” Products Fail — And How Engineers Can Fix Them</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g6gx6y9HGeXBYI8GsD_Mbg.jpeg" /><figcaption>Me tweaking a Google Nest Mini and building a new home for it!</figcaption></figure><p>The Google Nest Mini is a perfect illustration of how corporate priorities dilute expertise. On paper, it works: it streams music, connects to your smart home, and responds to commands. In reality, the sound is thin, the microphone often misses, and the capacitive buttons feel vague.</p><p>Why? Because <strong>the foundational goals of design, engineering, and management are fundamentally misaligned</strong>.</p><h3>The Fundamental Conflict</h3><p><strong>Design:</strong> Aims for visual elegance, ergonomics, and user appeal. In isolation, design can compromise engineering performance: e.g., thin enclosures for aesthetic minimalism reduce acoustic quality.</p><p><strong>Engineering:</strong> Aims for reliability, function, and measurable performance. In isolation, engineering can compromise design aesthetics or ease-of-use: e.g., optimal speaker placement may require a box that looks bulky.</p><p><strong>Management:</strong> Aims to leverage existing resources, minimize cost, and ensure deadlines are met. In isolation, management often pushes both design and engineering toward “good enough” solutions that satisfy internal KPIs, not user experience.</p><p>When all three intersect in a corporate environment, <strong>compromise dominates</strong>. Each decision is a negotiation between conflicting priorities, and the resulting product is rarely remarkable.</p><blockquote><em>Good design can literally prevent good engineering. Good engineering can frustrate design. Management rarely resolves the conflict — they focus inward, on metrics, not on the product’s soul.</em></blockquote><h3>Companies Scale, Expertise Dilutes</h3><p>As organizations grow, this conflict intensifies:</p><ul><li>Decision-makers are increasingly <strong>removed from direct product feedback</strong>. They manage budgets, teams, and schedules instead of testing sound quality or button feel.</li><li>Processes become <strong>self-affirming and inward-focused</strong>. Metrics reward internal compliance, not user delight.</li><li>Feedback from outside — customers, real-world usage — is filtered, delayed, or ignored.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/0*Fs2mTVSklv-5HpGi" /></figure><p>The consequence: <strong>products become mediocre by design</strong>. They “function,” but they don’t inspire.</p><ul><li>Planned obsolescence: light bulbs designed to fail.</li><li>Pay-to-activate features: heated seats that require subscriptions.</li><li>“Good enough” electronics: thin sound and unresponsive touch in devices like the Nest Mini.</li></ul><p>This isn’t arrogance — it’s <strong>structural</strong>. Large groups naturally dilute skill and ambition, creating a feedback loop that enforces mediocrity.</p><h3>How Small, Skilled Teams Break the Pattern</h3><p>Contrast this with the maker or boutique approach. In my Nest Mini mod:</p><ul><li>I could <strong>prioritize function over form</strong>: custom 3D-printed enclosure, optimal speaker placement, properly wired capacitive buttons.</li><li>I could <strong>iterate rapidly</strong>, testing acoustics, microphone placement, and button feel in real time.</li><li>I could <strong>retain all smart features</strong> while dramatically improving performance.</li></ul><p>Result: a product that delights, inspires, and performs beautifully — achieved for <strong>€50 in parts</strong>.</p><p>This principle scales to larger industries:</p><ul><li>Car tuning and performance divisions like BMW’s M or Mercedes AMG are <strong>small, expert teams</strong>. They bypass corporate compromise to produce something remarkable.</li><li>If the larger management corpus intervened, <strong>the result would be a diluted, “safe” product</strong>.</li></ul><blockquote><em>Remarkable products are almost never the result of large teams following process. They emerge from </em><strong><em>small groups of highly capable, motivated, and empowered individuals</em></strong><em>.</em></blockquote><h3>The Takeaway</h3><p>The Nest Mini mod proves a simple truth: <strong>“good enough” products are a natural outcome of organizational structure</strong>, not individual failure. Expertise is powerful — but only when it is allowed to act without interference from misaligned stakeholders.</p><p>To create something special, assemble a small, skilled, motivated team. Let them iterate. Let them fail fast. Let them prioritize function, not process. Anything else will almost certainly produce mediocrity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*SskFi6Ko0pjuBqGtAaLyhg.gif" /><figcaption>And here is my mod in action!</figcaption></figure><h3>Sources:</h3><ul><li><a href="https://www.instructables.com/Ultimate-Google-Nest-Mini-Audio-Mod-Custom-Hi-Fi-E/">Instructables</a></li><li><a href="https://www.printables.com/model/1587329-google-nest-mini-audio-mod">3D Print Files</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=792616a2265f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/engineering-iot/why-good-enough-products-fail-and-how-engineers-can-fix-them-792616a2265f">Why “Good Enough” Products Fail — And How Engineers Can Fix Them</a> was originally published in <a href="https://medium.com/engineering-iot">Engineering IoT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL ASTs: The Hidden Cliff Between Structure and Meaning]]></title>
            <link>https://medium.com/aimonks/sql-asts-the-hidden-cliff-between-structure-and-meaning-bef516c63b97?source=rss-e13bf5091e08------2</link>
            <guid isPermaLink="false">https://medium.com/p/bef516c63b97</guid>
            <category><![CDATA[sqlglot]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[ast]]></category>
            <dc:creator><![CDATA[Pieter Geelen]]></dc:creator>
            <pubDate>Mon, 26 Jan 2026 11:33:35 GMT</pubDate>
            <atom:updated>2026-01-26T11:33:35.593Z</atom:updated>
            <content:encoded><![CDATA[<p>SQL — the <strong>Structured Query Language</strong> — is deceptively simple. Its name promises structure: clauses appear in predictable order, expressions are composable, queries are trees of operations. In practice, SQL queries can be <strong>parsed into Abstract Syntax Trees (ASTs)</strong>, which faithfully preserve structure and relationships. In theory, ASTs let you <strong>transpile SQL</strong>: take a query, transform it, and reconstruct it in another dialect.</p><p>But structure does not guarantee determinism. Even when the AST captures everything, the behavior of the query can vary across dialects or fail silently. ASTs give you <strong>shape</strong>, not <strong>meaning</strong>, and this gap is where most SQL transpilation problems hide.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8D-NRoYJi5Dj0Gw7.png" /></figure><h3>Structure First: SQL as a Tree Language</h3><p>At its core, a SQL query is a <strong>tree of operations</strong>. Consider:</p><pre>SELECT a + b AS total<br>FROM sales<br>WHERE price &gt; 100<br>ORDER BY total DESC<br>LIMIT 10;</pre><p>Using sqlglot, we can parse it into an AST:</p><pre>import sqlglot<br><br>sql = &quot;&quot;&quot;<br>SELECT a + b AS total<br>FROM sales<br>WHERE price &gt; 100<br>ORDER BY total DESC<br>LIMIT 10<br>&quot;&quot;&quot;<br><br>tree = sqlglot.parse_one(sql)<br>print(tree)</pre><p>Conceptually, the AST is:</p><pre>Select<br>├── expressions: Alias(Add(Column(a), Column(b)), total)<br>├── from: Table(sales)<br>├── where: GT(Column(price), Literal(100))<br>├── order: Order(Column(total), desc=True)<br>└── limit: Limit(Literal(10))</pre><p>Each node carries meaning: Select contains projections, Where contains conditions, Alias wraps expressions. Relationships between nodes are explicit, and recursion allows subqueries and nested expressions to be represented naturally. This makes the AST <strong>programmable</strong>, enabling safe structural rewrites.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/0*zD1IJxRSId8zGa73.jpg" /></figure><h3>Why Some AST Operations Are Safe</h3><p>Because ASTs encode <strong>structure</strong>, operations that do not depend on execution semantics are generally safe. For example, converting MySQL’s IFNULL to standard SQL COALESCE:</p><pre>from sqlglot import exp<br><br>sql = &quot;SELECT IFNULL(a, 0) FROM users&quot;<br>tree = sqlglot.parse_one(sql)<br><br>for node in tree.find_all(exp.Func):<br>    if node.name.upper() == &quot;IFNULL&quot;:<br>        node.set(&quot;this&quot;, exp.Func(name=&quot;COALESCE&quot;, expressions=node.expressions))<br>print(tree.sql())<br># Output: SELECT COALESCE(a, 0) FROM users</pre><p>This operation is safe because the change is purely <strong>structural</strong>. The node hierarchy remains intact, expressions are unchanged, and no aliases or outer references are involved. The AST guarantees the SQL produced will maintain the same functional behavior as long as the replacement function is semantically equivalent.</p><h3>Where ASTs Are Insufficient</h3><p>Problems arise when transformations depend on <strong>semantic context</strong>, which the AST cannot represent. Take a correlated subquery:</p><pre>SELECT *<br>FROM orders o<br>WHERE EXISTS (<br>    SELECT 1 FROM shipments s WHERE s.order_id = o.id<br>)</pre><p>The AST represents the Subquery nested under Where, but transpiling safely requires knowledge beyond structure:</p><ul><li><strong>Alias scopes must be preserved:</strong> o.id refers to the outer query. Rewriting without tracking outer references risks breaking bindings.</li><li><strong>Engine-specific </strong><strong>EXISTS semantics:</strong> some SQL engines optimize or evaluate EXISTS differently, affecting results.</li><li><strong>Predicate and ordering rules:</strong> multiple correlated subqueries may rely on execution order. Structural manipulation alone cannot guarantee correctness.</li></ul><p>The AST does not encode these constraints. Attempting to rewrite the subquery without semantic awareness could produce a query that is structurally valid but incorrect.</p><p>Window functions illustrate the same limitation:</p><pre>SELECT user_id, SUM(points) OVER (PARTITION BY team ORDER BY date) AS rolling<br>FROM scores</pre><p>The AST represents this as a Func node with a Window child. Structurally it is correct, yet engines differ in:</p><ul><li>Default frame behaviour</li><li>Null handling</li><li>Sort stability and ordering</li></ul><p>The AST cannot account for these variations. Two identical ASTs may execute differently, which is why semantic context is essential.</p><h3>The Challenge of Dialect Supersets</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/0*fE6k9Kka8UP9Vjq1.jpeg" /></figure><p>SQL dialects often introduce <strong>features with no standard equivalent</strong>. Examples include:</p><ul><li>PostgreSQL’s DISTINCT ON</li><li>BigQuery’s QUALIFY</li><li>SQL Server’s TOP … WITH TIES</li></ul><p>ASTs can represent these features as nodes, but safe transpilation is impossible without emulation strategies. No generic target exists, so even a structurally correct rewrite may be <strong>semantically invalid</strong>.</p><h3>Practical Guidance</h3><p>ASTs are powerful, but understanding their limitations is key:</p><ul><li><strong>Safe operations:</strong> function rewrites, literal normalization, formatting changes. These transformations remain within the node hierarchy and do not depend on execution semantics.</li><li><strong>Unsafe operations:</strong> correlated subqueries, window functions, nonstandard features, or any operation requiring alias resolution, execution order, or engine-specific behavior. AST alone cannot guarantee correctness.</li><li><strong>Mitigation strategies:</strong> layer schema and dialect metadata on top of the AST. Validate queries in the target engine. Use dialect-aware node extensions (sqlglot supports this) to preserve semantics where possible.</li></ul><h3>Structure vs Meaning: The SQL Cliff</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*3K_b_D0n0Yfc2ZDT.jpg" /></figure><p>SQL ASTs reveal a fundamental tension: <strong>structure can be preserved, but meaning is fragile</strong>. ASTs provide a reliable representation of a query’s shape, allowing programmers to traverse, manipulate, and rewrite SQL safely within structural boundaries. But beyond that boundary, behaviour may diverge across engines, features may be unsupported, and subtle semantic mismatches can break queries silently.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bef516c63b97" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aimonks/sql-asts-the-hidden-cliff-between-structure-and-meaning-bef516c63b97">SQL ASTs: The Hidden Cliff Between Structure and Meaning</a> was originally published in <a href="https://medium.com/aimonks">𝐀𝐈 𝐦𝐨𝐧𝐤𝐬.𝐢𝐨</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Divide by Zero: How It Breaks Math, Deep Learning, and Hardware Design]]></title>
            <link>https://medium.com/h7w/divide-by-zero-how-it-breaks-math-deep-learning-and-hardware-design-12c6389b936f?source=rss-e13bf5091e08------2</link>
            <guid isPermaLink="false">https://medium.com/p/12c6389b936f</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[fpga]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[fundamentals]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Pieter Geelen]]></dc:creator>
            <pubDate>Tue, 20 Jan 2026 01:59:59 GMT</pubDate>
            <atom:updated>2026-01-20T01:59:59.959Z</atom:updated>
            <content:encoded><![CDATA[<p>Division by zero — the “forbidden operation” we learn about in school — is far more than a trivial rule. Across mathematics, deep learning, and digital hardware, it exposes discontinuities, undefined behavior, and unpredictable timing. Whether we’re working with abstract numbers, neural network weights, or FPGA gates, divide by zero breaks the rules of the system in domain-specific ways.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*2wmUGQ6XmfXikj_K.jpg" /></figure><h3>Mathematics: Where Infinity Lives</h3><p>Division is defined as the inverse of multiplication:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*wpDQD4uBQcuNMHMfsg-jLA.png" /></figure><p>For nonzero b, this works perfectly. Set b = 0: there is <strong>no solution</strong>. No number x satisfies 0 * x = a if a != 0. Mathematically, dividing by zero is <strong>undefined</strong>, creating a discontinuity:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/159/1*D7cBgqQyaijjqE4Yiyffmg.png" /></figure><p>This is the purest form of impossible behavior: the operation simply cannot exist in the number system without breaking axioms.</p><h3>Deep Learning: Gradients Explode</h3><p>Neural networks rely on <strong>smooth, differentiable operations</strong>. Backpropagation calculates gradients using the chain rule to update weights. Division by zero threatens this smoothness.</p><h4>Example: Normalization Gone Wrong</h4><p>Consider a simple normalization layer in PyTorch:</p><pre>import torch<br><br>x = torch.tensor([1.0, 2.0, 3.0], requires_grad=True)<br>mean = torch.mean(x)<br>std = torch.std(x)<br><br># Introduce a zero std (dangerous!)<br>std = torch.tensor(0.0, requires_grad=True)<br><br>pyy = (x - mean) / std<br>y.sum().backward()</pre><p><strong>Result:</strong></p><pre>RuntimeError: divide by zero or NaN encountered in backward pass</pre><ul><li>Here, the denominator is zero.</li><li>The gradient of (y) w.r.t x or std is <strong>infinite or undefined</strong>, causing backpropagation to fail.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FuVtAU2EKHrsgifowFb%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FBounce-TV-confused-say-what-baffled-uVtAU2EKHrsgifowFb&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExbXlyeGJjdW1wbnNmb2g2N3pweTlqOGVzdHR4YXdodGhxcWlseGdvNyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FuVtAU2EKHrsgifowFb%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/04497724446e7e52cdac0e561b7a4e39/href">https://medium.com/media/04497724446e7e52cdac0e561b7a4e39/href</a></iframe><h4>Why This Happens</h4><ul><li>Derivative of division:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*cJRVqLjZIo8BSgfbSVObAA.png" /></figure><ul><li>Deep learning frameworks cannot propagate infinite gradients. PyTorch flags it as a NaN or inf, halting training.</li></ul><h4>Practical Workarounds</h4><ul><li>Add a small epsilon to prevent zero denominators:</li></ul><pre>y = (x - mean) / (std + 1e-8)</pre><ul><li>Use smoothed functions like <strong>softmax with log-sum-exp trick</strong> to avoid exact zeros.</li><li>Gradient clipping can mitigate extreme values but does <strong>not solve undefined derivatives</strong>.</li></ul><blockquote><em>Conceptually, divide by zero in deep learning is a “hidden cliff”: the chain of differentiable operations suddenly collapses.</em></blockquote><h3>FPGA Hardware: Step-by-Step XOR Division</h3><p>FPGAs compute binary division using <strong>XOR gates</strong> in GF(2). Let’s go step by step with a simple example.</p><h4>Problem</h4><p>Divide:</p><pre>Dividend = 1011 (binary)  → 11 decimal<br>Divisor  = 10   (binary)  → 2 decimal</pre><p><strong>Step 1: Align the divisor</strong></p><ul><li>Align the divisor with the <strong>highest 1-bit</strong> of the dividend.</li></ul><pre>Dividend: 1 0 1 1<br>Divisor : 1 0</pre><p><strong>Step 2: XOR (bitwise subtraction)</strong></p><pre>1 0 1 1<br>⊕ 1 0<br>----------<br>  0 0 1 1  → drop leading zeros → 11</pre><p><strong>Step 3: Repeat alignment and XOR</strong></p><ul><li>Current remainder: 11</li><li>Align divisor (10) under highest bit:</li></ul><pre>1 1<br>⊕ 1 0<br>------<br>  0 1 → drop leading zero → 1</pre><p><strong>Step 4: Stop condition</strong></p><ul><li>Current remainder 1 &lt; divisor 10 → division ends</li><li>Quotient = 101 (binary, 5 decimal)</li><li>Remainder = 1</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FbWM2eWYfN3r20%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Faint-nobody-got-time-for-that-gif-bWM2eWYfN3r20&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExczU0aDEzc2V2aGhnb3c3NncyNXJibHg4MG12a3dnc3VqcGlrODdtbCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FbWM2eWYfN3r20%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/c44428454bbe0d4b0ba0aba68904faed/href">https://medium.com/media/c44428454bbe0d4b0ba0aba68904faed/href</a></iframe><h3>Why This Is Hard in FPGAs</h3><ol><li><strong>Variable number of XOR iterations</strong>: depends on dividend.</li><li><strong>Sequential operation</strong>: XOR gates must be applied step by step.</li><li><strong>Unknown latency</strong>: cannot predict in advance how long division will take.</li><li><strong>Timing challenge</strong>: for FPGA designers, pipelines must account for worst-case loops.</li></ol><p>If a divide-by-zero occurs:</p><ul><li>No alignment is possible</li><li>XOR loop cannot produce a valid result</li><li>FPGA must trigger an <strong>exception or special-case handling</strong></li><li>Otherwise, it risks hanging the pipeline indefinitely</li></ul><blockquote><em>Divide by zero in hardware is literally a </em><strong><em>loop without end</em></strong><em>, unless explicitly caught.</em></blockquote><h3>Divide by Zero: Where Everything Breaks</h3><p>In all cases, divide by zero is <strong>a fundamental discontinuity. </strong>It’s the universe tapping you on the shoulder and saying, “Nope.”</p><ul><li>We dont really understand it what lives at 0</li><li>It makes your gradients explode in neural networks, and</li><li>hardware loops go rogue with no end in sight.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F11297651&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fyou-do-not-wanna-go-there-no-nope-smh-dont-do-it-gif-11297651&amp;image=https%3A%2F%2Fmedia.tenor.com%2FLrflb1CAJokAAAAN%2Fyou-do-not-wanna-go-there-no.png&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/c2b976f5c0cfe54de7da0ce0fe73fd2d/href">https://medium.com/media/c2b976f5c0cfe54de7da0ce0fe73fd2d/href</a></iframe><p>Across math, AI, and circuits, it’s the same lesson: some things are just impossible, and the rules you rely on break the moment you try. So this is why you can’t — not in theory, not in practice, and certainly not without regret.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12c6389b936f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/h7w/divide-by-zero-how-it-breaks-math-deep-learning-and-hardware-design-12c6389b936f">Divide by Zero: How It Breaks Math, Deep Learning, and Hardware Design</a> was originally published in <a href="https://medium.com/h7w">T3CH</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How FPGAs Do Neural Network Math: A Clear, Gate-by-Gate Explanation]]></title>
            <link>https://medium.com/h7w/how-fpgas-do-neural-network-math-a-clear-gate-by-gate-explanation-23fc2c476b49?source=rss-e13bf5091e08------2</link>
            <guid isPermaLink="false">https://medium.com/p/23fc2c476b49</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[fpga]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Pieter Geelen]]></dc:creator>
            <pubDate>Tue, 06 Jan 2026 02:01:52 GMT</pubDate>
            <atom:updated>2026-01-06T02:01:52.919Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/486/0*iIRMnUdIj8W9NqI5.png" /></figure><p>Neural networks are everywhere, from computer vision to speech recognition. But when you look “under the hood” of a neural accelerator like the Google Coral TPU or Intel Neural Compute Stick, it’s easy to imagine magic — yet it’s all built on the same digital logic that powers your CPU. In this article, we’ll break down <strong>how arithmetic like addition, subtraction, multiplication, and even shifts are performed on FPGAs</strong>, and why simple logic gates are enough.</p><h3>Binary Numbers and the Sign Bit</h3><p>Digital hardware works in <strong>binary</strong>, representing numbers as sequences of <strong>0s and 1s</strong>. Neural accelerators often use <strong>int8</strong> integers — 8-bit numbers — to reduce power and increase parallelism.</p><p>An <strong>int8</strong> uses <strong>two’s complement</strong>:</p><pre>b7 b6 b5 b4 b3 b2 b1 b0</pre><ul><li>b7 = <strong>sign bit</strong></li><li>0 = positive</li><li>1 = negative</li><li>b6…b0 = <strong>magnitude (absolute value in two’s complement)</strong></li></ul><p><strong>Examples:</strong></p><pre>+5  = 00000101<br>-5  = 11111011</pre><ul><li>Notice that the sign bit flips for negative numbers.</li><li>In two’s complement, negative numbers are represented by <strong>inverting all bits and adding 1</strong>.</li><li>This ensures addition and subtraction work without extra hardware.</li></ul><h3>Addition: XOR, AND, and Carry</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*dy05TjJH_ZqbzIiy.jpg" /></figure><p>At the core of addition is the <strong>full adder</strong>, which computes the sum of <strong>two bits and a carry-in</strong>. Let’s see the truth table:</p><pre>+---+---+-----+-----+-----------+<br>| A | B | Cin | Sum | Carry_out |<br>+---+---+-----+-----+-----------+<br>| 0 | 0 |  0  |  0  |     0     |<br>| 0 | 0 |  1  |  1  |     0     |<br>| 0 | 1 |  0  |  1  |     0     |<br>| 0 | 1 |  1  |  0  |     1     |<br>| 1 | 0 |  0  |  1  |     0     |<br>| 1 | 0 |  1  |  0  |     1     |<br>| 1 | 1 |  0  |  0  |     1     |<br>| 1 | 1 |  1  |  1  |     1     |<br>+---+---+-----+-----+-----------+</pre><p><strong>Key points:</strong></p><ul><li>Sum = A XOR B XOR Cin → the tentative sum ignoring carry</li><li>Carry = (A AND B) OR (Cin AND (A XOR B)) → computes carry-out, meaning that a 1 will be added to the next higher order bit.</li></ul><p>Chaining <strong>8 full adders</strong> creates an <strong>8-bit adder</strong>, representing int8 numbers. Carries <strong>propagate from least-significant to most-significant bit</strong>, ultimately affecting the sign bit if there’s overflow.</p><p><strong>Example: 5 + 3</strong></p><pre>5  = 00000101<br>3  = 00000011<br>-------------<br>           c0 # step 1: 1+1 -&gt; Cin of 0 with a Carry-out of 1<br>          c00 # step 2: 0+1+ Carry-out of 1 -&gt; Cin of 0 with a Carry-out of 1<br>         c000 # step 3: 1+0+ Carry-out of 1 -&gt; Cin of 0 with a Carry-out of 1<br>         1000 # step 3: 0+0+ Carry-out of 1 -&gt; Cin of 0 with a Carry-out of 0<br>8  = 00001000</pre><ul><li>The carry flows through the lower bits to higher bits.</li><li>If the sum exceeds the int8 range, overflow occurs (wrap-around).</li></ul><h3>Subtraction: Two’s Complement</h3><p>Before we go into subtraction, we must realise how the binary system works. If we assume an int8, then we start count like this:</p><pre>00000011 → 3<br>00000010 → 2<br>00000001 → 1<br>00000000 → 0 &lt;---- first digit of signed with zero is 0. <br>11111111 → -1<br>11111110 → -2<br>11111101 → -3</pre><p>This means that you have an extra number with sign 0 that you don’t have in the negative numbers. So the range for positive numbers is always 1 less than for negative numbers. In the case of Int8 the range is +127 to -128. This will be important later.</p><p>Subtraction is handled by <strong>adding the two’s complement of the subtracted number</strong>:</p><pre>A - B = A + (~B + 1)</pre><ul><li>~B = invert all bits <strong>including the sign bit</strong></li><li>+1 completes two’s complement (correcting for this range problem)</li></ul><p><strong>Example: 5 − 3</strong></p><pre>B      = 00000011<br>~B     = 11111100  = -4 (all bits inverted)<br>~B + 1 = 11111101 = -3 (-3 in two’s complement)<br><br>5  = 00000101<br>-3 = 11111101<br>-------------<br>2  = 00000010 </pre><ul><li>No extra subtraction hardware is required — the <strong>adder handles it all</strong>.</li><li>This works consistently across positive and negative numbers because the sign bit is included in the inversion.</li></ul><h3>Multiplication: Shift-and-Add</h3><p>Multiplication is conceptually <strong>repeated addition</strong>, implemented efficiently in hardware using <strong>shift-and-add</strong>:</p><p><strong>Example: 5 × 3</strong></p><pre>5 = 00000101<br>3 = 00000011</pre><p>Process:</p><pre>We mulitply 5 by 3<br><br>5  = 00000101 = multiplicand<br>3  = 00000011 = multiplier</pre><p>We create a “partial product” in which we shift left the multiplicand, based on the multiplier. S</p><pre>Multiplier bits (3 = 00000011):<br>Bit 0 (LSB) = 1 → 5 &lt;&lt; 0 = 00000101 # A shift of zero<br>Bit 1       = 1 → 5 &lt;&lt; 1 = 00001010 # A shift of 1<br>Bit 2       = 0 → 0<br>Bit 3       = 0 → 0<br>Bit 4-7     = 0 → 0</pre><p>Note that we get more partial products as the integer becomes larger. With a multiplier of 13 is represented in binary as 00001101 you would get 3 partial products, as we can see 3 1 in the binary.</p><ul><li><strong>AND gates</strong> select which bits of the multiplicand contribute (partial products)</li><li><strong>Adders</strong> accumulate the result</li><li><strong>Shifts</strong> in hardware are just <strong>wiring or register re-indexing</strong>, not expensive arithmetic</li></ul><p>Signed multiplication uses <strong>two’s complement</strong>. Often, the <strong>sign is fixed at the end</strong>, or hardware uses <strong>Booth encoding</strong> for efficiency.</p><h3>Shifts: Simple but Powerful</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*XYLCeBKebE2iCn53.jpg" /></figure><p>Shifts are <strong>physically moving bits left or right</strong> in a register:</p><ul><li><strong>Left shift (</strong><strong>&lt;&lt;)</strong> = multiply by powers of two</li><li><strong>Right shift (</strong><strong>&gt;&gt;)</strong> = divide by powers of two (for unsigned numbers)</li></ul><p>Example:</p><pre>00000101 &lt;&lt; 1 → 00001010   (5 × 2 = 10)</pre><ul><li>Shifts are used in multiplication to <strong>align partial products</strong></li><li>No actual “multiply circuit” is needed — just wires + adders</li></ul><p>So even though shifts seem trivial, they are <strong>essential for building multipliers</strong> efficiently on FPGAs.</p><h3>Why int8 Works for Neural Networks (and Physical Complexity)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*e7VIDenVedZDZz1E.jpg" /></figure><p>Neural networks operate mostly on <strong>matrix multiplications</strong>, sums of products:</p><pre>y = Σ (weight × input)</pre><p>Every arithmetic operation is <strong>a physical arrangement of gates</strong>:</p><p><strong>Adder (int8)</strong>: 8 full adders</p><ul><li>Each full adder = 2 XOR + 2 AND + 1 OR gates</li><li>XOR: 8*2 = 16 AND: 8*2 = 16 OR: 8*1 = 8</li></ul><p><strong>Adder (int64)</strong>: 64 full adders</p><ul><li>XOR: 64*2 = 128 AND: 64*2 = 128 OR: 64*1 = 64</li></ul><p>So moving from int8 → int64 <strong>increases gate usage linearly</strong> with bit-width. This is why neural accelerators prefer <strong>int8</strong>:</p><ul><li>Saves physical area</li><li>Reduces power (fewer gates switching)</li><li>Allows more <strong>parallel MAC units</strong></li></ul><p>Multiplication scales similarly:</p><ul><li>int8 × int8 = 8×8 partial products → 64 AND gates + adder tree</li><li>int64 × int64 = 64×64 = 4096 AND gates + huge adder tree</li></ul><p>Thus, <strong>hardware complexity grows quickly with bit-width</strong> — making int8 the sweet spot for inference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/0*Blrqif6pUu3ghsWh.jpg" /></figure><h3>Summary</h3><ul><li>Binary numbers include a <strong>sign bit</strong>, handled naturally in two’s complement</li><li>Addition uses <strong>XOR/AND/OR with carry propagation</strong></li><li>Subtraction = addition of <strong>two’s complement</strong>, including the sign bit</li><li>Multiplication = <strong>shift-and-add</strong>, with AND gates for partial products</li><li>Shifts = wiring to align bits for multiplication</li><li>int8 is optimal for neural networks because <strong>hardware complexity and power scale linearly with bit-width</strong>, making massive parallel MAC arrays feasible</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23fc2c476b49" width="1" height="1" alt=""><hr><p><a href="https://medium.com/h7w/how-fpgas-do-neural-network-math-a-clear-gate-by-gate-explanation-23fc2c476b49">How FPGAs Do Neural Network Math: A Clear, Gate-by-Gate Explanation</a> was originally published in <a href="https://medium.com/h7w">T3CH</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When GPUs Lose: Why Small LLMs Favour CPUs and Edge TPUs Over High-End GPUs]]></title>
            <link>https://medium.com/aimonks/when-gpus-lose-why-small-llms-favour-cpus-and-edge-tpus-over-high-end-gpus-f75dcae3833e?source=rss-e13bf5091e08------2</link>
            <guid isPermaLink="false">https://medium.com/p/f75dcae3833e</guid>
            <category><![CDATA[fpga]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[cuda]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[google-coral]]></category>
            <dc:creator><![CDATA[Pieter Geelen]]></dc:creator>
            <pubDate>Mon, 05 Jan 2026 13:00:39 GMT</pubDate>
            <atom:updated>2026-01-05T14:22:04.248Z</atom:updated>
            <content:encoded><![CDATA[<p>The conventional wisdom in machine learning is clear: GPUs are faster. NVIDIA’s CUDA ecosystem has become the de facto standard for training and inference, with frameworks optimized for GPU acceleration. But what happens when you challenge this assumption with a controlled, reproducible benchmark?</p><p>The benchmark is built on a 10-million parameter Transformer model that is run across CPU, GPU, and Google Coral Edge TPU. The RTX 3090, despite its massive computational power, was 67% slower than a CPU for this workload. The Edge TPU matched CPU performance while consuming 85x less power.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*gvocx9hzVJ59Kxp9" /></figure><p>This raises an important question: if specialized edge devices like the Coral TPU can match or exceed GPU performance for small models, how much more beneficial could a dedicated FPGA be? FPGAs offer programmability and the ability to create custom compute architectures optimized for specific workloads. Could they bridge the gap between general-purpose CPUs and specialized ASICs?</p><h3>The Problem: Hardware Assumptions in LLM Inference</h3><p>So lets have a look at LLMs and inference. Large Language Models can have 70-billion parameter or more. These weights are then used together with input to do basic arithmetic operations like summation and multiplication. This is a very specific workload that we can model on the compute resources:</p><ul><li>CPU is a Central Processing Unit, can do many operations, and has very fast memory build in, called Cache. For larger chunks of data, we use RAM. Moving data from and to the CPU is a bottleneck, and this is where the size of the LLM becomes an issue. Furthermore, a CPU can only do 1 thing at a time, per core.</li><li>GPU or Graphic Processing Unit is a more clever design for LLMs, as it has an extremely fast and large memory bus to the memory that is installed on the graphics card. This means that data that is inside the GPU, can be retrieved very quickly. Another trick up the sleeve of a GPU is that it can do the same execution for a vast array of data-points, at the same time. So even though the overall operation is slower, the massive parallel nature can make it bottom line faster.</li><li>Currently,FPGAs or Field Programmable Gate Arrays, are chips that can program circuits inside their structure. So, like with the Google Coral, we first need to load in the model, meaning program the FGPA to behave like the model. The core principle is that we do binary maths based on AND/OR Gateways. The cool part of FPGA is that after it is programmed, it basically becomes the program on a electrical level. We can send through our bits and get results back immediately. The problem with LLMs is again large size. Every Bit needs to be represented physically on the chip. The Google Coral e.g. can store about 8 MB of int8 digits, which is about 8 million weights. With LLM, we are talking billions! Currently, there are no FPGAs large enough to contain the large models that we are used to using from the likes of Lama and ChatGPT.</li></ul><p>In practice, the industry has largely converged on GPU-first solutions, driven by software availability and ecosystem momentum rather than fundamental hardware superiority. This creates a self-affirming cycle: CUDA is available, so frameworks optimize for CUDA, so developers use CUDA, so more frameworks optimize for CUDA.</p><blockquote>But is this always the right choice?</blockquote><h3>The Experiment: A Controlled Benchmark</h3><p>To answer this question, I designed a rigorous benchmark comparing inference performance across four hardware platforms:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bkVCbECUdvKrBdqJ.jpg" /><figcaption>For reference: A Google Coral USB Dongle.</figcaption></figure><ul><li><strong>CPU</strong>: AMD Ryzen 9 9950X (16 cores, 32 threads, 64MB L3 cache, 170W TDP)</li><li><strong>GPU</strong>: NVIDIA RTX 3090 (10,496 CUDA cores, 24GB GDDR6X, ~118W measured)</li><li><strong>Coral Edge TPU (Standard)</strong>: 250 MHz clock, ~2W average power</li><li><strong>Coral Edge TPU (Max)</strong>: 500 MHz clock, ~2.5W average power</li></ul><p>The benchmark used a 10-million parameter Transformer model (Tiny-LLM), quantized to 8-bit integers for edge compatibility. This model size (~9.5MB) is intentionally small — small enough to fit entirely within the CPU’s 64MB L3 cache, but representative of edge AI workloads.</p><h3>Methodology: Reproducibility Through Containerization</h3><p>To ensure fair comparison and reproducible results, the workloads were containerized using Docker and the NVIDIA Container Toolkit:</p><ul><li><strong>Isolated environments</strong>: Each workload (CPU, GPU, Coral) runs in its own container with identical Python dependencies</li><li><strong>Resource monitoring</strong>: CPU usage, memory consumption, and GPU utilization measured from inside containers</li><li><strong>Hardware abstraction</strong>: NVIDIA Container Toolkit enables GPU access without host driver conflicts</li><li><strong>Reproducibility</strong>: Same Docker image runs on any compatible system, ensuring consistent results</li><li><strong>GPU acceleration</strong>: TensorFlow SavedModel format (not TFLite) enables proper GPU acceleration with automatic backend selection</li><li><strong>Controlled variables</strong>: Identical models, same 8-bit quantization, same workload characteristics — isolating hardware impact</li></ul><h3>The Results: When Cache Beats Compute</h3><p>The benchmark results reveal a counterintuitive finding: the CPU outperforms the GPU for this small model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*487wWn9sJFs2WiiLCdwVVA.png" /></figure><p><strong>Inference Times (mean)</strong>:</p><ul><li>CPU: 33.26 ms</li><li>Coral (Max): 32.15 ms</li><li>Coral (Std): 33.23 ms</li><li>GPU: 55.41 ms</li></ul><p>The RTX 3090, despite its massive computational power, is 67% slower than the CPU. Why?</p><h3>The Cache Advantage</h3><p>The 9.5MB model fits entirely within the CPU’s 64MB L3 cache. This means L3 cache latency is ~40–75 cycles (~10–20ns), compared to GPU global memory latency of ~400–600 cycles (~100–150ns). PCIe transfer latency adds another ~5–10µs per transfer.</p><p>For small models, the CPU’s cache hierarchy provides dramatically lower latency than GPU memory access. The GPU’s parallel processing advantage is negated by the overhead of data transfers and kernel launches.</p><h3>The Overhead Problem</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a_ez1Bn8HtLKHSk0C_KPWg.png" /></figure><p>GPU inference involves significant overhead: kernel launch latency (~5–10µs even for small kernels), PCIe transfers between CPU and GPU memory, synchronization waiting for GPU operations to complete, and low utilization. Our benchmark showed only 8% GPU utilization, indicating the workload is too small to fully utilize GPU parallelism.</p><p>TensorFlow’s Python API adds additional overhead: graph construction, session management, and memory allocation all contribute to the latency penalty. The framework overhead dominates for small workloads, making the GPU’s computational advantage irrelevant.</p><h3>Edge TPUs: Specialized Hardware for Specialized Workloads</h3><p>The Google Coral Edge TPU results are particularly interesting. At ~2W average power consumption, the Coral achieves performance comparable to a 56,6 W CPU. The max performance driver (500 MHz) provides a slight edge, demonstrating that specialized hardware can excel when workloads match their design constraints.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S1uUxujHwTAQfnmBudDMSA.png" /></figure><p><strong>Power Efficiency (TOPS per Watt)</strong>:</p><ul><li>Coral (Std): 0.000303 TOPS/W</li><li>Coral (Max): 0.000249 TOPS/W</li><li>CPU: 0.000004 TOPS/W</li><li>GPU: 0.000003 TOPS/W</li></ul><blockquote><strong>The Coral is 75–100x more power-efficient than the CPU or GPU for this workload.</strong></blockquote><p>This isn’t surprising — the Edge TPU is purpose-built for quantized neural network inference, with dedicated hardware for matrix operations. When the workload matches the hardware design, specialization wins.</p><h3>Hardware Development Lags Behind Software</h3><p>This benchmark highlights a fundamental tension in computing: hardware development always lags behind software development.</p><p>Software frameworks evolve rapidly, driven by developer needs and ecosystem momentum. CUDA became dominant not because it was fundamentally superior for all workloads, but because NVIDIA made it available, well-documented, and integrated into popular frameworks. Once the ecosystem converged on CUDA, alternatives became harder to justify despite potential advantages.</p><p>We can see this pattern throughout computing history. In networking, ASICs and FPGAs have become essential for achieving the efficiency needed at scale. Routers and switches use specialized hardware because general-purpose CPUs can’t match the performance-per-watt requirements. The same principles apply to AI inference: when workloads are well-defined and performance-per-watt matters, specialized hardware wins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*XazTAkr6P4JpMh2z.jpg" /></figure><p>It’s no wonder that Google’s TPUs are extremely interesting — they operate in a similar space. TPUs are custom ASICs designed specifically for machine learning workloads, offering higher performance-per-watt than GPUs for many ML operations. They’re not general-purpose, but they excel at the specific operations common in neural networks.</p><h3>The Beginning of the End for CUDA Dominance?</h3><p>CUDA and NVIDIA’s ecosystem dominance might represent the beginning of an end, not the end itself. The current dominance is driven by availability — CUDA is widely available and well-supported. Software stacks are optimized for CUDA, most ML engineers know CUDA, and the ecosystem momentum creates a self-reinforcing cycle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/0*s9-5swi7fTmgzTP7.png" /></figure><p>But in the long term, alternatives will become more interesting. Specialized hardware is maturing: Edge TPUs, NPUs, and custom ASICs are improving. Power efficiency matters more as edge deployment and mobile applications demand efficiency. As ML operations standardize, specialized hardware becomes more viable. And software abstraction is improving — frameworks that abstract hardware details enable easier migration.</p><p>The transition won’t be immediate, but the trend is clear: when performance-per-watt and latency matter, specialized hardware wins. Availability of hardware and software stacks lead us to use NVIDIA products today, but long-term alternatives will become more compelling.</p><h3>Next Steps: NPUs and Dedicated AI Accelerators</h3><p>In the next article, we’ll explore Neural Processing Units (NPUs) like those found in the Rockchip RK3588, and dedicated AI accelerators like the Hailo-10H. These represent different approaches to edge AI acceleration.</p><p>NPUs like the RK3588’s NPU represent a hybrid approach: they combine ASIC-style specialized compute units with general-purpose resources like RAM and CPU interfaces. This hybrid architecture offers specialized compute through dedicated hardware for neural network operations, while maintaining flexibility with general-purpose resources for pre/post-processing. The tight coupling with system memory and CPU enables better integration than discrete accelerators</p><p>The Hailo-10H takes a different approach: it’s a dedicated AI accelerator chip with its own memory interface (LPDDR4/4X), delivering 40 TOPS at INT4 precision while consuming only 2.5W typical power. The Hailo-10H is specifically designed for generative AI workloads including LLMs, VLMs, and Stable Diffusion, with a direct DDR interface that allows it to scale for large models. This dedicated architecture with additional memory represents another evolution in edge AI acceleration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*opWhZF2k_74Ltdt3-af1tw.png" /></figure><p>Both approaches offer advantages: NPUs provide tight system integration, while dedicated accelerators like Hailo-10H offer raw performance and memory bandwidth. They might represent the future of edge AI: specialized enough to be efficient, but flexible enough to handle diverse workloads.</p><h3>Conclusion</h3><p>Our benchmark demonstrates that hardware selection matters more than raw computational power. For small Transformer models, CPUs with large caches and specialized edge devices can outperform high-end GPUs due to lower latency (cache vs PCIe), reduced overhead (no kernel launch costs), and better power efficiency.</p><p>It also highlights the potential future, where more specialized hardware enables the massive compute challenges that are associated with running LLMs. As with networking, it&#39;s going to take a while before we get there. Considering that this is merely the scaling of a pre-existing technology, however, it can be sooner than we think.</p><p><strong>Sources:</strong></p><ul><li>Benchmark Code: <a href="https://github.com/psmgeelen/LLMs-FPGA_Benchmark">https://github.com/psmgeelen/LLMs-FPGA_Benchmark</a></li><li>Results and Analysis: See the Jupyter notebook in the analysis/ directory</li><li>Google Coral Edge TPU: <a href="https://coral.ai/">https://coral.ai/</a></li><li>Hailo-10H AI Accelerator: <a href="https://hailo.ai/products/ai-accelerators/hailo-10h-ai-accelerator/">https://hailo.ai/products/ai-accelerators/hailo-10h-ai-accelerator/</a></li><li>NVIDIA Container Toolkit: <a href="https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/">https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f75dcae3833e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aimonks/when-gpus-lose-why-small-llms-favour-cpus-and-edge-tpus-over-high-end-gpus-f75dcae3833e">When GPUs Lose: Why Small LLMs Favour CPUs and Edge TPUs Over High-End GPUs</a> was originally published in <a href="https://medium.com/aimonks">𝐀𝐈 𝐦𝐨𝐧𝐤𝐬.𝐢𝐨</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Storage Solutions: Beyond Disks and Files]]></title>
            <link>https://medium.com/h7w/understanding-storage-solutions-beyond-disks-and-files-10b95257f406?source=rss-e13bf5091e08------2</link>
            <guid isPermaLink="false">https://medium.com/p/10b95257f406</guid>
            <category><![CDATA[raid]]></category>
            <category><![CDATA[nas]]></category>
            <category><![CDATA[zfs]]></category>
            <category><![CDATA[btrfs]]></category>
            <category><![CDATA[data-storage]]></category>
            <dc:creator><![CDATA[Pieter Geelen]]></dc:creator>
            <pubDate>Tue, 23 Dec 2025 02:16:45 GMT</pubDate>
            <atom:updated>2025-12-23T02:16:45.793Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/612/0*z8Ck4W5HYmmKp4vE" /></figure><p>Rapid storage deployment promises speed, but building a reliable NAS or storage solution is far more than plugging in disks. It’s not just hardware — it’s about how data is structured, replicated, and validated. Whether it’s ZFS, BTRFS, or traditional RAID, understanding the layers beneath the filesystem is critical.</p><h3>Hardware: Disks, NVMe, and Partitions</h3><p>Storage hardware comes in multiple flavors, each with trade-offs in speed, cost, and system requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/244/0*tmMlj-jI03ex0lxg" /></figure><p><strong>SATA SSD/HDD:</strong></p><ul><li><strong>Interface:</strong> Serial ATA, widely supported on most motherboards.</li><li><strong>Speed:</strong> HDDs ~150–250 MB/s, SATA SSDs up to ~600 MB/s.</li><li><strong>Price per TB:</strong> HDDs ~$20–30/TB, SATA SSDs ~$50–80/TB.</li><li><strong>Notes:</strong> Easy to install, minimal CPU load. HDDs are ideal for bulk archival storage; SATA SSDs improve access times significantly.</li></ul><p><strong>SCSI / SAS (Serial Attached SCSI):</strong></p><ul><li><strong>Interface:</strong> Enterprise-grade, often used in servers. Requires SAS controllers or HBA cards.</li><li><strong>Speed:</strong> 12–22.5 Gbps per lane, sustained throughput better than SATA HDDs.</li><li><strong>Price per TB:</strong> HDDs ~$40–80/TB, SSDs ~$150–300/TB.</li><li><strong>Notes:</strong> Built for 24/7 operation, higher durability, better error handling. Needs motherboard or add-in card with SAS controller; may offload CPU slightly for RAID functions.</li></ul><p><strong>NVMe / PCIe SSDs:</strong></p><ul><li><strong>Interface:</strong> PCIe lanes, direct connection to CPU memory controller.</li><li><strong>Speed:</strong> 3.5–7 GB/s for PCIe 3.0/4.0, up to 15–20 GB/s for PCIe 5.0.</li><li><strong>Price per TB:</strong> ~$70–150/TB for consumer drives, enterprise higher.</li><li><strong>Notes:</strong> Extremely low latency, high IOPS. Requires motherboard with M.2 or U.2 slots, sufficient PCIe lanes, and sometimes heatsinks. Can saturate CPU for very high throughput workloads.</li></ul><p>Choosing between these technologies isn’t just about cost or speed. High-speed NVMe drives may demand more from your CPU and motherboard, especially when multiple drives are used in parallel. SAS and SCSI bring enterprise reliability but need controllers and HBAs. SATA is cheap and widely compatible, but slow for heavy I/O workloads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/0*Ljh--u6jHXkVqabq.jpg" /></figure><p><strong>Partition tables</strong> overlay these devices with organization schemes. MBR and GPT define how blocks are addressed, but the higher the speed and density, the more careful you must be with alignment and stripe sizes for RAID or filesystem efficiency.</p><h3>Replication: RAID, ZFS, and BTRFS</h3><p>Replication is fundamentally about consistency and redundancy — but the <em>how</em> differs drastically between RAID, ZFS, and BTRFS.</p><ul><li><strong>RAID (Redundant Array of Independent Disks):</strong></li><li><strong>Level:</strong> Block-level striping and/or mirroring.</li><li><strong>How it works:</strong> RAID distributes data across multiple disks with parity or mirrors. A hardware RAID controller may offload calculations, or software RAID can run on the CPU.</li><li><strong>Pros:</strong> Transparent to the OS, often fast for sequential workloads, widely supported.</li><li><strong>Cons:</strong> No filesystem awareness — if data corruption happens before RAID writes, it is replicated. Hardware RAID introduces single points of failure: if the controller dies, a disk array may be unrecoverable.</li></ul><p><strong>ZFS (Zettabyte File System):</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/0*wsyS_SK3aGJjR4NG.png" /></figure><ul><li><strong>Level:</strong> Filesystem with integrated volume management.</li><li><strong>How it works:</strong> Copy-on-write, checksums for every block, snapshots, and self-healing. ZFS knows what blocks belong to what files, so it can detect and repair silent data corruption.</li><li><strong>Pros:</strong> End-to-end integrity, flexible replication (send/receive snapshots), built-in RAID-Z. Hardware-agnostic, software-based redundancy.</li><li><strong>Cons:</strong> Higher RAM requirements (1 GB RAM per TB is recommended), more CPU-intensive for parity calculations.</li></ul><p><strong>BTRFS (B-Tree FS):</strong></p><ul><li><strong>Level:</strong> Filesystem with snapshot and RAID support.</li><li><strong>How it works:</strong> Provides checksums, snapshots, subvolumes, and optional RAID modes at the filesystem level. Replication can be done via incremental snapshots.</li><li><strong>Pros:</strong> Flexible, object-aware, easy to manage per-directory snapshots. Better integrated with Linux than ZFS without third-party drivers.</li><li><strong>Cons:</strong> Some RAID modes (like RAID5/6) are considered unstable in production. Less mature for very large deployments.</li></ul><h4><strong>Key differences:</strong></h4><pre>| Feature             | RAID                | ZFS                    | BTRFS                 |<br>|---------------------|---------------------|------------------------|-----------------------|<br>| Level               | Block               | Filesystem + Volume    | Filesystem            |<br>| Corruption Handling | None                | Checksums + self-heal  | Checksums             |<br>| Snapshots           | No                  | Yes                    | Yes                   |<br>| Hardware Dependency | High (HW RAID)      | Low                    | Low                   |<br>| Performance Impact  | Low CPU (HW RAID)   | Medium-High CPU/RAM    | Medium CPU/RAM        |<br>| Flexibility         | Low                 | High                   | High                  |</pre><p>The main takeaway: RAID replicates blocks blindly; ZFS and BTRFS replicate with awareness of the filesystem and can protect against silent corruption.</p><h3>Filesystems: Objects, Snapshots, and Rsync</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*YaYkxgJXBRN0AOjb.jpg" /></figure><p>Once blocks are organized, filesystems structure them into <strong>objects</strong> — files, directories, metadata. Tools like rsync operate at this object level, synchronizing files across hosts without worrying about underlying blocks.</p><p>Other modern object-level replication tools include:</p><ul><li><strong>ZFS Send/Receive:</strong> Replicates snapshots efficiently. Example:</li></ul><pre># Create snapshot<br>zfs snapshot pool1/data@daily<br><br># Send snapshot to remote host<br>zfs send pool1/data@daily | ssh user@backup &quot;zfs receive pool1/data&quot;</pre><ul><li><strong>BTRFS Send/Receive:</strong> Similar snapshot-based replication for BTRFS:</li></ul><pre># Create snapshot<br>btrfs subvolume snapshot /mnt/data /mnt/data_snapshot<br><br># Send snapshot to remote<br>btrfs send /mnt/data_snapshot | ssh user@backup &quot;btrfs receive /mnt/backup&quot;</pre><ul><li><strong>Syncthing:</strong> Continuous peer-to-peer file replication:</li></ul><pre># Start Syncthing service<br>syncthing -home ~/.config/syncthing<br><br># for more information check: https://syncthing.net/</pre><p>These tools operate at the object level, allowing selective restores, versioning, and efficient incremental replication.</p><h3>Migrations and Backups: 3–2–1 in Practice</h3><p>Data management isn’t just about storage; it’s about <strong>portability and survival</strong>. The 3–2–1 rule remains central:</p><ul><li><strong>3 copies</strong> of your data</li><li><strong>2 locations</strong> (e.g., local NAS + remote backup)</li><li><strong>1 offline copy</strong> (air-gapped or cold storage)</li></ul><p>Backups can operate on <strong>block-level snapshots</strong> or <strong>filesystem objects</strong>, depending on your strategy.</p><h4><strong>Important principles</strong></h4><ol><li><strong>Redundancy isn’t just disks.</strong> Configuration, NAS settings, controllers, and replication software are not “data” but are crucial for operations.</li><li><strong>Test your backups.</strong> If a snapshot, rsync copy, or send/receive replication has never been restored, it’s unproven.</li><li><strong>Hardware accelerators and RAID cards are not infallible.</strong> They may speed replication, but failure can require exact replacement or lead to total data loss. Software-level redundancy mitigates this risk.</li></ol><p>By combining <strong>robust filesystems (ZFS/BTRFS)</strong>, <strong>object-aware tools (rsync, send/receive, Syncthing)</strong>, and <strong>validated backup workflows</strong>, storage becomes resilient. Speed and hardware sophistication are meaningless without repeated <strong>testing, verification, and operational awareness</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/0*BAxeSVo06nMN3_P3.jpeg" /></figure><p>Redundancy is a mindset, not a feature. True reliability comes from understanding what you’re protecting, how it’s organized, and whether every layer — from blocks to objects to controllers — is <strong>repeatably recoverable.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10b95257f406" width="1" height="1" alt=""><hr><p><a href="https://medium.com/h7w/understanding-storage-solutions-beyond-disks-and-files-10b95257f406">Understanding Storage Solutions: Beyond Disks and Files</a> was originally published in <a href="https://medium.com/h7w">T3CH</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running Long-Running Jobs in TrueNAS SCALE Using Docker]]></title>
            <link>https://medium.com/aimonks/running-long-running-jobs-in-truenas-scale-using-docker-fd3eb7dd415b?source=rss-e13bf5091e08------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd3eb7dd415b</guid>
            <category><![CDATA[network-attached-storage]]></category>
            <category><![CDATA[truenas]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[zfs]]></category>
            <dc:creator><![CDATA[Pieter Geelen]]></dc:creator>
            <pubDate>Wed, 10 Dec 2025 12:33:28 GMT</pubDate>
            <atom:updated>2025-12-11T13:17:08.654Z</atom:updated>
            <content:encoded><![CDATA[<p>TrueNAS SCALE is powerful, flexible, and built around ZFS. We create datasets, snapshots, and replication tasks, and we rely on the WebUI to manage all of it. These tools define how datasets move and how snapshots replicate.</p><blockquote>What they don’t handle well is running arbitrary ZFS commands in the background.</blockquote><p>The Problem with Long-Running Jobs on TrueNAS SCALE</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/0*ei8TtiErm354A5Tj.jpg" /></figure><p>You can start a ZFS send/receive pipeline via SSH or the WebUI shell. That works… until you close your terminal. Even using nohup or backgrounding the command often fails. TrueNAS SCALE ties these pipelines to your session for system safety, killing the process when the session ends.</p><p>This is especially noticeable when the recursive snapshot replication in the UI doesn’t work as expected. Child datasets might not transfer, leaving a partially migrated dataset.</p><h3>Docker Makes It Easy</h3><p>Docker is already included in TrueNAS SCALE. Containers run independently of the host session, giving you a safe environment for long-running tasks. You can mount datasets into the container and execute zfs send | pv | zfs receive without worrying about your SSH session.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/0*GBOatI_AxgKPYFyu.jpg" /></figure><p>Enable Docker using systemctl:</p><pre>sudo systemctl enable docker<br>sudo systemctl start docker<br>systemctl status docker</pre><p>With Docker active, we can start a minimal Ubuntu container with the datasets mounted:</p><pre>docker run -it --name zfs-migrate \<br>  --privileged \<br>  -v /mnt/main:/mnt/main \<br>  -v /mnt/backup:/mnt/backup \<br>  ubuntu:24.04 bash</pre><p>Inside the container, install the tools you need:</p><pre>apt update &amp;&amp; apt install -y screen pv zfsutils-linux</pre><ul><li>screen allows backgrounded sessions inside the container</li><li>pv provides a live progress bar</li><li>zfsutils-linux gives ZFS send/receive commands</li></ul><p>Running the Migration in the Background</p><p>Start a screen session:</p><pre>screen -S zfs-migrate</pre><p>Run the migration:</p><pre>zfs send -R main@migration-2025-12-10 | pv | zfs receive -F backup/main</pre><p>Detach with Ctrl+A D. The migration now continues even if you close SSH or the WebUI. You can reattach at any time:</p><pre>screen -r zfs-migrate</pre><h4>Fully Detached Execution</h4><p>If you want to run it without an interactive session, Docker can do that too:</p><pre>docker run --rm -d --name zfs-migrate \<br>  --privileged \<br>  -v /mnt/main:/mnt/main \<br>  -v /mnt/backup:/mnt/backup \<br>  ubuntu:24.04 \<br>  bash -c &quot;apt update &amp;&amp; apt install -y pv zfsutils-linux &amp;&amp; \<br>           zfs send -R main@migration-2025-12-10 | pv | zfs receive -F backup/main&quot;</pre><ul><li>-d runs it in the background</li><li>--rm removes the container when it finishes</li><li>Progress can be monitored with:</li></ul><pre>docker logs -f zfs-migrate</pre><blockquote>Beautiful isn&#39;t it!</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F4DgLOUsL41SkLnGo94%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FTruRebelsDistro-crying-tears-jim-jones-4DgLOUsL41SkLnGo94&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExM2l6OGp4NHI4eWRsdzh3amgzb2FrbmpudzhqZnMzeDVhMm5ra2cxdCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2F4DgLOUsL41SkLnGo94%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/e70a9a119bbca1f3e466b53bd476703c/href">https://medium.com/media/e70a9a119bbca1f3e466b53bd476703c/href</a></iframe><h3>Why This Works</h3><p>TrueNAS SCALE protects the host, preventing long-running ZFS pipelines from surviving session disconnects. Docker gives you a <strong>detached, isolated environment</strong> where pipelines are free to run to completion. You can monitor them, provide a progress bar, and remove the container automatically when finished.</p><p>This approach solves the recursive snapshot problem, keeps the host safe, and doesn’t require unsupported system modifications.</p><p>Using Docker for long-running ZFS tasks in TrueNAS SCALE is simple, safe, and powerful. It turns a frustrating limitation into a fully controlled process. You mount the datasets, run the commands, and let the container handle the rest.</p><blockquote>TrueNAS SCALE gives you the tools. Docker lets you use them safely.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd3eb7dd415b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aimonks/running-long-running-jobs-in-truenas-scale-using-docker-fd3eb7dd415b">Running Long-Running Jobs in TrueNAS SCALE Using Docker</a> was originally published in <a href="https://medium.com/aimonks">𝐀𝐈 𝐦𝐨𝐧𝐤𝐬.𝐢𝐨</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>