<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Usama Gulzar</title>
    <description>The latest articles on DEV Community by Usama Gulzar (@usama_gulzar_8b462983b2d0).</description>
    <link>https://dev.to/usama_gulzar_8b462983b2d0</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4092060%2Fc1104af6-c991-401e-a222-46c87e44c2d7.jpg</url>
      <title>DEV Community: Usama Gulzar</title>
      <link>https://dev.to/usama_gulzar_8b462983b2d0</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/usama_gulzar_8b462983b2d0"/>
    <language>en</language>
    <item>
      <title>The Journey of Mantiq: From a Freshman Assignment to a Free Digital Logic Workbench</title>
      <dc:creator>Usama Gulzar</dc:creator>
      <pubDate>Mon, 24 Aug 2026 09:55:13 +0000</pubDate>
      <link>https://dev.to/usama_gulzar_8b462983b2d0/the-journey-of-mantiq-from-a-freshman-assignment-to-a-free-digital-logic-workbench-d1g</link>
      <guid>https://dev.to/usama_gulzar_8b462983b2d0/the-journey-of-mantiq-from-a-freshman-assignment-to-a-free-digital-logic-workbench-d1g</guid>
      <description>

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"What I cannot create, I do not understand."&lt;/em&gt; &lt;br&gt;
— &lt;strong&gt;Richard Feynman&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;There is a particular kind of exhaustion that comes from staring at a Boolean expression at 4 AM, trying to figure out where you went wrong in your Karnaugh map, and wondering if the answer key is wrong or if you are. &lt;/p&gt;

&lt;p&gt;Anyone who has taken a Digital Logic Design course knows this quiet, grinding confusion. &lt;/p&gt;

&lt;p&gt;That feeling is exactly where this story begins.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where It All Started
&lt;/h2&gt;

&lt;p&gt;Mantiq didn’t start as a startup pitch or a polished product plan. It began as a small spark called &lt;strong&gt;Logic++&lt;/strong&gt;, a Boolean expression simplifier built by my friend Muhammad bin Shahzad during our very first semester of Programming Fundamentals at SEECS, NUST, in 2025.&lt;/p&gt;

&lt;p&gt;It was a first-semester project: simple in scope and built under deadline pressure. But it proved something important: a Boolean expression could be typed in, processed, and simplified right on a screen.&lt;/p&gt;

&lt;p&gt;Instead of letting that idea stay a class submission, I took it and asked a much bigger question: &lt;em&gt;What if this wasn’t just a simplifier, but an entire workbench? What if a student could type one expression and instantly see the simplified form, the step-by-step proof, the Karnaugh map, the truth table, a live circuit diagram, and clean Verilog code?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;That question turned a semester assignment into Mantiq.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building Something That Respects The Learner
&lt;/h2&gt;

&lt;p&gt;If you’ve ever used a tool that gives you an answer without showing you how it got there, you know how hollow that feels. You copy the result, pass the assignment, and learn nothing. &lt;/p&gt;

&lt;p&gt;Mantiq exists to reject that shortcut entirely. &lt;/p&gt;

&lt;p&gt;My philosophy is simple: &lt;strong&gt;Mantiq exists to make Boolean logic easier to see and understand.&lt;/strong&gt; It would have been easy to build something that just spits out final answers. Instead, every law used in the algebraic proof (absorption, distribution, De Morgan's) is laid out so a learner can actually follow the reasoning.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Mantiq Actually Does
&lt;/h2&gt;

&lt;p&gt;Type in an expression like &lt;code&gt;A'BC + AB'C + ABC'&lt;/code&gt;, or generate a fresh Karnaugh map with &lt;code&gt;KMAP(6)&lt;/code&gt;, and Mantiq goes to work instantly. Here is what I packed into that single input bar:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Boolean Simplification:&lt;/strong&gt; Uses the Quine-McCluskey method for minimal Sum of Products (SOP) or Product of Sums (POS) forms—never an approximation.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Step-by-Step Algebraic Proofs:&lt;/strong&gt; Clickable rules that show the before-and-after state of every applied law.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Live Circuit Simulation:&lt;/strong&gt; Gate-level diagrams are drawn automatically. Flip the inputs and watch the outputs respond in real-time.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Circuit Recognizer:&lt;/strong&gt; An internal database that maps minterm patterns to known textbook circuits (like Odd Parity Generators or XOR gates) and explains how they work.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Karnaugh Maps:&lt;/strong&gt; 2 to 6 variables, auto-grouped and color-coded.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Verilog Export:&lt;/strong&gt; Generate clean, ready-to-use gate-level or dataflow HDL code in one click.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Technical Backbone
&lt;/h2&gt;

&lt;p&gt;Underneath the clean interface sits a serious engineering effort. &lt;/p&gt;

&lt;p&gt;The core logic engine is written in &lt;strong&gt;C++&lt;/strong&gt; and compiled to &lt;strong&gt;WebAssembly (WASM)&lt;/strong&gt;. This means the actual heavy computation (tokenizing expressions, running minimizations, evaluating truth tables) happens at near-native speed directly in the browser.&lt;/p&gt;

&lt;p&gt;I run that engine inside a dedicated &lt;strong&gt;Web Worker&lt;/strong&gt;, completely separate from the main UI thread. The interface stays completely smooth while the app crunches through a six-variable K-map. I also built the whole thing as a &lt;strong&gt;Progressive Web App (PWA)&lt;/strong&gt;, meaning it can be installed and used completely offline: a crucial feature for students studying the night before an exam without reliable internet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Built On Trust, Not Data Collection
&lt;/h2&gt;

&lt;p&gt;While WolframAlpha limits simplification behind freemium models and Logisim lacks K-maps and full algebraic proofs, Mantiq handles everything in one place. Completely free.&lt;/p&gt;

&lt;p&gt;More importantly, in a time when almost every free tool harvests user data, Mantiq does not. There are no accounts, no server dependencies, and no form submissions. &lt;strong&gt;Your expressions are processed on your device, and they stay there.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The People Who Made This Possible
&lt;/h2&gt;

&lt;p&gt;This began as a classroom project and grew into something far larger. Along the way, a small circle of batchmates showed up to brainstorm, test, and support the effort with me:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Muhammad bin Shahzad&lt;/li&gt;
&lt;li&gt;  Muhammad Talha&lt;/li&gt;
&lt;li&gt;  Abdul-Rafay Mughal&lt;/li&gt;
&lt;li&gt;  Hamza Ahmed&lt;/li&gt;
&lt;li&gt;  Muhammad Faizan Ali &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There was no funding round or incubator. Just a group of students who cared enough about getting something right to keep refining it long after the assignment had been graded.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Mantiq Stands Today
&lt;/h2&gt;

&lt;p&gt;Mantiq now sits at version 2.0.0, open-source, and licensed under MIT. My tagline for the project captures its entire purpose: &lt;strong&gt;Turn Your Logic Into Life.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you have ever fought with a Boolean expression at midnight, I think you already understand exactly why this matters to me.&lt;/p&gt;

&lt;p&gt;Try Mantiq live here: &lt;strong&gt;Mantiq - Turn Your Logic Into Life&lt;/strong&gt; &lt;em&gt;(&lt;a href="https://mantiq.usamagulzar.dev" rel="noopener noreferrer"&gt;https://mantiq.usamagulzar.dev&lt;/a&gt;)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I’d love to hear your thoughts, feedback, or bug reports in the comments below!&lt;/em&gt;&lt;/p&gt;




</description>
      <category>beginners</category>
      <category>computerscience</category>
      <category>education</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
